IQSS / dataverse-client-javascript

A Dataverse client for JavaScript and TypeScript
MIT License
15 stars 8 forks source link

Edit dataset use case #151

Closed GPortas closed 3 months ago

GPortas commented 4 months ago

What this PR does / why we need it:

Adds the dataset editing use case to the package.

This use case will be used by the SPA dataset edit form, but could be useful for any other consumer application that requires updating dataset metadata.

The use case reuses the logic from the dataset creation use case, such as field validation, which is why I refactored the code to avoid duplication.

Which issue(s) this PR closes:

Related Dataverse PRs:

Suggestions on how to test this:

Visual inspection of the code and GitHub actions.

Additional documentation:

None

GPortas commented 4 months ago

Code looks solid and tests are passing perfectly. This use case is for updating only the metadata field values of a dataset right?

Thanks for your review. Yes, only the metadata.

ekraffmiller commented 3 months ago

looks good! ran the tests in my environment and all are passing