-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow Rails 7.2 #5843
Allow Rails 7.2 #5843
Conversation
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.
How should we handle the error we get with Ransack 4.2 and above? It doesn't look like there has been any movement on the PR to fix the issue.
That's a very good question. I need to read on the issue first in order to make an opinion. Since I use Ransack 4.2 with great success in several other apps and engines I am not sure why this is an issue in Solidus at all. |
I looked into the problem and I am sure I can replace the custom ransacker with normal ransack. PR upcoming maybe tomorrow |
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.
Nice, thanks for addressing the root cause ❤️
Should be fixed by #5853 |
6ac936c
to
a5637df
Compare
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.
Thanks Chris, I really need to come back to this some day. I can try to ping Denis if he is willing to release version of Canonical tags are rarely necessary nowadays and probably causing more problems to your SEO if not done right (and I have been bitten by this gem's wrong canonical tags it generates). Maybe I find some time to get rid of it in the starter frontend. |
@tvdeyen I completely agree with you on the unnecessary dependency on |
cd00f02
to
0294c66
Compare
Apologies for the delays on this. Getting it handled right now. Though I understand it might get dropped as a dep. No matter, releasing a patch bump is a good idea: https://rubygems.org/gems/canonical-rails/versions/0.2.16 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5843 +/- ##
==========================================
+ Coverage 89.31% 89.58% +0.27%
==========================================
Files 712 783 +71
Lines 16187 17989 +1802
==========================================
+ Hits 14457 16116 +1659
- Misses 1730 1873 +143 ☔ View full report in Codecov by Sentry. |
Thanks, Denis! No worries. |
@solidusio/core-team this is now ready for review. We still need a merge ofhttps://github.com/solidusio/solidus_starter_frontend/pull/374 that allows Rails 7.2 in order to make the solidus-installer tests pass in this branch. This is kind of a chicken egg situation. The PR in solidus_starter_frontend runs with this branch to make it's tests green and vice versa. I still think we should merge the solidus_starter_frontend PR first so we can revert back to main in the starter frontend app template and this change in the solidus-starter PR WDYT? |
I extracted the Ruby 3.1 bump into a separate PR for better visibility |
We need at least v3.7 of awesome_nested_set for Rails 7.2 support
Rails 7.2 removed migration_context from ActiveRecord::Base.connection
Without that ActiveRecord 7.2 expects a DB table for it.
This installs the master branch of canonical-rails. Necessary for Rails 7.2 compatibility.
We updated to Rails 7.2 and need to update the cache version.
Rails 8.0 removes the option to remove keyword arguments for defingin enums.
How has this ever worked this way?
This is a flaky test, so give Capybara it bit more time to find the button.
Summary
Allows to update host apps to Rails 7.2.
The only change is that we need to raise the minimum version of Ruby to 3.1, but since it is EOL anyway
it should not be a big deal for anyone.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: