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

Ecto 3.0-rc.1 support #51

Merged
merged 2 commits into from
Oct 31, 2018
Merged

Ecto 3.0-rc.1 support #51

merged 2 commits into from
Oct 31, 2018

Conversation

rustamtolipov
Copy link
Contributor

Mainly changed Ecto.Date to Date and replaced Poison with Jason per http://blog.plataformatec.com.br/2018/10/a-sneak-peek-at-ecto-3-0-breaking-changes/.
Also fixed some deprecation warnings for Multi.run

@izelnakri
Copy link
Owner

awesome, thanks for your work! I'll review this soon.

end

@optional_fields ~w(name is_active website city address facebook twitter founded_in)
@optional_fields ~w(name is_active website city address facebook twitter founded_in)a
Copy link
Owner

Choose a reason for hiding this comment

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

what does this a do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ecto 3.0 Ecto.Changeset.cast/3 with list of strings is deprecated, you have to pass list of atoms
https://github.com/elixir-ecto/ecto/blob/master/CHANGELOG.md#deprecations

example/.iex.exs Outdated
@@ -1 +0,0 @@
import Ecto.Query
Copy link
Owner

Choose a reason for hiding this comment

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

this is to import Ecto.Query functions globally(to Kernel) I dont think its redundant, so I would like to keep it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I forgot to put it back, sorry.

{:ecto_sql, "~> 3.0-rc", override: true},
{:postgrex, ">= 0.0.0-rc"},
{:jason, "~> 1.0"},
{:paper_trail, path: "../"}
Copy link
Owner

Choose a reason for hiding this comment

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

👍 very nice

{:ex_doc, ">= 0.0.0", only: :dev},
{:postgrex, "~> 0.13.0"}
{:postgrex, ">= 0.0.0-rc"},
Copy link
Owner

Choose a reason for hiding this comment

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

0.0.0-rc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I just copied it and pasted from mix.exs of generated phoenix 1.4.0-rc app. Do you want me to change it to the latest version or "=> 0.0.0"?

@izelnakri
Copy link
Owner

Great work overall, could you also update the README/documentation regarding the changes? Thank you!

@izelnakri izelnakri merged commit 35da0b2 into izelnakri:master Oct 31, 2018
@izelnakri
Copy link
Owner

merged your PR, thank you! Currently cannot release due ecto_sql being pre-release version, hex will allow me to publish when they publish ecto_sql v3.0

@rustamtolipov rustamtolipov deleted the ecto3 branch October 31, 2018 05:19
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.

None yet

2 participants