Skip to content

Allow Solidus v4#308

Merged
elia merged 10 commits into
v4from
elia/4-by-4
May 26, 2023
Merged

Allow Solidus v4#308
elia merged 10 commits into
v4from
elia/4-by-4

Conversation

@elia

@elia elia commented May 23, 2023

Copy link
Copy Markdown
Member

Summary

Ensure v4 works with Solidus 4 and prep for a new minor release to allow existing installations to upgrade to the latest solidus.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@elia elia self-assigned this May 24, 2023
@waiting-for-dev waiting-for-dev mentioned this pull request May 24, 2023
3 tasks
elia added 3 commits May 24, 2023 12:37
It's not available on new solidus versions.
Widen the number of ruby versions we test against.
@elia elia force-pushed the elia/4-by-4 branch 3 times, most recently from 998de7e to e7a22db Compare May 26, 2023 13:27
Make it compatible with all the supported Solidus versions.
@elia elia marked this pull request as ready for review May 26, 2023 13:57

@kennyadsl kennyadsl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @elia! I left a couple of questions before formal approval.

Comment thread .circleci/config.yml
name: solidusio_extensions/mysql
ruby_version: "3.1"
environment:
FRONTEND: "/home/circleci/project/spec/solidus_frontend_app_template.rb"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please better help me understand why this is needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, that's because up to Solidus v3.4 solidus_frontend was available as an option, and by just adding the gem to the gemfile we were able to trick the solidus installer into using it, having removed it in v4 we need a custom app template to install it. Rather than having different behaviors for v3 and v4 we just use the same recipe (which is fairly simple anyway).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got it. Sounds like something we will need to use for all extensions that were testing against the old frontend at some point.

Comment thread .circleci/config.yml
ruby_version: "3.2"
environment:
FRONTEND: "/home/circleci/project/spec/solidus_frontend_app_template.rb"
AUTHENTICATION: "devise"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did we use to test this extension with solidus_auth_devise?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, it is necessary for triggering saving a customer on stripe within some specs. I had to force it because solidus main wasn't picking it up anymore (probably related to solidus_frontend support being removed).

@elia elia requested a review from kennyadsl May 26, 2023 14:15

@rainerdema rainerdema left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👏

@elia elia merged commit 2ea7ec8 into v4 May 26, 2023
@elia elia deleted the elia/4-by-4 branch May 26, 2023 15:20
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.

3 participants