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

Validate all children before adding as constituents #365

Closed
mjgiarlo opened this issue Sep 4, 2019 · 0 comments · Fixed by #366
Closed

Validate all children before adding as constituents #365

mjgiarlo opened this issue Sep 4, 2019 · 0 comments · Fixed by #366

Comments

@mjgiarlo
Copy link
Member

mjgiarlo commented Sep 4, 2019

Validate all children early before touching any objects and fail fast if any children can't be combined.

Blocks sul-dlss/argo#1463

@mjgiarlo mjgiarlo self-assigned this Sep 4, 2019
@mjgiarlo mjgiarlo added this to Ready in Infrateam Aug-Sep 2019 via automation Sep 4, 2019
@mjgiarlo mjgiarlo moved this from Ready to In progress in Infrateam Aug-Sep 2019 Sep 4, 2019
mjgiarlo added a commit that referenced this issue Sep 5, 2019
Refs #365

This new class method takes an array of druids and makes sure each is combinable. If any are not, a hash of errors is created and returned.
mjgiarlo added a commit that referenced this issue Sep 5, 2019
Fixes #365

Includes:
* Add `ItemQueryService.validate_combinable_items`. This new class method takes an array of druids and makes sure each is combinable. If any are not, a hash of errors is created and returned.
* Validate all items to be combined before modifying any of them
* Return HTTP 422 when constituent service returns errors
Infrateam Aug-Sep 2019 automation moved this from In progress to Done Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant