dataverse-frontend
dataverse-frontend copied to clipboard
Fix/454 dataset page actions for draft
What this PR does / why we need it:
Since the default dataset version has changed from :latest to :latest-published, more links need to updated to include&version=DRAFTwhen working with a draft version. The "Access Dataset", "Edit Metadata" and "FIle Upload" actions need to be updated to navigate to the correct dataset url.
Which issue(s) this PR closes:
Closes #454
Special notes for your reviewer: There is also a fix for duplicate react keys on collection page dataset cards.
Suggestions on how to test this:
- Create a Dataset, go to that Dataset and click the Edit Dataset => Files (Upload) should navigate correctly to the File Upload page. (
version=DRAFT
query param should be present on the URL) - Create a Dataset, go to that Dataset and click the Edit Dataset => Metadata should navigate correctly to the Edit dataset metadata page. (
version=DRAFT
query param should be present on the URL) - Publish that Dataset and navigate to the Files Upload & the Edit Dataset page. (
version=DRAFT
query param should NOT be present on the URL) - Access Dataset dropdown should not be visible when the Dataset has no files. Try uploading some files from the JSF version and check that in the Dataset View page on the SPA now the Access Dataset dropdown is visible and works correctly.
Does this PR introduce a user interface change? If mockups are available, please link/include them here: No
Is there a release notes update needed for this change?: No
Additional documentation: No