-
Notifications
You must be signed in to change notification settings - Fork 9
Draft session dates to prevent save on "back" #3799
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
Conversation
4ea2bc7
to
e1d3be6
Compare
9ea0168
to
3b32acf
Compare
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.
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.
8687a51
to
d3068bf
Compare
d3068bf
to
2f466fe
Compare
2f466fe
to
3093767
Compare
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.
3093767
to
02f243f
Compare
|
This pull request is no longer up to date and would need significant reworking. |
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.