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

remove adapter specific bang function #667

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

pehbehbeh
Copy link
Member

WIP

@@ -1,16 +1,9 @@
defmodule Backpex.NoResourceError do
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NoResourceError is not used anymore, as far as I can see.

Comment on lines +69 to +73
case get(primary_value, assigns, live_resource) do
{:ok, nil} -> raise Backpex.NoResultsError
{:ok, result} -> result
{:error, _error} -> raise Backpex.NoResultsError
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Flo0807 Like this? I think we should work with result tuples everywhere (like Ash for example).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants