-
Notifications
You must be signed in to change notification settings - Fork 1
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
Arbitrary station positions (drag+drop and refactor) #93
base: master
Are you sure you want to change the base?
Conversation
IO.puts("Transaction failed!") | ||
IO.inspect(failed_operation) | ||
IO.inspect(failed_value) |
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.
Use Logger.debug/1
here instead of directly printing out with IO
.
IO.inspect(failed_value) | ||
socket |> put_flash(:info, "Transaction failed") | ||
end | ||
|
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 make empty colums/rows disappear from the visual designer when hitting save to reflect the state of the database and other display pages at that moment.
@@ -17,12 +17,10 @@ defmodule Lanpartyseating.SettingsLogic do | |||
end | |||
end | |||
|
|||
# returns an Ecto.Multi that has to be written |
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.
Wrap this in an @doc """ """
string so it can be rendered out into generated documentation
|> Enum.into(%{}) | ||
end | ||
|
||
# {columns, rows} |
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.
Wrap this in an @doc """ """
string so it can be rendered out into generated documentation
def save_station_positions(table) do | ||
Repo.delete_all(Station) | ||
|
||
def save_stations(grid) do |
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.
Rename this function to something more clear because it does not actually save the stations as it is written now.
columns
androws
from settings, now computed from xy datais_broken
) is stored instations_status
to avoid being deleted by saving settings