-
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
ERM-3392 Changes to the field content type are not saved, but a success message is displayed #1368
Conversation
CalamityC
commented
Nov 11, 2024
•
edited by EthanFreestone
Loading
edited by EthanFreestone
- change agreementContentTypes initialValues on submit
…ss message is displayed * change agreementContentTypes initialValues on submit
License CLA Stuck? (Developer should make sure that it is really stuck before clicking) |
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.
This isn't right. This will disregard any _delete instructions.
We should be able to instead have the actual form manipulate the id instead, so there's nofanagling needed on submit.
* fix field name, add parse and format
… of field level stuff In general, Claudia's solution is "nicer" in that it prevents ANY incorrect information from appearing in the PUT. However, it ends up doing a bunch of extra work inside the Select which we would then need to replicate everywhere to get the "best" solution consistently. We could (and an argument exists should) do this in a RefdataSelect type component, but then that would require special testing etc etc, and to be used in a very specific way. The easier fix (which is already used in some other places) is simply to use the id _only_. This makes some of the "only display refdata in use" logic a bit more complex, so we maybe ought to improve that and centralise it as well. ERM-3392
|
…ss message is displayed (#1368) * ERM-3392 Changes to the field content type are not saved, but a success message is displayed * change agreementContentTypes initialValues on submit * * revert submit handler changes * fix field name, add parse and format * fix button * chore: Change over to just "id" in select to avoid having to do loads of field level stuff In general, Claudia's solution is "nicer" in that it prevents ANY incorrect information from appearing in the PUT. However, it ends up doing a bunch of extra work inside the Select which we would then need to replicate everywhere to get the "best" solution consistently. We could (and an argument exists should) do this in a RefdataSelect type component, but then that would require special testing etc etc, and to be used in a very specific way. The easier fix (which is already used in some other places) is simply to use the id _only_. This makes some of the "only display refdata in use" logic a bit more complex, so we maybe ought to improve that and centralise it as well. ERM-3392 --------- Co-authored-by: EthanFreestone <[email protected]> Co-authored-by: Ethan Freestone <[email protected]>