-
Notifications
You must be signed in to change notification settings - Fork 535
Description
When I tested PR #11859 , I noticed that the count of files with metadata changes was always 2. However, this behavior wasn’t introduced by the PR, since it also occurs with JSF and the original API before this change.
What steps does it take to reproduce the issue?
- Upload a file then publish it
- Change the file's metadata, including 1. File name, 2. File path, 3. description and 4. categories so the File metadata changes should be 4
- Check the api
/api/v1/datasets/:persistentId/versions/compareSummary?persistentId=..., "changedFileMetaData": 2 rather than the correct count 4
"id": 3,
"versionNumber": "2.1",
"summary": {
"files": {
"added": 0,
"removed": 0,
"replaced": 0,
"changedFileMetaData": 2,
"changedVariableMetadata": 0
},
"termsAccessChanged": false
},
"contributors": "Dataverse Admin",
"publishedOn": "2025-10-22"
}
-
When does this issue occur?
When you changed files' metadata, the count always show 2 -
Which page(s) does it occurs on?
dataset page > version tab -
What happens?
Screen Recording on how it happens here
https://github.com/user-attachments/assets/387bb893-770f-4c45-bd48-d6b7fb8e9028 -
To whom does it occur (all users, curators, superusers)?
all users -
What did you expect to happen?
count right number of changes on file metadata -
Other Related issue
Dataset compareSummary API: version summary should show tags changes #11663 (comment)
Which version of Dataverse are you using?
DEV branch
Metadata
Metadata
Assignees
Labels
Type
Projects
Status