-
Notifications
You must be signed in to change notification settings - Fork 331
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
[ENG-6242] Resolve issue with updating preprint fields and validation errors #10758
[ENG-6242] Resolve issue with updating preprint fields and validation errors #10758
Conversation
5471536
to
884ef60
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.
I think the changes to the model are good ones, but I think that we are risking losing data from API requests silently if we go with this as a complete solution. There'll need to be some modifications made to the tests and to the serializer functions, I believe.
564bada
to
909fee9
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.
Don't merge this, because it's a hotfix and we'll be going through that workflow for it.
It's not the way I expected this to be resolved, but it has the advantage of clearing out bad data if someone uses the old workflow that the original preprints app used, where the newly emptied fields would just not be included in the payload.
@uditijmehta Could you resolve the conflicts by merging |
eaaca90
to
83b4c7e
Compare
17ccc19
to
ec69be1
Compare
Late to the CR party, one suggestion and one potential blocker?
|
@cslzchen So we need to make sure to require admin permissions to do author assertions before we move forward is the suggestion? |
Yes, I think so. |
@uditijmehta Could you make that change, and also add a test for that case? |
bb320a3
to
3b55a71
Compare
New changes seem good to me. @cslzchen? |
f41e191
to
8c599e6
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.
LGTM 🎆
8c599e6
to
59fab7d
Compare
I cherry-picked 6 commits (and force pushed back) since the original branch has Original branch has been backed up in https://github.com/cslzchen/osf.io/tree/hotfix/form-validation-issues-backup. |
Resolve issue with updating preprint fields and validation errors * [ENG-6242] #10758
Purpose
Fix form validation issues in the preprint model and serializer.
Changes
Ticket
ENG-6242