-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 2887] Add new columns to EtlDb and bump schema version (#2931)
## Summary Fixes #2887 ### Time to review: __5 mins__ ## Changes proposed > What was added, updated, or removed in this PR. Add new facts and dimensions to EtlDb to support certain dashboards in Metabase: - Slowly changing dimension "deliverable status" is now supported via the new table `gh_deliverable_history` - Sprint-to-project relationship is now supported via the new table `gh_project`, and the table `gh_sprint` is altered to add a new column `project_id` - Updated `EtlDataset` to support the new columns - Updated `analytics/integrations/etldb` main and models to use the new schema during transform and load - Moved exception handling out of `etldb` main and into model classes to make main more readable - Updated tests and mock file used for tests ## Context for reviewers > Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified. Certain dashboards in Metabase required certain facts and dimensions in EtlDb. This PR adds the fields that are needed, modifies transform/load to use them, and bumps the schema version to 4. ## Additional information > Screenshots, GIF demos, code examples or output to help show the changes working as expected. ![db-init-in-CI](https://github.com/user-attachments/assets/6257e8cb-59ec-4a21-b11f-763b917ca310)
- Loading branch information
1 parent
5ee465d
commit 0fbbae2
Showing
12 changed files
with
856 additions
and
541 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
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
Oops, something went wrong.