Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Add use cases for dataset curation status and submit for review

Offen
#493 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@ChengShi-1 arbeitet bereits daran.

Seit 08.10.2026.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

Read the existing datasets use cases under the package's datasets domain folder (e.g. an existing Get* use case), then IDatasetsRepository and its DatasetsRepository HTTP implementation, to copy the use-case → interface → implementation pattern. Map the six endpoints from the table, export everything from the package's public entry point, and mirror existing unit tests (delegation, error propagation) plus integration tests for numeric/persistent IDs. Done means docs/useCases.md and the [Unreleased] changelog updated and build, type-check, lint, unit tests and integration tests pass.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

FY27 Sprint 8 Size: 10 SPA

Overview of the feature request

Add public use cases for the existing Dataverse curation-status APIs so the SPA can support the same label selection, removal, and history functionality as JSF. Curation labels are configurable tracking values. Changing a label does not submit a dataset for review, return it to its author, or publish it.

Also, add an use case of Submit for Review for anonymous user to submit the dataset to review.

What inspired the request?

The frontend's ChangeCurationStatusMenu currently opens the not-implemented modal. Its allowed labels come from hard-coded values in DataverseInfoJSDataverseRepository.getExternalStatusesAllowed(). The frontend needs the effective labels for each dataset and reusable client methods for the real API operations.

What existing behavior do you want changed?

Expose these operations through the package's public API, following the existing use-case → repository interface → repository implementation pattern. Consumers should not need direct HTTP requests or imports from internal dist/ paths.

Any brand new behavior do you want to add to dataverse-client-javascript?

Proposed use cases (names can follow project conventions):

Use case Backend API
GetAllowedDatasetCurationLabels GET /api/datasets/{id}/allowedCurationLabels
GetDatasetCurationStatus GET /api/datasets/{id}/curationStatus
GetDatasetCurationStatusHistory GET /api/datasets/{id}/curationStatus?includeHistory=true
SetDatasetCurationStatus PUT /api/datasets/{id}/curationStatus?label={label}
DeleteDatasetCurationStatus DELETE /api/datasets/{id}/curationStatus
SubmitforReview POST /api/datasets/{id}/submitForReview
Acceptance criteria
  • Implement and publicly export all five use cases and their models.
  • Extend IDatasetsRepository and DatasetsRepository, with response mapping as needed.
  • Add unit tests for delegation, response normalization, history/removal records, and error propagation.
  • Add integration tests for numeric and persistent IDs, query encoding, allowed-label retrieval, set/read/change/remove/history, and forbidden or invalid operations.
  • Verify a status change does not change review locks or publication state.
  • Document required configuration (:AllowedCurationLabels and effective label-set selection), publisher permissions for mutations/allowed-label reads, and configurable visibility for status reads.
  • Update docs/useCases.md and the [Unreleased] changelog; pass build, type checking, lint, and relevant tests.

This issue covers client wrappers for existing curation-status APIs. Frontend components, administrator label-set configuration APIs, submit-for-review, and return-to-author use cases can be tracked separately.

Any open or closed issues related to this feature request?

No matching curation-status issue was found. #447 concerns linked review datasets, which are separate from curation labels and their history.

References:

Vorherrschende Sprache
TypeScript
Sterne
20
Forks
11
Ø Merge
4 T. 9 Std.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus IQSS/dataverse-client-javascript

Alle Issues in IQSS/dataverse-client-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.