Skip to content

Conversation

@vera
Copy link
Contributor

@vera vera commented May 15, 2025

What this PR does / why we need it:

This PR changes the API for listing the dataverses a dataset has been linked to (api/datasets/$linked-dataset-id/links) to be accessible for non-superusers.

The UI already shows this list to any authenticated user as part of the "Link Dataset" popup (see screenshot), so I think this is a reasonable change.

image

I've added a test that checks that listing linked dataverses is now possible for non-superusers. The test also confirms that unpublished dataverses are not "leaked" through this list (a linked dataverse is only part of the list if it's either published or the requesting user has permission to view that unpublished dataverse).

Which issue(s) this PR closes:

/

Special notes for your reviewer:

/

Suggestions on how to test this:

I've added a test for this change: mvn test -Dtest="LinkIT#testListLinks"

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?:

I will add a short release note.

Additional documentation:

/

@vera vera force-pushed the feat/list-dataset-links branch from 0c10552 to e5fd133 Compare May 15, 2025 11:01
@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project May 15, 2025
@scolapasta scolapasta moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project May 20, 2025
@cmbz cmbz added FY25 Sprint 23 FY25 Sprint 23 (2025-05-07 - 2025-05-21) FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) labels May 20, 2025
@cmbz cmbz added the FY25 Sprint 25 FY25 Sprint 25 (2025-06-04 - 2025-06-18) label Jun 4, 2025
@cmbz cmbz added the FY25 Sprint 26 FY25 Sprint 26 (2025-06-18 - 2025-07-02) label Jun 19, 2025
@cmbz cmbz added the FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) label Jul 2, 2025
@stevenwinship stevenwinship self-assigned this Jul 11, 2025
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jul 11, 2025
@coveralls
Copy link

coveralls commented Jul 11, 2025

Coverage Status

coverage: 23.173% (+0.01%) from 23.161%
when pulling f93ee36 on vera:feat/list-dataset-links
into 7e16ed3 on IQSS:develop.

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jul 11, 2025
@stevenwinship stevenwinship removed their assignment Jul 11, 2025
@cmbz cmbz added the FY26 Sprint 2 FY26 Sprint 2 (2025-07-16 - 2025-07-30) label Jul 17, 2025
@ofahimIQSS ofahimIQSS self-assigned this Jul 21, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to QA ✅ in IQSS Dataverse Project Jul 21, 2025
updated version in pom.xml
@ofahimIQSS
Copy link
Contributor

image

looking good, merging.

@ofahimIQSS ofahimIQSS merged commit a896955 into IQSS:develop Jul 22, 2025
14 of 15 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Jul 22, 2025
@ofahimIQSS ofahimIQSS removed their assignment Jul 22, 2025
@pdurbin pdurbin added this to the 6.8 milestone Jul 22, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jul 23, 2025
@cmbz cmbz added the FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 23 FY25 Sprint 23 (2025-05-07 - 2025-05-21) FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) FY25 Sprint 25 FY25 Sprint 25 (2025-06-04 - 2025-06-18) FY25 Sprint 26 FY25 Sprint 26 (2025-06-18 - 2025-07-02) FY26 Sprint 1 FY26 Sprint 1 (2025-07-02 - 2025-07-16) FY26 Sprint 2 FY26 Sprint 2 (2025-07-16 - 2025-07-30) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27)

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

6 participants