Skip to content

Bug: dataset version summaries changedFileMetaData counts wrongly #11921

@ChengShi-1

Description

@ChengShi-1

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"
    }

Which version of Dataverse are you using?
DEV branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    GREI Re-archIssues related to the GREI Dataverse rearchitectureOriginal size: 10SPAThese changes are required for the Dataverse SPASize: 10A percentage of a sprint. 7 hours.Type: Buga defect

    Type

    No type

    Projects

    Status

    Done 🧹

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions