-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ProviderETLHandler names to be specific to model.
- Loading branch information
1 parent
da7c060
commit 115b4ee
Showing
6 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from dora.service.code.sync.etl_github_handler import get_github_etl_handler | ||
from dora.service.code.sync.etl_provider_handler import ProviderETLHandler | ||
from dora.service.code.sync.etl_provider_handler import CodeProviderETLHandler | ||
from dora.store.models.code import CodeProvider | ||
|
||
|
||
class CodeETLFactory: | ||
def __init__(self, org_id: str): | ||
self.org_id = org_id | ||
|
||
def __call__(self, provider: str) -> ProviderETLHandler: | ||
def __call__(self, provider: str) -> CodeProviderETLHandler: | ||
if provider == CodeProvider.GITHUB.value: | ||
return get_github_etl_handler(self.org_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters