Skip to content

Show Export Metadata only for the latest released dataset version#1013

Draft
ChengShi-1 wants to merge 1 commit into
developfrom
1008-the-export-metadata-button-is-misleading-when-viewing-an-older-version-of-a-dataset-because-it-gives-you-the-latest-published-version
Draft

Show Export Metadata only for the latest released dataset version#1013
ChengShi-1 wants to merge 1 commit into
developfrom
1008-the-export-metadata-button-is-misleading-when-viewing-an-older-version-of-a-dataset-because-it-gives-you-the-latest-published-version

Conversation

@ChengShi-1

@ChengShi-1 ChengShi-1 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

  • Show "Export Metadata" button on file pages, only for the latest released dataset version
  • update "isLatest" param check if the current ver is latest

Which issue(s) this PR closes:

Special notes for your reviewer:

  • isLatest(of published version) doesn't exist in api result, so I did it by comparing current version to getVersionSummaries

Suggestions on how to test this:

  • create a dataset and upload file
  • update some metadata and publish so there are multiple versions of this dataset
  • check in file version, the "Export Metadata" button on dataset pages and file pages, only show for the latest released dataset version, and hide for other versions
  • Also, for a draft version, as a dataset owner, the button should show and return draft version metadata

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

image

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

yes

Additional documentation:

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 97.295% (-0.05%) from 97.343% — 1008-the-export-metadata-button-is-misleading-when-viewing-an-older-version-of-a-dataset-because-it-gives-you-the-latest-published-version into develop

Comment thread CHANGELOG.md

### Changed

- Hide "Export Metadata" on file pages that are not for the latest released dataset version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it make sense to address the following issue in the same PR?

@ChengShi-1 ChengShi-1 self-assigned this Jul 9, 2026
@ChengShi-1 ChengShi-1 added Size: 10 A percentage of a sprint. 7 hours. Original size: 10 labels Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 26 FY26 Sprint 26 (2026-06-17 - 2026-07-01) GREI Re-arch GREI re-architecture-related Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

The "Export Metadata" button is misleading when viewing an older version of a dataset because it gives you the latest published version

3 participants