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

Theme selection for Solidus Admin: Use spree routing proxy #5604

Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jan 18, 2024

Summary

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).

Checklist

@mamhoff mamhoff requested a review from a team as a code owner January 18, 2024 15:50
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 github-actions bot added the changelog:solidus_backend Changes to the solidus_backend gem label Jan 18, 2024
@mamhoff mamhoff force-pushed the theme-selection-solidus-admin-routing-proxy branch from a980a08 to f4c96a8 Compare January 18, 2024 15:50
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Why are we keep forgetting those things? 🤔

@kennyadsl
Copy link
Member

@elia I remember we discussed this at some point. Do you remember why we decided to keep it as is?

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (69090d5) 88.57% compared to head (f4c96a8) 88.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5604   +/-   ##
=======================================
  Coverage   88.57%   88.57%           
=======================================
  Files         685      685           
  Lines       16405    16405           
=======================================
  Hits        14531    14531           
  Misses       1874     1874           

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

@elia
Copy link
Member

elia commented Jan 18, 2024

Why are we keep forgetting those things? 🤔

I guess that's because that code will run in different contexts, and only for some it will be a problem 😞

@elia I remember we discussed this at some point. Do you remember why we decided to keep it as is?

I don't remember if we did, I might have a git stash somewhere with exactly this change that got lost hopping between branches and PRs

@elia elia added the backport-v4.3 Backport this pull-request to v4.3 label Jan 18, 2024
@elia elia merged commit 07ca9b2 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

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.

5 participants