Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
phwissmann opened this issue May 8, 2025 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@phwissmann
Copy link
Collaborator

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

@phwissmann phwissmann self-assigned this May 8, 2025
@phwissmann phwissmann added the bug Something isn't working label May 8, 2025
@sbliven
Copy link
Member

sbliven commented May 12, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants