Skip to content

Conversation

@ChengShi-1
Copy link
Contributor

What this PR does / why we need it:

For a single file

  • edit categories
  • edit tags if it's tabular

Which issue(s) this PR closes:

Related Dataverse PRs:

  • Depends on #

Special notes for your reviewer:

Suggestions on how to test this:

Is there a release notes update needed for this change?:

Additional documentation:

@ChengShi-1 ChengShi-1 changed the title feat: update use case for tags and categories Implement use case for editing tabular tags and categories Apr 11, 2025
@ChengShi-1 ChengShi-1 linked an issue Apr 11, 2025 that may be closed by this pull request
@ChengShi-1 ChengShi-1 added Size: 3 A percentage of a sprint. 2.1 hours. SPA: File Page GREI Re-arch GREI re-architecture-related Original size: 3 SPA.Q1.6 Files Page: Files Edit Options FY25 Sprint 21 FY25 Sprint 21 (2025-04-09 - 2025-04-23) SPA.Q2 Not related to any specific Q2 feature labels Apr 11, 2025
@ChengShi-1 ChengShi-1 marked this pull request as ready for review April 11, 2025 16:21
@ChengShi-1 ChengShi-1 moved this to Ready for Review ⏩ in IQSS Dataverse Project Apr 11, 2025
@g-saracca g-saracca self-assigned this Apr 22, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Apr 22, 2025
}
})

test('should successfully update tabular tags of a file', async () => {
Copy link
Contributor

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 👍🏼

@ChengShi-1 ChengShi-1 assigned g-saracca and unassigned ChengShi-1 Apr 22, 2025
@ChengShi-1
Copy link
Contributor Author

@g-saracca Hi German, changes made, please check again. Thanks for the review!

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Apr 22, 2025
@g-saracca g-saracca removed their assignment Apr 22, 2025
@ofahimIQSS
Copy link
Contributor

tests are passing, merging

@ofahimIQSS ofahimIQSS merged commit c54c37d into develop Apr 22, 2025
5 checks passed
@ofahimIQSS ofahimIQSS deleted the DatasetVersionDiffModelChange branch April 22, 2025 23:45
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Apr 22, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 21 FY25 Sprint 21 (2025-04-09 - 2025-04-23) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: File Page SPA.Q1.6 Files Page: Files Edit Options SPA.Q2 Not related to any specific Q2 feature

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Implement use case for editing categories and tabular tags

4 participants