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 spree routing proxy in theme selection partial #5599

Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jan 16, 2024

Summary

When using the navigation from a gem that isolates its namespace in such a way that the default route helper is not spree, this partial fails to render with an undefined method error.

This can easily be fixes by prefixing the route helper with Solidus' routing proxy.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

When using the navigation from a gem that isolates its namespace in such
a way that the default route helper is not `spree`, this partial fails
to render with an undefined method error.

This can easily be fixes by prefixing the route helper with Solidus'
routing proxy.
@mamhoff mamhoff requested a review from a team as a code owner January 16, 2024 10:28
@github-actions github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label Jan 16, 2024
@mamhoff
Copy link
Contributor Author

mamhoff commented Jan 16, 2024

Please, add a backport to Solidus 4.3 for this one :)

@tvdeyen tvdeyen added the backport-v4.3 Backport this pull-request to v4.3 label Jan 16, 2024
@tvdeyen
Copy link
Member

tvdeyen commented Jan 16, 2024

Flaky spec will be fixed by #5601

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (be710f3) 88.58% compared to head (e2b1257) 88.58%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5599   +/-   ##
=======================================
  Coverage   88.58%   88.58%           
=======================================
  Files         685      685           
  Lines       16404    16404           
=======================================
  Hits        14531    14531           
  Misses       1873     1873           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit 69090d5 into solidusio:main Jan 18, 2024
16 checks passed
Copy link

💚 All backports created successfully

Status Branch Result
v4.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

mamhoff added a commit to mamhoff/solidus that referenced this pull request Jan 18, 2024
This is the same problem and solution as solidusio#5599, just for the theme
selection partial that is used when using the current admin (rather than
the new one).
mamhoff added a commit to mamhoff/solidus that referenced this pull request Jan 18, 2024
When using the navigation from a gem that isolates its namespace in
such a way that the default route helper is not spree, this partial
fails to render with an undefined method error.

This can easily be fixed by prefixing the route helper with Solidus' routing proxy.

This is the same problem and solution as solidusio#5599, just for the theme
selection partial that is used when using the current admin (rather than
the new one).
github-actions bot pushed a commit that referenced this pull request Jan 18, 2024
When using the navigation from a gem that isolates its namespace in
such a way that the default route helper is not spree, this partial
fails to render with an undefined method error.

This can easily be fixed by prefixing the route helper with Solidus' routing proxy.

This is the same problem and solution as #5599, just for the theme
selection partial that is used when using the current admin (rather than
the new one).

(cherry picked from commit f4c96a8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v4.3 Backport this pull-request to v4.3 changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants