You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user I want to have a TemplateCategory Table in the backend and read the priority from them as a default.
Acceptance Criteria
Add 3 default categories into the TemplateCategory table (LowDefault, MediumDefault, HighDefault)
process_type on "Templates" table - drop Required constraint.
Write and execute the following script:
Template that have process_type -> "priority", should map to TemplateCategory HighDefault.
process_type -> "normal", map to "MediumDefault"
process_type -> "low", map to "LowDefault"
Look through the API code and see where process_type is called-> instead of Template.process_type we should be calling Template.process_type if Template.process_type is NOT empty, else it is Template.TemplateCategory.process_type (SQLAlchemy relationship types - look at User.password - ADD TESTS)
Set all the process_type in the Template table to be None (ONLY after all the above steps are complete)
Add tests for the above
By the end of implementing the above, a Template process_type will come from the TemplateCategories table unless the process_type in the Template table is filled in.
The text was updated successfully, but these errors were encountered:
Add 3 default categories into the TemplateCategory table (LowDefault, MediumDefault, HighDefault)
process_type on "Templates" table - drop Required constraint. - Look through the API code and see where process_type is called-> instead of Template.process_type we should be calling Template.process_type if Template.process_type is NOT empty, else it is
Description
As a user I want to have a TemplateCategory Table in the backend and read the priority from them as a default.
Acceptance Criteria
Template that have process_type -> "priority", should map to TemplateCategory HighDefault.
process_type -> "normal", map to "MediumDefault"
process_type -> "low", map to "LowDefault"
By the end of implementing the above, a Template process_type will come from the TemplateCategories table unless the process_type in the Template table is filled in.
The text was updated successfully, but these errors were encountered: