-
Notifications
You must be signed in to change notification settings - Fork 10
Implement use case for editing tabular tags and categories #285
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
| } | ||
| }) | ||
|
|
||
| test('should successfully update tabular tags of a file', async () => { |
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.
For this use case and also for UpdateFileCategories, could you write a test that asserts that when using replace in false or undefined, the tags or categories are added and they don't replace existing ones? e.g.: Dataset had [a,b,c] categories and you send [d,e], now categories are [a,b,c,d,e].
Also what would hapen if dataset had ['a', 'b'] and you send ['b', 'c'], what will happen wih duplicated 'b'? I think we could add lot more test cases here so we are more confident for the integration in the SPA later 👍🏼
|
@g-saracca Hi German, changes made, please check again. Thanks for the review! |
|
tests are passing, merging |
What this PR does / why we need it:
For a single file
Which issue(s) this PR closes:
Related Dataverse PRs:
Special notes for your reviewer:
Suggestions on how to test this:
Is there a release notes update needed for this change?:
Additional documentation: