-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fetch Migration] [Refactoring] Update module names and change source…
… directory (#292) This change consists of several commits that refactor the Fetch Migration codebase. No functionality has been added. * The source code path is now FetchMigration/python instead of FetchMigration/index_configuration_tool (which was a misleading name given the expanded functionality of Fetch Migration) * main.py has been renamed to pre_migration.py to clarify that these are pre-migration steps * monitor.py has been renamed to migration_monitor.py for clarity * Finally, the central methods of pre_migration and migration_monitor (run) now accept dataclasses for input parameters and return a dataclass as a result. This decouples the business logic from the ArgParse interface logic. Signed-off-by: Kartik Ganesh <[email protected]> --------- Signed-off-by: Kartik Ganesh <[email protected]>
- Loading branch information
Showing
21 changed files
with
114 additions
and
112 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class MigrationMonitorParams: | ||
target_count: int | ||
dp_endpoint: str = "https://localhost:4900" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class PreMigrationParams: | ||
config_file_path: str | ||
output_file: str = "" | ||
report: bool = False | ||
dryrun: bool = False |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from dataclasses import dataclass, field | ||
|
||
|
||
@dataclass | ||
class PreMigrationResult: | ||
target_doc_count: int = 0 | ||
created_indices: set = field(default_factory=set) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.