Skip to content

feat: add optional datasetType to DatasetDTO and include in transform…#354

Draft
jp-tosca wants to merge 1 commit intodevelopfrom
trusted_data
Draft

feat: add optional datasetType to DatasetDTO and include in transform…#354
jp-tosca wants to merge 1 commit intodevelopfrom
trusted_data

Conversation

@jp-tosca
Copy link
Contributor

This pull request introduces support for handling the datasetType property in the dataset DTO and ensures it is correctly included in payload transformations. The main changes are grouped by DTO updates and transformer logic enhancements.

DTO updates:

  • Added an optional datasetType property to the DatasetDTO interface in src/datasets/domain/dtos/DatasetDTO.ts, allowing datasets to specify their type.

Transformer logic enhancements:

  • Updated the transformDatasetModelToNewDatasetRequestPayload function in src/datasets/infra/repositories/transformers/datasetTransformers.ts to conditionally include datasetType in the payload if it is present in the dataset.

pdurbin added a commit to pdurbin/dataverse-frontend that referenced this pull request Sep 8, 2025
Note that it depends on this PR:
IQSS/dataverse-client-javascript#354

However, there's a new PR to try instead:
IQSS/dataverse-client-javascript#360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant