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

Add Rails 6.1.0.alpha/master support #3515

Conversation

filippoliverani
Copy link
Contributor

@filippoliverani filippoliverani commented Feb 14, 2020

Description
This PR adds the ability to run Solidus with Rails master version.

It's useful to be able to start testing Solidus against Rails master to know what to expect and to reduce the time needed to upgrade after each Rails release.

There are also some Solidus new features that require work and that will be widely used only from Rails 6.1.0 on.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change (if needed)

@filippoliverani filippoliverani force-pushed the filippoliverani/add-rails-master-support branch from 65f1e58 to e448b4c Compare February 14, 2020 13:55
@filippoliverani filippoliverani marked this pull request as ready for review February 14, 2020 15:01
@filippoliverani filippoliverani force-pushed the filippoliverani/add-rails-master-support branch from e448b4c to 50007f7 Compare February 14, 2020 16:39
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

@filippoliverani thank you! 👍

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Left one comment on the patching approach. Let me know your thoughts.

core/lib/spree/awesome_nested_set_override.rb Show resolved Hide resolved
@filippoliverani filippoliverani force-pushed the filippoliverani/add-rails-master-support branch from 50007f7 to 3f4b5ea Compare February 24, 2020 14:23
@filippoliverani filippoliverani force-pushed the filippoliverani/add-rails-master-support branch from 3f4b5ea to 0ab4f3e Compare February 25, 2020 11:26
To avoid persistence and validation issues has_many associations
must be added after creation.
Add :polimorphic key option only when used to make it work with Rails 6.1+
osmaelo/rails@2c008d9
This can be removed when upgrading to an awesome_nested_set version
compliant with Rails 6.1+.
Since Rails 6.1 ActiveSupport::Testing::Assertions are not
auto-included by ActiveJob::TestHelper anymore.
@filippoliverani filippoliverani force-pushed the filippoliverani/add-rails-master-support branch from 0ab4f3e to f53a24c Compare February 26, 2020 13:09
@kennyadsl kennyadsl merged commit a9535d1 into solidusio:master Mar 6, 2020
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.

4 participants