Skip to content

feat: add API for getting default contributor role of a collection#12112

Open
vera wants to merge 3 commits intoIQSS:developfrom
vera:feat/get-default-contributor-role
Open

feat: add API for getting default contributor role of a collection#12112
vera wants to merge 3 commits intoIQSS:developfrom
vera:feat/get-default-contributor-role

Conversation

@vera
Copy link
Contributor

@vera vera commented Jan 26, 2026

What this PR does / why we need it:

This PR adds a new API endpoint for getting the default contributor role for a collection (GET /api/dataverses/$ID/defaultContributorRole), analogous to the existing endpoint for setting it (PUT /api/dataverses/$ID/defaultContributorRole/$ALIAS).

Which issue(s) this PR closes:

  • Not aware of any issue.

Special notes for your reviewer:

/

Suggestions on how to test this:

I've extended the existing test:

mvn test -Dtest="DataversesIT#testUpdateDefaultContributorRole"

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:

/

@pdurbin pdurbin moved this to Ready for Triage in IQSS Dataverse Project Jan 26, 2026
@scolapasta scolapasta moved this from Ready for Triage to Ready for Review ⏩ in IQSS Dataverse Project Jan 27, 2026
@cmbz cmbz added FY26 Sprint 15 FY26 Sprint 15 (2026-01-14 - 2026-01-28) FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) labels Jan 29, 2026
@cmbz cmbz added the FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25) label Feb 11, 2026
@stevenwinship stevenwinship self-assigned this Feb 17, 2026
@stevenwinship stevenwinship moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Feb 17, 2026
@coveralls
Copy link

Coverage Status

coverage: 24.326% (-0.01%) from 24.336%
when pulling 9be6c93 on vera:feat/get-default-contributor-role
into a843c84 on IQSS:develop.

@@ -0,0 +1 @@
A new API endpoint for getting the default contributor role of a collection (`GET /api/dataverses/$ID/defaultContributorRole`) was added. No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update native-api.rst with the new API

See: Assign Default Role to User Creating a Dataset in a Dataverse Collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 15 FY26 Sprint 15 (2026-01-14 - 2026-01-28) FY26 Sprint 16 FY26 Sprint 16 (2026-01-28 - 2026-02-11) FY26 Sprint 17 FY26 Sprint 17 (2026-02-11 - 2026-02-25)

Projects

Status: In Review 🔎

Development

Successfully merging this pull request may close these issues.

4 participants