-
Notifications
You must be signed in to change notification settings - Fork 0
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
#36 Creates search/drinks page #111
Conversation
|
||
drinkDecoder : Decoder Drink | ||
drinkDecoder = | ||
Decode.map3 Drink |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider using decode pipeline in next iteration. https://github.com/NoRedInk/elm-json-decode-pipeline 👍
schema "drink_types" do | ||
field(:name, :string) | ||
field(:entry_id, :string) | ||
field(:deleted, :boolean) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alog
should automatically add the :deleted
column to any table where it is used.
see: dwyl/phoenix-ecto-append-only-log-example#7 (comment)
join_keys: [drink_type_id: :id, drink_id: :id] | ||
) | ||
|
||
timestamps() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably need to over-ride this phoenix macro as we don't need the updated_at
column.
}) | ||
} | ||
|
||
function swipe(el, callback){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add JSDOC comments to JavaScript code so others can understand it.
ideally state the source of the code.
@@ -0,0 +1,15 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please delete
this file in the next iteration.
field(:logo, :string) | ||
field(:website, :string) | ||
field(:entry_id, :string) | ||
field(:deleted, :boolean, default: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,41 @@ | |||
<%= form_for @changeset, @action, fn f -> %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this form be rendered by autoform
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#36 Creates search/drinks page
#37 Enables filters on search/drinks page to filter by drink type