Skip to content

Conversation

@jp-tosca
Copy link
Contributor

What this PR does / why we need it:

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

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

Additional documentation:

@github-actions github-actions bot added Feature: API FY26 Sprint 10 FY26 Sprint 10 (2025-11-05 - 2025-11-19) FY26 Sprint 9 FY26 Sprint 9 (2025-10-22 - 2025-11-05) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA These changes are required for the Dataverse SPA SPA.Q3.2025.12 Dataset Templates Type: Feature a feature request labels Nov 18, 2025
@github-actions

This comment has been minimized.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements API endpoints to set and remove the default template for a dataverse collection, addressing issue #11914.

Key Changes:

  • Added POST /api/dataverses/{id}/templates/default/{templateId} endpoint to set a default template
  • Added DELETE /api/dataverses/{id}/templates/default endpoint to remove the default template
  • Added test coverage for the set default template endpoint with permission checks

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
src/main/java/edu/harvard/iq/dataverse/api/Dataverses.java Implements two new endpoints for setting and removing default templates
src/test/java/edu/harvard/iq/dataverse/api/UtilIT.java Adds helper methods setDefaultTemplate() and removeDefaultTemplate() for testing
src/test/java/edu/harvard/iq/dataverse/api/DataversesIT.java Updates testCreateAndGetTemplates() to test setting default template with authorization checks
doc/release-notes/11914-set-template-default-api.md Documents the new endpoints and their functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jp-tosca jp-tosca requested a review from Copilot November 21, 2025 17:46
sekmiller and others added 3 commits January 14, 2026 11:36
…DefaultTemplateCommand.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…oveDefaultTemplateCommand.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@sekmiller
Copy link
Contributor

Added the doc; turning it back over to you.

@sekmiller sekmiller removed their assignment Jan 14, 2026
@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions
Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:11914-set-template-default
ghcr.io/gdcc/configbaker:11914-set-template-default

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@stevenwinship stevenwinship merged commit 45724b9 into develop Jan 14, 2026
9 of 11 checks passed
@github-project-automation github-project-automation bot moved this from QA ✅ to Merged 🚀 in IQSS Dataverse Project Jan 14, 2026
@stevenwinship stevenwinship deleted the 11914-set-template-default branch January 14, 2026 19:58
@stevenwinship stevenwinship removed their assignment Jan 14, 2026
@pdurbin pdurbin added this to the 6.10 milestone Jan 14, 2026
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature: API FY26 Sprint 9 FY26 Sprint 9 (2025-10-22 - 2025-11-05) FY26 Sprint 10 FY26 Sprint 10 (2025-11-05 - 2025-11-19) FY26 Sprint 11 FY26 Sprint 11 (2025-11-20 - 2025-12-03) FY26 Sprint 12 FY26 Sprint 12 (2025-12-03 - 2025-12-17) FY26 Sprint 13 FY26 Sprint 13 (2025-12-17 - 2025-12-31) FY26 Sprint 14 FY26 Sprint 14 (2025-12-31 - 2026-01-14) GREI Re-arch Issues related to the GREI Dataverse rearchitecture Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA.Q3.2025.12 Dataset Templates SPA These changes are required for the Dataverse SPA Type: Feature a feature request

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Add a new API to set a template as default

7 participants