Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #772 - TableRegistry Implementation #781

Merged
merged 5 commits into from
Mar 12, 2024

Conversation

kdetry
Copy link
Contributor

@kdetry kdetry commented Mar 12, 2024

Fixes #772

Changes proposed in this PR:

  • TableRegistry Singleton: A new file table_registry.py has been added. This file defines the TableRegistry singleton, which manages access to the table objects.

  • Refactor ETL Process: The etl.py file has been modified to use the TableRegistry singleton instead of directly accessing record_config[tables]. This centralizes the table management and makes the ETL process cleaner and more maintainable.

  • Refactor GQLDataFactory: The gql_data_factory.py file has been modified to work with the new TableRegistry singleton.

  • Refactor Bronze Table: The table_bronze_pdr_predictions.py file has been modified to register itself with the TableRegistry singleton.

  • Unit Tests: New unit tests have been added in test_table_registry.py to ensure the correct functionality of the TableRegistry singleton. Existing tests in test_gql_data_factory.py have been updated to work with the new TableRegistry singleton.

@kdetry kdetry changed the title issue772 - TableRegistry Fix #772 - TableRegistry Implementation Mar 12, 2024
@kdetry kdetry requested a review from idiom-bytes March 12, 2024 13:49
@idiom-bytes idiom-bytes merged commit 9623300 into issue685-duckdb-integration Mar 12, 2024
4 checks passed
@idiom-bytes idiom-bytes deleted the issue772-TableRegistry branch March 12, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants