Skip to content
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

Specify all entities which can't be linked to a collection on a create/attach/detach call. #134

Open
PGijsbers opened this issue Dec 22, 2023 · 0 comments
Labels
Collections Collection endpoints enhancement New feature or request

Comments

@PGijsbers
Copy link
Contributor

The current implementation relies on the database errors to specify if something can not be (un)linked to a study. This is useful because there is less overhead in the happy-path. However, when some entities don't exist, or are already attached (for attach) or are not attached (for detach), then only the first such conflict is provided by the database error. This means that a user that tries to attach multiple entities at once, with multiple conflicts at once, can only resolve the conflicts one-by-one (or they have to collect the study/tasks/runs themselves, then do the matching). It would be good to do this check serverside only if we already establish there is already at least one conflict.

@PGijsbers PGijsbers added enhancement New feature or request Collections Collection endpoints labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Collections Collection endpoints enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant