-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Adjust to Ecto's new parametrized representation #119
Conversation
Ecto changed its parametrized representation from 3-tuple to 2-tuple since v3.12. Before Ecto v3.12 it was: {:parameterized, Ecto.Enum, %{...}} Since Ecto v3.12 it is: {:parameterized, {Ecto.Enum, %{...}}}
Hi, thanks for bringing this to my attention. It is very surprising that Ecto has introduced a breaking change in a minor release, as I have found José to be extremely reticent to allow those at all. It makes me wonder if this is supposed to be a private API, which would incline me to remove dependence on it. That is suggested but unfortunately not confirmed in the thread you linked, and I don't see how it could be because as I recall this is returned by |
Changelog for 3.12 mentions that this is a "private representation" but I don't see how that can be true given that it is returned by a public API. Not sure what's up there but this change makes sense to me. The only problem is all the warnings introduced by the deps updates which are currently breaking CI. @nimf can you clarify here:
Did you use the --all option when upgrading, or are all of the .lock changes just from updating the ecto deps? edit It looks like if I just replace the three ecto related deps, and run |
Hmm… for some reason when I upgraded just the ecto libs ‘mix deps.get’ was failing. I tried to find the minimal amount of changes to satisfy all requirements, but I had to update one thing after another until almost everything was upgraded. |
If I update just the
for test. And for dev:
How do you usually solve this? |
Weird. Originally I had updated If I update just
But then bumping In order to get these changes in without the updates, I'm going to open my own PR, but thanks again for opening this! |
Did you run ‘mix test’ after update? |
Closing in favor of 9d32862 |
Ecto changed its parametrized representation from 3-tuple to 2-tuple since v3.12. (elixir-ecto/ecto#4419)
Before Ecto v3.12 it was:
{:parameterized, Ecto.Enum, %{...}}
Since Ecto v3.12 it is:
{:parameterized, {Ecto.Enum, %{...}}}
This has broken Ecto.Enum and Ecto.Embedded fields in live_admin.
The tests are green, but I'm not sure if I missed something.
Also, couldn't get dependencies agree without upgrading everything.