Skip to content

Conversation

@g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Sep 2, 2025

What this PR does / why we need it:

Adds the Get Dataset Templates use case.
I've left some useful comments in the models so everyone can understand better the models while we develop the full functionality of dataset templates.
This use case is going to be used in the SPA Create Dataset page.
We can improve and extend tests in future iterations of Dataset Templates, for now I keep them simple.

Which issue(s) this PR closes:

@github-actions github-actions bot added 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 3 (2025-07-30 - 2025-08-13) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) FY26 Sprint 5 FY26 Sprint 5 (2025-08-27 - 2025-09-10) GREI Re-arch GREI re-architecture-related SPA.Q3.2025.12 Dataset Templates labels Sep 2, 2025
@pdurbin
Copy link
Member

pdurbin commented Sep 3, 2025

@g-saracca I mentioned that Svetlana Lebedeva had some feedback the other day that made me think of dataset templates. Please see https://dataverse.zulipchat.com/#narrow/channel/375707-community/topic/biological.20sample.20level.20information/near/537530702

@g-saracca g-saracca changed the title Feat/317 get dataset templates Get Dataset Templates use case Sep 5, 2025
@g-saracca g-saracca marked this pull request as ready for review September 8, 2025 02:28
@g-saracca g-saracca moved this to Ready for Review ⏩ in IQSS Dataverse Project Sep 8, 2025
@g-saracca g-saracca added the Size: 0.5 A percentage of a sprint. 0.35 hours label Sep 8, 2025
@g-saracca g-saracca requested a review from ChengShi-1 September 8, 2025 18:09
@ChengShi-1 ChengShi-1 self-assigned this Sep 8, 2025
@ChengShi-1 ChengShi-1 moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Sep 8, 2025
Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Looks good overall! Could you add a unit test and a test case if return error result

datasetFields: DatasetFieldsPayload
instructions: Instruction[]
// 👇 From Edit Template Terms
termsOfUseAndAccess: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think we may need a separate interface for TermsOfUseAndAccess, based on dataverse TermsOfUseAndAccess? We could make changes on this part until we implement the use case of edit terms

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same here as comment above, this is the payload, after the mapping I'm using the already there TermsOfUse model.

@g-saracca
Copy link
Contributor Author

Sorry Cheng, moving to On Hold, until knowing how to proceed based on possible backend/API changes needed.

@g-saracca g-saracca self-assigned this Sep 9, 2025
@g-saracca g-saracca moved this from In Review 🔎 to On Hold ⌛ in IQSS Dataverse Project Sep 9, 2025
@g-saracca
Copy link
Contributor Author

Moving from On Hold to In Progress, waiting on IQSS/dataverse#11801

@g-saracca g-saracca moved this from On Hold ⌛ to In Progress 💻 in IQSS Dataverse Project Sep 9, 2025
@g-saracca g-saracca removed the Waiting label Sep 9, 2025
@g-saracca g-saracca moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Sep 10, 2025
@g-saracca g-saracca removed their assignment Sep 10, 2025
@g-saracca
Copy link
Contributor Author

@ChengShi-1 this can be reviewed again and also I standardized the License models stuff...

@ChengShi-1 ChengShi-1 moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Sep 10, 2025
Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for standardizing the license 💯

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Sep 10, 2025
@pdurbin
Copy link
Member

pdurbin commented Sep 10, 2025

Since we're working on templates, I thought I'd mention this interesting feature request (for the future):

@ofahimIQSS
Copy link
Contributor

tests passing - merging

@ofahimIQSS ofahimIQSS merged commit 81a431e into develop Sep 10, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Sep 10, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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 3 (2025-07-30 - 2025-08-13) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) FY26 Sprint 5 FY26 Sprint 5 (2025-08-27 - 2025-09-10) GREI Re-arch GREI re-architecture-related Size: 0.5 A percentage of a sprint. 0.35 hours SPA.Q3.2025.12 Dataset Templates

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Create use cases for dataset templates

5 participants