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

Upgrade phoenix #19

Open
vraravam opened this issue Nov 20, 2018 · 8 comments
Open

Upgrade phoenix #19

vraravam opened this issue Nov 20, 2018 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@vraravam
Copy link

Current version is "~> 1.3.3" - so, i'm unable to test this package with a phoenix 1.4 codebase. Also, (though not my specific usecase, but might be beneficial for someone else), it might be good to support umbrella app structure?

@Preen Preen added the enhancement New feature or request label Nov 20, 2018
@Preen
Copy link
Contributor

Preen commented Nov 20, 2018

We are using it today within a umbrella structure! @mileandra can you provide @vraravam with info on how we are doing that. Also we should definitely start with development of supporting 1.4.

@vraravam
Copy link
Author

As with code_demo for ex_admin - maybe it would be a good idea (for adoption this library) to provide an example/reference codebase?

@Preen
Copy link
Contributor

Preen commented Nov 20, 2018

yes definetaly. We'll provide you with that asap.

@vraravam
Copy link
Author

If it works with both 1.3.3 and 1.4.0, then specifying the compatible versions with
~>1.3, <= 1.4.0 might solve my immediate problem?

@mileandra
Copy link
Member

I created a hotfix for this that loosens up the dependency restrictions on phoenix and also allows for phoenix 1.4.
We will definitely add more examples and also an example repository.

@vraravam for the umbrella we just added the dependency in the admin application. Then in router.ex:

use Alkemist.Router
scope "/", Admin do
    pipe_through [:browser, :authenticate_user] #authenticate_user is a custom plug to ensure logged in user
    alkemist_resources("/my_resource", MyResourceController)
end

and in config.exs:

config :alkemist, Alkemist,
  repo: Db.Repo, #Repo is in different umbrella app
  router_helpers: Admin.Router.Helpers

@vraravam
Copy link
Author

I'm trying out playing around with this package on this repo: git@gitlab.com:avijayr/phoenix14_starter.git
If I use the latest hotfix version, I still get errors with ecto which is at v3. (ex_machine as another example in the same repo can work with ~> 2.2 or ~> 3.0. Could you please relax that as well?

@mileandra
Copy link
Member

Unfortunately ecto 3.0 is right now not supported by the dependency turbo_ecto at this point. So I fear for now you will probably have to work with override: true in your project until we were able to test this accordingly.

@JohnKacz
Copy link

Looks like turbo_ecto was just updated yesterday? zven21/turbo_ecto@bc21c9e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants