Skip to content

[Bug] [Scicat Backend] size reset to 0 when updating dataset lifecycle #192

@phwissmann

Description

@phwissmann

Describe the bug
curl -X 'PATCH' \ 'https://scopem-openem.ethz.ch/scicat/backend/api/v3/datasets/undefined%2F7f8ab089-09c5-4539-b3e4-9ae4be0f8f10' \ -H 'accept: application/json' \ -H 'Authorization: Bearer <token>' \ -H 'Content-Type: application/json' \ -d '{ "datasetlifecycle": { "archivable" : false, "retrievable": true, "archiveStatusMessage":"datasetOnArchiveDisk", "isOnCentralDisk": false } }'

Produces the diff

Image

Scicat implementation:

https://github.com/SciCatProject/scicat-backend-next/blob/7c6a1925b6ed48a0fdee4f3d981dcdd6aaebec06/src/datasets/dto/update-dataset.dto.ts#L101

Follow up with PSI archiver team on how they update lifecycle. Sofia is implementing a separate endpoing

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions