-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Upgrade phoenix & liveview #5766
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
Conversation
| true <- html?(response), | ||
| {:ok, html} <- Floki.parse_document(body), | ||
| [_ | _] <- Floki.find(html, ~s|meta[name="#{@prefix}"][content="#{domain_identifier}"]|) do | ||
| html <- LazyHTML.from_document(body), |
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.
This passes tests. It's the only production code where I've migrated from Floki -> LazyHTML in this PR.
|
I've completely refactored our @RobertJoonas @apata once we're on scriptV2, can we remove the old checks that use Floki? In that case I would wait for next week to completely remove Floki. If we still need HTML parsing in Elixir, I will refactor over to LazyHTML in this PR. Do we need these backend checks going forward? |
@ukutaht yes, all the
|
|
OK good, then I won't put any effort into refactoring those |
|
* Upgrade phoenix and phoenix_live_view * Use new phoenix controller options * Run mix format * Upgrade lazy_html and bcrypt * Always put root layout * Remove deprecated use Plug.Test * Escpaing updates for LazyHTML * Fix double layouts in site settings * Fix more escaping in tests * More LazyHTML updates * Fix remaining LazyHTML issues * More Floki -> LazyHTML conversions * More Floki -> LazyHTML conversions * Fix another issue with Floki -> LazyHTML * Fix another lazyHTML issue * Remove parsing from tree * Fix HTML escaping in teams_test * More test fixes * More test fixes * Add layout to browser_sso_notice pipeline * Extract elem_count helper
Changes
Upgrades to Phoenix 1.18 and Liveview 1.1.
Some changes are due to new
mix formatrules coming from updated deps.bcyrptwas also updated due toelixir_makedependency for NIFs. Needed in order to bring in the requiredlazy_htmlfor the new liveview version.phoenix_storybookupdated to 0.9.0. Even though we want some sort of styleguide, I'm considering removing this dependency in the future and hand-rolling a replacement or something, IDK. It's not easy to work with it.TODO:
:browser_sso_noticepipeline requires put_root_layoutFuture possibilities: