-
Notifications
You must be signed in to change notification settings - Fork 10
Get Dataset Templates use case #355
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
Conversation
|
@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 |
ChengShi-1
left a comment
There was a problem hiding this 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
src/datasets/infra/repositories/transformers/DatasetTemplatePayload.ts
Outdated
Show resolved
Hide resolved
| datasetFields: DatasetFieldsPayload | ||
| instructions: Instruction[] | ||
| // 👇 From Edit Template Terms | ||
| termsOfUseAndAccess: { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
|
Sorry Cheng, moving to On Hold, until knowing how to proceed based on possible backend/API changes needed. |
|
Moving from On Hold to In Progress, waiting on IQSS/dataverse#11801 |
|
@ChengShi-1 this can be reviewed again and also I standardized the License models stuff... |
ChengShi-1
left a comment
There was a problem hiding this 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 💯
|
Since we're working on templates, I thought I'd mention this interesting feature request (for the future): |
|
tests passing - merging |
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: