-
Notifications
You must be signed in to change notification settings - Fork 531
feat: allow non-superusers to list the links of a dataset via API #11492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0c10552 to
e5fd133
Compare
stevenwinship
approved these changes
Jul 11, 2025
updated version in pom.xml
Contributor
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)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

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.
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:
/