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

use Phoenix 1.6 style #1238

Conversation

Tuxified
Copy link
Contributor

@Tuxified Tuxified commented Nov 7, 2023

Phoenix 1.7 has deprecated Phoenix.View in favor
of Phoenix.Component and moved the get_flash
function out of controllers, making us call it
directly

This is an addendum to #1224

Phoenix 1.7 has deprecated Phoenix.View in favor
of Phoenix.Component and moved the get_flash
function out of controllers, making us call it
directly
@Tuxified Tuxified requested a review from a team November 7, 2023 12:55
Copy link

linux-foundation-easycla bot commented Nov 7, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@Tuxified
Copy link
Contributor Author

Tuxified commented Nov 8, 2023

@tsloughter thanks for approving. I don't know who's going to merge it, but I'm not authorised to do so ;)

@tsloughter
Copy link
Member

It may take some time bc of kubecon taking everyone's focus :)

Copy link
Contributor

@joshleecreates joshleecreates left a comment

Choose a reason for hiding this comment

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

I get these errors when trying to build this:

 => ERROR [featureflagservice builder 21/25] RUN mix assets.deploy                                                                           7.9s
------
 > [featureflagservice builder 21/25] RUN mix assets.deploy:
1.226
1.226 01:26:32.203 [debug] Downloading esbuild from https://registry.npmjs.org/esbuild-linux-64/0.14.29
2.005
2.005   ../priv/static/assets/app.js   103.1kb
2.005   ../priv/static/assets/app.css   11.3kb
2.005
2.005 ⚡ Done in 38ms
2.294 Compiling 22 files (.erl)
7.072 Compiling 17 files (.ex)
7.813 warning: undefined function live_flash/2 (expected FeatureflagserviceWeb.LayoutView to define such a function or for it to be imported, but none are available)
7.813   lib/featureflagservice_web/templates/layout/live.html.heex:24
7.813
7.826 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.826   lib/featureflagservice_web/templates/feature_flag/form.html.heex:17: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.826
7.827 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.827   lib/featureflagservice_web/templates/feature_flag/form.html.heex:24: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.827
7.827 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.827   lib/featureflagservice_web/templates/feature_flag/form.html.heex:25: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.827
7.827 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.827   lib/featureflagservice_web/templates/feature_flag/form.html.heex:26: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.827
7.828 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.828   lib/featureflagservice_web/templates/feature_flag/form.html.heex:28: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.828
7.828 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.828   lib/featureflagservice_web/templates/feature_flag/form.html.heex:29: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.828
7.828 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.828   lib/featureflagservice_web/templates/feature_flag/form.html.heex:30: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.828
7.829 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.829   lib/featureflagservice_web/templates/feature_flag/form.html.heex:33: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.829
7.829 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.829   lib/featureflagservice_web/templates/feature_flag/form.html.heex:34: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.829
7.829 warning: variable "f" does not exist and is being expanded to "f()", please use parentheses to remove the ambiguity or change the variable name
7.829   lib/featureflagservice_web/templates/feature_flag/form.html.heex:36: FeatureflagserviceWeb.FeatureFlagView."form.html"/1
7.829
7.833
7.833 == Compilation error in file lib/featureflagservice_web/views/layout_view.ex ==
7.833 ** (CompileError) lib/featureflagservice_web/templates/layout/live.html.heex:20: undefined function live_flash/2 (expected FeatureflagserviceWeb.LayoutView to define such a function or for it to be imported, but none are available)
7.833
------
failed to solve: process "/bin/sh -c mix assets.deploy" did not complete successfully: exit code: 1

Some things have changed in LV, these changes
should address that.

- some helpers have moved to Phoenix.Component (live_flash)
- some syntax changes let={f} vs :let={f}
- live_title_tag is now .live_title
@Tuxified
Copy link
Contributor Author

@joshleecreates thanks for noticing, I think those should be fixed in f2538d8

Copy link
Contributor

@joshleecreates joshleecreates left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@julianocosta89 julianocosta89 merged commit a958972 into open-telemetry:renovate/featureflagservice Nov 21, 2023
2 checks passed
austinlparker added a commit that referenced this pull request Nov 27, 2023
* chore(deps): update featureflagservice

* use Phoenix 1.6 style (#1238)

* use Phoenix 1.6 style

Phoenix 1.7 has deprecated Phoenix.View in favor
of Phoenix.Component and moved the get_flash
function out of controllers, making us call it
directly

* fix deprecated LV stuff

Some things have changed in LV, these changes
should address that.

- some helpers have moved to Phoenix.Component (live_flash)
- some syntax changes let={f} vs :let={f}
- live_title_tag is now .live_title

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Austin Parker <[email protected]>
Co-authored-by: Tonći Galić <[email protected]>
jmichalak9 pushed a commit to jmichalak9/opentelemetry-demo that referenced this pull request Mar 22, 2024
* chore(deps): update featureflagservice

* use Phoenix 1.6 style (open-telemetry#1238)

* use Phoenix 1.6 style

Phoenix 1.7 has deprecated Phoenix.View in favor
of Phoenix.Component and moved the get_flash
function out of controllers, making us call it
directly

* fix deprecated LV stuff

Some things have changed in LV, these changes
should address that.

- some helpers have moved to Phoenix.Component (live_flash)
- some syntax changes let={f} vs :let={f}
- live_title_tag is now .live_title

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Austin Parker <[email protected]>
Co-authored-by: Tonći Galić <[email protected]>
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.

5 participants