-
-
Notifications
You must be signed in to change notification settings - Fork 6
Update to phoenix_live_dashboard 0.8 #73
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
base: main
Are you sure you want to change the base?
Conversation
|
Woah @moxley thanks for the contribution, this is awesome! Using the latest version of the dashboard is fine 👍🏻 I ran into some issues running profiler dev script though, can you try it out? First thing, add Phoenix.View to the dev environment in Mix {:phoenix_view, "~> 2.0", only: [:dev, :test], optional: true},Then, use the dev alias to start: mix dev...and visit http://localhost:4000/dashboard/_profiler |
|
Thanks @mcrumm! I will check out that reproduction path and create a solution for the issue. |
|
@mcrumm: I got the UI rendering correctly. However, I cannot figure out how to get the UI to respond when the user clicks on any of the navigation tabs, such as "Query Params", "Body Params", etc. I spent several hours troubleshooting. Meanwhile, management has asked me to remove PhoenixProfiler from our application. I no longer have enough incentive to continue working on this PR. I was going to try to get everything working anyway, but it was taking more time than I can budget for. So, I will leave this PR open for you to use however you'd like. Thank you. |
|
@moxley thanks for all the work you've done so far! I will take it from here :) |
After updating from
phoenix 1.7.3to1.7.6, we started seeing warnings appear in the output of our tests:Here's our relevant dependencies:
phoenix 1.7.6phoenix_live_dashboard 0.7.2phoenix_live_view 0.18.18phoenix_profiler 0.2.1Since
phoenix_live_view 0.18.18was apparently the culprit, I tried updating it to the latest version,0.19.3. Thenphoenix_live_dashboard 0.7.2wouldn't work with0.19.x, so I tried upgrading it to the latest, version0.8.0. Then,phoenix_profilerwouldn't work with that, because it only supports up to0.7.x. It uses a now-removed API withinphoenix_live_dashboard.Incidentally,
broadway_dashboardhas the samephoenix_live_dashboardAPI issue, and I opened a PR for that as well.This PR updates
phoenix_profilerto use the newphoenix_live_dashboardAPI, but it breaks your existing versioning requirements. Is it okay to make this a breaking change to older versions of the dependencies, and of Elixir?TODO
This PR has an unresolved
TODOitem that I'm happy to resolve, but I want to get guidance from you first on whether this PR is the right approach.