-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor to use new simplified pinval.vw_assessment_card data model
#85
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
Merged
jeancochrane
merged 5 commits into
main
from
jeancochrane/855-avoid-selecting-star-from-modelassessment_card-in-pinvalvw_assessment_card
Jul 11, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ab1953c
Switch to using new data model for `pinval.vw_assessment_card`
jeancochrane ff37553
Factor out PINVAL views to make testing dev views easier
jeancochrane dc1b791
Temporarily switch to dev table for testing changes
jeancochrane 19fc956
Small bug fixes
jeancochrane 22e0ca9
Revert "Temporarily switch to dev table for testing changes"
jeancochrane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,5 +1,13 @@ | ||
| """Constants that are shared between scripts in this module""" | ||
|
|
||
| # Temporary solution for run_id mapping, a problem that occurs when the model run_id | ||
| # differs between the model values and the comps | ||
| RUN_ID_MAP = {"2025-02-11-charming-eric": "2025-04-25-fancy-free-billy"} | ||
| # differs between the model values and the comps. | ||
| # Currently we don't need more than one run because comps and cards are using the same | ||
| # final run ID, but we're keeping this map around with the expectation that we may | ||
| # need it for a more permanent fix | ||
| RUN_ID_MAP = {"2025-02-11-charming-eric": "2025-02-11-charming-eric"} | ||
|
Comment on lines
+5
to
+8
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See here for an explanation of this (confusing) change, and why I'm not bothering cleaning it up just yet: ccao-data/data-architecture#856 (comment) |
||
|
|
||
| # It's helpful to factor these tables out into shared constants because we often | ||
| # need to switch to dev tables for testing | ||
| PINVAL_ASSESSMENT_CARD_TABLE = "pinval.vw_assessment_card" | ||
| PINVAL_COMP_TABLE = "pinval.vw_comp" | ||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While debugging an issue with
.Paramsbeing unavailable in the context of thecard-contenttemplate, I realized that we can just pass the whole object into the template in order to make it available. That way we don't need to add more arguments to the template in order to access stuff from the.Paramsobject.