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

Fix update_item may raise #457

Merged
merged 5 commits into from
Jul 10, 2024
Merged

Conversation

Flo0807
Copy link
Collaborator

@Flo0807 Flo0807 commented Jul 10, 2024

It's possible that update_item raises an Ecto.NoResultsError. For example, if the item_query adds additional filters (e.g., limit access to specific users). We would rather not raise in this case.

@Flo0807 Flo0807 added the bug Something isn't working label Jul 10, 2024
@Flo0807 Flo0807 self-assigned this Jul 10, 2024
@Flo0807 Flo0807 changed the title Fix update_item may cause errors Fix update_item may raise Jul 10, 2024
@Flo0807 Flo0807 requested a review from pehbehbeh July 10, 2024 09:04
lib/backpex/resource.ex Outdated Show resolved Hide resolved
lib/backpex/resource.ex Outdated Show resolved Hide resolved
@Flo0807 Flo0807 requested a review from pehbehbeh July 10, 2024 10:43
@pehbehbeh pehbehbeh merged commit ef67c20 into develop Jul 10, 2024
7 checks passed
@pehbehbeh pehbehbeh deleted the feature/fix-update-item-causes-errors branch July 10, 2024 11:15
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

Successfully merging this pull request may close these issues.

2 participants