Skip to content

Conversation

@stevenwinship
Copy link
Contributor

@stevenwinship stevenwinship commented Mar 20, 2025

What this PR does / why we need it: The post files/{fileId}/metadata/tabularTags api could only add tags and categories, instead of edit(like remove or replace). This PR adds the ability to overwrite the list with a new list.

Which issue(s) this PR closes:#11292

Special notes for your reviewer:

Suggestions on how to test this: Test api with and without ?replace=

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

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

Additional documentation:

@stevenwinship stevenwinship self-assigned this Mar 20, 2025
@github-actions github-actions bot added FY25 Sprint 19 FY25 Sprint 19 (2025-03-12 - 2025-03-26) Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA These changes are required for the Dataverse SPA Type: Bug a defect labels Mar 20, 2025
@stevenwinship stevenwinship moved this to In Progress 💻 in IQSS Dataverse Project Mar 20, 2025
@github-actions

This comment has been minimized.

@stevenwinship stevenwinship moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Mar 20, 2025
@stevenwinship stevenwinship removed their assignment Mar 20, 2025
@pdurbin pdurbin self-assigned this Mar 24, 2025
@pdurbin pdurbin moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Mar 24, 2025
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't run the code but it looks fine and tests are passing: https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-11359/1/testReport/

I left a couple comments about the docs.

@stevenwinship stevenwinship removed their assignment Mar 24, 2025
@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:11292-update-tabular-tags-with-replace
ghcr.io/gdcc/configbaker:11292-update-tabular-tags-with-replace

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Mar 24, 2025
@pdurbin pdurbin removed their assignment Mar 24, 2025
@ofahimIQSS ofahimIQSS self-assigned this Mar 25, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Mar 25, 2025
@cmbz cmbz added the FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) label Mar 30, 2025
@ofahimIQSS
Copy link
Contributor

Tests Passed, Merging PR

@ofahimIQSS ofahimIQSS merged commit 9c2a8bf into develop Apr 1, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Apr 1, 2025
@ofahimIQSS ofahimIQSS deleted the 11292-update-tabular-tags-with-replace branch April 1, 2025 15:27
@ofahimIQSS ofahimIQSS removed their assignment Apr 1, 2025
@pdurbin pdurbin added this to the 6.7 milestone Apr 1, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Apr 2, 2025
@ChengShi-1
Copy link
Contributor

@stevenwinship Hi Steven, I tried/files/{fileID}/metadata/categories?replace=true, but it didn't replace tags for categories so I am wondering if this works for tabular tags only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 19 FY25 Sprint 19 (2025-03-12 - 2025-03-26) FY25 Sprint 20 FY25 Sprint 20 (2025-03-26 - 2025-04-09) Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA These changes are required for the Dataverse SPA Type: Bug a defect

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

API for Updating File Categories and tabular tags are not updated correctly

6 participants