Inconsistency in `DatasetVersionInfo` model? (Date vs string)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- api, backend-api-design
Research direction
Start with the referenced DatasetVersionInfo definition in src/datasets/domain/models/Dataset.ts and the transformation in src/datasets/infra/repositories/transformers/datasetTransformers.ts. Compare how releaseTime, createTime, and lastUpdateTime are represented against the Dataverse API response. Done means the model and transformer use a deliberate, consistent timestamp representation for all three fields.
Written by the indexing model from the issue text.
Description
I noticed that in the DatasetVersionInfo model, the timestamps use inconsistent types:
releaseTime and createTime are represented as Date objects, while lastUpdateTime is represented as an ISO 8601 string and not transformed into a Date object:
The return values from the Dataverse API for retrieving a dataset version are all consistently ISO 8601 strings:
I was wondering what the reason for this is, or whether this inconsistency should be cleaned up? (If so, I'd be open to opening a PR for that)
- Dominant language
- TypeScript
- Stars
- 20
- Forks
- 11
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IQSS/dataverse-client-javascript
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
IQSS/dataverse-client-javascript#477 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
IQSS/dataverse-client-javascript#465 · 1 comment · 2 reactions ·
-
GREI Re-arch
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
FY26 Sprint 3 FY27 Sprint 3 GREI Re-arch Size: 20 SPA
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in IQSS/dataverse-client-javascript
Similar issues
-
clawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
supermomonga/zcode-acp#24 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/growthbook#7100 ·
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100