Skip to content

♻ Support different status revision#118

Merged
ollyhensby merged 6 commits intomainfrom
support-different-status-revision
Mar 26, 2025
Merged

♻ Support different status revision#118
ollyhensby merged 6 commits intomainfrom
support-different-status-revision

Conversation

@ollyhensby
Copy link
Copy Markdown
Contributor

@ollyhensby ollyhensby commented Mar 24, 2025

Issue relates to this: https://github.com/maxfordham/digital-schedules/issues/322#issuecomment-2747816247

We change the status_revision selection but can't update the API model as this will affect everybody interacting with the API.

So in this PR I have relaxed its type to str so that any custom status revision can be passed. The frontend will set the enumerations by project and this data will be allowed to be saved to the DB.

Oliver Hensby added 2 commits March 24, 2025 17:19
This is so that if any dashes are used in the status_revision description, they are not split
In its current setup, the API will reject any new values that are not in the default enumeration.
By setting to string, we can bypass this and the validation will be done on the frontend.
@ollyhensby ollyhensby changed the title Support different status revision ♻ Support different status revision Mar 24, 2025
@ollyhensby ollyhensby force-pushed the support-different-status-revision branch from e5bc004 to 0bec64f Compare March 24, 2025 17:47
@ollyhensby
Copy link
Copy Markdown
Contributor Author

Add validation to status_revision so that we check that they're are at least 4 " - "? This at least will provide some validation for the string that is passed

@ollyhensby
Copy link
Copy Markdown
Contributor Author

Think this is good to go ahead @jgunstone, so going to merge back and implement into digital-schedules. Will show changes when you're back.

@ollyhensby ollyhensby self-assigned this Mar 26, 2025
@ollyhensby ollyhensby merged commit 28b563b into main Mar 26, 2025
1 check passed
@ollyhensby ollyhensby deleted the support-different-status-revision branch March 26, 2025 12:14
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.

1 participant