-
Notifications
You must be signed in to change notification settings - Fork 71
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
[WIP] Upgrading Elixir and dependencies #1402
Conversation
Currently tests fail with the following log:
|
@@ -67,7 +67,7 @@ defmodule Cog.Command.Output do | |||
# typed by the user. | |||
defp redirection_error_message(errors) do | |||
all_bad_redirects = errors | |||
|> Enum.map(fn({_,r}) -> r end) | |||
|> Enum.map(fn({_, r}) -> r 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.
Use a function call when a pipeline is only one function long
@@ -133,7 +133,7 @@ defmodule Cog.Bootstrap do | |||
# like the user was attempting to bootstrap via environment we will | |||
# warn about the missing variables. | |||
missing -> | |||
Enum.each(missing, fn({k,_v}) -> Logger.info("Skipping bootstrap: Missing value for #{bootstrap_var_for(k)}.") end) | |||
Enum.each(missing, fn({k, _v}) -> Logger.info("Skipping bootstrap: Missing value for #{bootstrap_var_for(k)}.") 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.
Function body is nested too deep (max depth is 2, was 3).
result = Repo.transaction fn -> | ||
case bootstrap_from_env do | ||
case bootstrap_from_env() 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.
Function body is nested too deep (max depth is 2, was 3).
@@ -120,7 +120,7 @@ defmodule Cog.Bootstrap do | |||
fields = ~w(username password email_address first_name last_name) | |||
vars = | |||
Enum.map(fields, fn(field) -> { field, System.get_env(bootstrap_var_for(field)) } end) | |||
|> Enum.group_by(fn({_k,v}) -> if (v != nil), do: :found, else: :not_found end) | |||
|> Enum.group_by(fn({_k, v}) -> if v != nil, do: :found, else: :not_found 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.
Use a function call when a pipeline is only one function long
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/operable/cog/pulls/1402. |
Will circle back to this at a later date. |
Upgrading Elixir support to 1.5. At the same time, upgrading dependencies to support the upgrade.
Fixes #1393