Skip to content

Move factories to their new location when updating extensions#173

Closed
kennyadsl wants to merge 1 commit intomasterfrom
kennyadsl/move-factories-when-updating
Closed

Move factories to their new location when updating extensions#173
kennyadsl wants to merge 1 commit intomasterfrom
kennyadsl/move-factories-when-updating

Conversation

@kennyadsl
Copy link
Copy Markdown
Member

Summary

Factories should be placed into a specific folder to be correctly loaded by the SolidusDevSupport::TestingSupport::Factories.load_for() method. Although it works even with the legacy path (emitting a deprecation warning), this automated step could help us migrating extensions with time.

This PR is a draft because there are some issues testing the code, I will revisit this later, hopefully with someone that has more experience with these specs.

Checklist

  • I have structured the commits for clarity and conciseness.
  • I have added relevant automated tests for this change.

@kennyadsl kennyadsl self-assigned this Feb 22, 2021
@mergify mergify Bot added the needs changelog label Needs a label to determine the type of change. label Feb 22, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Feb 22, 2021

It looks like this PR is missing a label to determine the type of change it introduces. The maintainer should add one of the following labels:

  • bug for bugfixes.
  • enhancement for new features and improvements.
  • documentation for documentation changes.
  • security for security patches.
  • removed for feature removals.
  • infrastructure for internal changes that should not go in the changelog.

Additionally, the maintainer may also want to add one of the following:

  • breaking for breaking changes.
  • deprecated for feature deprecations.

Once the correct labels have been set, simply remove the needs changelog label label from this PR so I can merge it.

sh('solidus extension .')

expect(lib.join("testing_support/factories.rb")).to exist
expect(lib.join("testing_support/factories")).to exist
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.

@elia this expectation is failing, I'm not sure how to debug this properly. When you have some time, can you please help me?

@kennyadsl kennyadsl added enhancement Improves an existing feature. and removed needs changelog label Needs a label to determine the type of change. labels Feb 22, 2021
@kennyadsl kennyadsl force-pushed the kennyadsl/move-factories-when-updating branch from 03b4fe8 to 3e0e246 Compare February 22, 2021 11:55
@kennyadsl kennyadsl changed the title Move factories to new location when updating extensions Move factories to their new location when updating extensions Feb 22, 2021
@kennyadsl kennyadsl force-pushed the kennyadsl/move-factories-when-updating branch from 3e0e246 to 7e294c7 Compare February 22, 2021 14:08
@stale
Copy link
Copy Markdown

stale Bot commented Nov 14, 2022

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale Bot added the Stale label Nov 14, 2022
@stale
Copy link
Copy Markdown

stale Bot commented Nov 21, 2022

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

@stale stale Bot closed this Nov 21, 2022
jarednorman pushed a commit to SuperGoodSoft/solidus_dev_support that referenced this pull request Feb 4, 2026
…subscribable-variants-bug

Fix legacy unsubscribable subscriptions not being processed
forkata pushed a commit to SuperGoodSoft/solidus_dev_support that referenced this pull request Mar 12, 2026
make gem work with solidus_support >0.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves an existing feature. Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant