-
Notifications
You must be signed in to change notification settings - Fork 10
File: Use Case Get Available Dataset File Categories #344
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
File: Use Case Get Available Dataset File Categories #344
Conversation
This reverts commit d492fea.
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.
Pull Request Overview
This PR introduces a new use case to retrieve available file categories for a dataset, which supports the JSF feature for populating category dropdown lists when editing file tags. The categories include both default categories and custom categories from other files in the same dataset.
- Adds
GetDatasetAvailableCategoriesuse case and repository method - Updates documentation links for existing file metadata update use cases
- Removes deprecated
LinkDataverseandLinkDatasetpermissions from role definitions
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/datasets/domain/useCases/GetDatasetAvailableCategories.ts |
Implements new use case to retrieve available file categories for a dataset |
src/datasets/infra/repositories/DatasetsRepository.ts |
Adds repository method to fetch available categories from API endpoint |
src/datasets/domain/repositories/IDatasetsRepository.ts |
Adds interface method for getting dataset available categories |
src/datasets/index.ts |
Exports the new use case for public consumption |
test/integration/datasets/DatasetsRepository.test.ts |
Adds integration tests for the new repository method |
test/functional/datasets/GetDatasetAvailableCategories.test.ts |
Adds functional tests for the new use case |
docs/useCases.md |
Documents the new use case with usage examples |
src/files/domain/useCases/UpdateFileTabularTags.ts |
Fixes documentation URL fragment for tabular tags |
src/files/domain/useCases/UpdateFileCategories.ts |
Fixes documentation URL fragment for file categories |
test/testHelpers/roles/roleHelper.ts |
Removes deprecated link permissions from role definitions |
Co-authored-by: Copilot <[email protected]>
…s' of https://github.com/IQSS/dataverse-client-javascript into 336-file-use-cases-get-available-dataset-file-categories
g-saracca
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, just one comment.
|
hello! can you resolve the conflicts please :) |
All yours @ofahimIQSS |
|
looks good - merging |
What this PR does / why we need it:
In JSF, when we update Tags -> Edit Tags, there is a list of available categories populated from the dropdown lists, and some of them could be customized categories from other files in the same dataset.
Which issue(s) this PR closes:
Related Dataverse PRs:
Special notes for your reviewer:
RoleHelper for testing changed because Revert "feat: "Link Dataset/Dataverse" permission"
Suggestions on how to test this:
Is there a release notes update needed for this change?:
Additional documentation: