-
Notifications
You must be signed in to change notification settings - Fork 9
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
PORTAL-2480 - creates migration to add expected_cadence to promoted_templates #2121
Conversation
Looks good so far,
|
|
typo, I meant enum. |
Enum would be an unnecessary obfuscation, IMO. The idea of an "expected cadence" is already somewhat opaque, and considering all the potential values (daily, weekly, monthly, quarterly, one-time, adhoc, etc) the most informative and simplest way to store this information for each record is it's actual text value, as opposed to a representation of its value. The reason being, if an expected cadence for a single record is needed, we as engineers would be able to observe a single record and determine its expected cadence without needing to reference the base model to decipher its value from an enum key. IMO. |
@MarchandMD before you ask for more approvals, please update the title to follow this convention (necessary for the release notes): Also, this needs to be deployed to Dev to be able to merge (please use the branch name for both the 'workflow' and the 'branch name' in the action, so that the deploy properly links back to this PR) and then run the DB downgrade action, and both of those runs linked in your testing notes. Happy to help if that's unclear. Thank you! |
as engineers, if we document the enum values clearly, it would be easy to understand. |
@cris-oddball With the help of you and Evan I was able to successfully perform both actions. The PR description has been updated with links to both of those runs. Please LMK if there's anything else I can do to expedite this PR! Thank you! |
@MarchandMD thank you! If you want the llamas to review, you'll need to ask for that review. I think both Ian and Nathan are in our engineering channel and they can ask for you - see what they say? |
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.
There should be corresponding changes in app/models.py::PromotedTemplate.
54d6a5d
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.
LGTM
Description
Adds the
expected_cadence
text field to thepromoted_templates
tableissue 2480 of the notification-portal
How Has This Been Tested?
ran
flask db upgrade
and thenflask db downgrade
locallydeploy to dev - api action run successful - verifies migration run successfully
DB downgrade action run successful - verifies migration rollback successful
Checklist