Skip to content

Conversation

MartinVanIJcken
Copy link
Contributor

@MartinVanIJcken MartinVanIJcken commented Jun 22, 2025

The "back" button on the session dates edit page was broken. Even when one clicked back, the changes made were still saved. MAV-516 includes a bug report for this.

By adding a new model which is a draft version of the session dates we can allow modification of session dates in the edit page without immediately saving them to the database.

@MartinVanIJcken MartinVanIJcken requested a review from a team as a code owner June 22, 2025 12:04
@tvararu tvararu temporarily deployed to mavis-pr-3799 June 22, 2025 12:07 Inactive
@MartinVanIJcken MartinVanIJcken marked this pull request as draft June 22, 2025 12:21
@MartinVanIJcken MartinVanIJcken force-pushed the draft-session-dates branch 5 times, most recently from 4ea2bc7 to e1d3be6 Compare June 22, 2025 13:25
@MartinVanIJcken MartinVanIJcken marked this pull request as ready for review June 23, 2025 08:15
@MartinVanIJcken MartinVanIJcken force-pushed the draft-session-dates branch 2 times, most recently from 9ea0168 to 3b32acf Compare June 25, 2025 13:35
Copy link
Contributor

@thomasleese thomasleese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the change looks good, however I think we can probably simplify this by using array attributes or Rails serialization rather than needing to manually JSON parse and dump the values ourselves.

We do this already for the health questions and this is fully supported by the RequestSessionPersistable module.

@MartinVanIJcken MartinVanIJcken force-pushed the draft-session-dates branch 4 times, most recently from 8687a51 to d3068bf Compare July 14, 2025 15:15
@MartinVanIJcken MartinVanIJcken changed the base branch from main to next July 14, 2025 15:16
The "back" button on the session dates edit page was broken. Even when
one clicked back, the changes made were still saved. MAV-516 includes a
bug report for this.

By adding a new model which is a draft version of the session dates we
can allow modification of session dates in the edit page without
immediately saving them to the database.
The e2e tests contain tests for only one of the different invalid states
as each type of invalid state is already tested in the unit tests. The
one test that is included is just to test that errors are showing up at
all.
Copy link

@MartinVanIJcken
Copy link
Contributor Author

This pull request is no longer up to date and would need significant reworking.

@thomasleese thomasleese deleted the draft-session-dates branch August 27, 2025 14:34
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.

4 participants