-
Notifications
You must be signed in to change notification settings - Fork 2
DT-945: Handle Update Study Registration Better #2420
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
| @Override | ||
| public boolean shouldSkipField(FieldAttributes fieldAttributes) { | ||
| final HashSet<String> exclusions = new HashSet<>(List.of( | ||
| "accessManagement", |
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.
are data use fields an enum somewhere?
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.
Aha ... they are defined as static strings in DatasetRegistrationSchemaV1Builder, thank you! Will make that update.
rjohanek
left a comment
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 seems like a great improvement to make updating studies easier for users in the future!
snf2ye
left a comment
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'm having a hard time wrapping my head around using GSON to convert between json and java objects, but as far as I can tell, LGTM!
To be honest, this was super painful. If I were to re-implement this, I might choose a very different set of updates to support. |
Addresses
https://broadworkbench.atlassian.net/browse/DT-945
Summary
This PR makes some changes to the Update Study API to fix a few bugs. As a result of updating a production study (see DT-941), there was a non-trivial amount of hand-editing the JSON to get around incorrect validation rules. This PR fixes that to make updates a lot more smoother in the future.
Have you read CONTRIBUTING.md lately? If not, do that first.