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

[pull] main from solidusio:main #411

Open
wants to merge 979 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
979 commits
Select commit Hold shift + click to select a range
b291164
Add Legacy Promotions to Rakefile
mamhoff Jun 24, 2024
33b1693
Integration spec: Be more explicit about spec setup
mamhoff Jun 24, 2024
cc011bf
Add TestingSupport::FactoryBot
mamhoff Jun 25, 2024
4b9b980
Drop solidus_dev_support dependency
mamhoff Jun 25, 2024
fb8ddba
Rollup migrations and change table name prefix
mamhoff Jun 26, 2024
82d9583
Rubocop -a
mamhoff Jun 26, 2024
e46661f
Friendly Promotions: Convert attribute accessor to preference
mamhoff Jun 26, 2024
991ead8
Rename solidus_friendly_promotions to solidus_promotions
mamhoff Jun 26, 2024
314fffb
Prefix associations and factories with solidus_ instead of friendly_
mamhoff Jun 26, 2024
7dfec07
Lint ERB
mamhoff Jun 26, 2024
3de5c94
Add eslintrc.json for solidus_promotions
mamhoff Jun 26, 2024
c59f5b7
Adapt gemspec to new home
mamhoff Jun 26, 2024
b7b178c
Remove SolidusPromotions::TestingSupport module
mamhoff Jun 27, 2024
43a9d07
Spec coverage: Test #level
mamhoff Jun 27, 2024
029ca96
Move line item comparison hook config to engine
mamhoff Jun 27, 2024
65c6242
Remove unused private method
mamhoff Jun 27, 2024
c8c8542
Test inactive promotion rendering
mamhoff Jun 27, 2024
d0e4b41
Move menu code from initializer template to Engine
mamhoff Jun 27, 2024
071040b
Test Configuration.configure
mamhoff Jun 27, 2024
6d60035
Spec coverage for TieredPercentOnEligibleItemQuantity calc
mamhoff Jun 27, 2024
f489083
Spec Coverage: DiscountedItemTotal#to_partial_path
mamhoff Jun 27, 2024
93e8c4a
Spec coverage: Simplify ItemTotal#ineligible_message
mamhoff Jun 27, 2024
ababd82
Spec coverage: Comment out all lines in initializer
mamhoff Jun 27, 2024
42d8bd6
Product/LineItemProduct: Test product_ids_string getter and setter
mamhoff Jun 27, 2024
e7a5f9d
Test updateable conditions
mamhoff Jun 27, 2024
22fe73d
Test #preload_relations on all conditions and benefits
mamhoff Jun 27, 2024
a12bdf6
Rename PermissionSet from Friendly to Solidus
mamhoff Jun 27, 2024
bd1a355
Test promotion codes admin
mamhoff Jun 27, 2024
0229961
Rename route scope to solidus
mamhoff Jun 27, 2024
088690a
Rename spec descriptions to solidus
mamhoff Jun 27, 2024
4db86f7
Rename factory files
mamhoff Jun 27, 2024
1ca6fb2
Rename FriendlyPromotionAdjuster to OrderAdjuster
mamhoff Jun 27, 2024
e0d10ae
Fix promotions table filter
mamhoff Jun 28, 2024
996c4e2
Remove duplicate methods from BaseController
mamhoff Aug 9, 2024
06312f2
Remove importmap binstub
mamhoff Aug 9, 2024
7555730
Remove Null Promotion Handler
mamhoff Aug 9, 2024
3d89ee3
Adapt README file
mamhoff Aug 9, 2024
44a3a4d
Add comment to remove order recalculator decorator
mamhoff Aug 9, 2024
dd6df37
Remove version.rb file
mamhoff Aug 9, 2024
f2bfd06
Namespace JS under `backend`
mamhoff Aug 9, 2024
eb90119
LineItemApplicableOrderCondition to LineItemApplicableOrderLevelCondi…
mamhoff Aug 9, 2024
0212f9b
Improve error messaging for unimplemented methods on Benefit
mamhoff Aug 9, 2024
326f117
Improve documentation and install generator
mamhoff Aug 9, 2024
cab3b5e
Add documentation to promotion map
mamhoff Aug 9, 2024
0136666
Lint
mamhoff Aug 9, 2024
675eac0
Improve performance of Promo Code Batch Builder
mamhoff Aug 26, 2024
471db28
Lint promotino map
mamhoff Aug 26, 2024
4c75a16
Fix documentation in persist_discounted_order.rb
mamhoff Oct 24, 2024
98c7d4f
Build solidus_promotions on CI
mamhoff Oct 25, 2024
bf743d2
Fix linting issues
mamhoff Oct 25, 2024
9f24cce
Add new users admin store credits page
MadelineCollier Oct 25, 2024
b36be11
Merge pull request #5805 from mamhoff/import-solidus-friendly-promotions
kennyadsl Oct 26, 2024
94ebd90
Bump Solidus installer CI step to Ruby 3.1
nvandoorn Oct 23, 2024
cb8ef4e
Do not use solidus_frontend to test extension test app generator
tvdeyen Oct 29, 2024
99319d7
Merge pull request #5884 from nvandoorn/bump-solidus-installer-ruby-v…
tvdeyen Oct 29, 2024
0edec31
Merge pull request #5888 from tvdeyen/remove-solidus_frontend-extensi…
tvdeyen Oct 29, 2024
96505a8
Merge pull request #5887 from MadelineCollier/admin-user-store-credit…
MadelineCollier Oct 29, 2024
b2ed4fa
Render variant shipping category
nvandoorn Oct 23, 2024
7d87b79
CI: Bump solidus-installer cache version
tvdeyen Oct 30, 2024
5a9dc62
Merge pull request #5890 from tvdeyen/bust-solidus-installer-cache
tvdeyen Oct 30, 2024
ecb9360
Require at least Ruby 3.1
tvdeyen Aug 29, 2024
1595c52
Fix testing locally
tvdeyen Aug 29, 2024
273e5bd
Rubocop: Autocorrect
tvdeyen Sep 12, 2024
c636624
Autocorrect circle/config.yml with prettier
tvdeyen Sep 12, 2024
1388cbb
Dismiss toast component later in test env
tvdeyen Oct 18, 2024
52b610f
Test: Wait a little longer to find delete product button
tvdeyen Oct 30, 2024
a9c88c9
Add autocorrect commits to blame ignore file
tvdeyen Oct 30, 2024
7e432d8
Add blank host to remixicon.symbol.svg asset path
stewart Aug 21, 2024
9b3ac21
Merge pull request #5878 from stewart/remove-remixicon-from-asset-pip…
MadelineCollier Oct 30, 2024
b099358
Merge pull request #5882 from nvandoorn/5675-show-variant-shipping-ca…
MadelineCollier Oct 30, 2024
f4c1cee
Merge pull request #5891 from tvdeyen/ruby-3.1
tvdeyen Oct 31, 2024
83f76a4
Allow Rails 7.2
tvdeyen Aug 29, 2024
36db12a
Fix pending migration check for Rails 7.2
tvdeyen Aug 29, 2024
977ac53
Mark Dummy App's ApplicationRecord as abstract class
tvdeyen Sep 12, 2024
a6e3a0a
Add Rails 7.2 to circle ci test matrix
tvdeyen Sep 12, 2024
bf1de64
Use rails-7.2 branch of solidus_starter_frontend
tvdeyen Oct 18, 2024
aab4eea
CI: Bump solidus-installer cache key
tvdeyen Oct 30, 2024
f761108
Use positional arguments for defining enums
tvdeyen Oct 30, 2024
b4c03f2
Fix enum definition in TaxRate.rb
tvdeyen Oct 30, 2024
e0b78d0
Test: Give "Receive" button more time to render
tvdeyen Oct 30, 2024
78e5f28
Merge pull request #5843 from tvdeyen/rails-7.2
tvdeyen Nov 1, 2024
80dcf59
Deprecate and remove dashboard code
lauriejefferson Oct 23, 2023
58b6d35
Legacy Promotions: Move ransackable promo associations from core
mamhoff Oct 31, 2024
d955ca4
Merge pull request #5883 from nvandoorn/4860-deprecate-and-remove-das…
tvdeyen Nov 4, 2024
b1849a5
Merge pull request #5893 from mamhoff/legacy-promotions-ransackable-a…
tvdeyen Nov 4, 2024
ba51ba1
Improve solidus_promotions/MIGRATING.md
mamhoff Nov 4, 2024
439904c
Merge pull request #5895 from mamhoff/improve-promotion-migration-doc
tvdeyen Nov 4, 2024
fe2eb38
Update return_reasons.rb
fthobe Nov 7, 2024
f16b59d
Merge pull request #5901 from fthobe/main
tvdeyen Nov 8, 2024
245816f
Include solidus_promotions in release tasks
mamhoff Nov 12, 2024
a89b955
Merge pull request #5911 from mamhoff/release-solidus-promotions-too
tvdeyen Nov 12, 2024
52a57a5
Prepare release for Solidus v4.4.0
tvdeyen Nov 12, 2024
dd4dbc3
Merge pull request #5910 from solidusio/github-actions/11794807580-1-…
tvdeyen Nov 12, 2024
7f77d39
Fix release task
tvdeyen Nov 12, 2024
7f53e37
Post-release chores after having released Solidus v4.4.0
tvdeyen Nov 12, 2024
b1a3796
Merge pull request #5912 from solidusio/github-actions/11795945831-1-…
tvdeyen Nov 12, 2024
d339e84
Move Line Item Actions to solidus_legacy_promotions
mamhoff Nov 13, 2024
dde8966
Remove rails binstub from built gems
tvdeyen Nov 14, 2024
79b0511
Merge pull request #5916 from mamhoff/move-line-item-actions-to-legac…
tvdeyen Nov 14, 2024
8ff6267
Merge pull request #5917 from tvdeyen/remove-rails-bin-from-gems
tvdeyen Nov 14, 2024
6a7d839
Backend Menu: Fix "Promotions" items
tvdeyen Nov 14, 2024
8710da9
Fix file location of spree/line_item_action.rb
mamhoff Nov 14, 2024
fbef614
Merge pull request #5921 from mamhoff/fix-solidus_promotions-menu_item
tvdeyen Nov 14, 2024
e6e0243
Merge pull request #5923 from mamhoff/fix-line-item-action-namespace
tvdeyen Nov 14, 2024
46e8250
Fix component translation scopes
mamhoff Nov 15, 2024
900cb78
Merge pull request #5927 from mamhoff/fix-component-translation-scope
tvdeyen Nov 15, 2024
f4d24f2
Only set promo configuration to legacy if no other set
mamhoff Nov 15, 2024
4acd230
chore(github labeler): Add labels for new promotion gems
tvdeyen Nov 15, 2024
8a060c1
Merge pull request #5928 from mamhoff/only-set-legacy-promo-config-if…
tvdeyen Nov 15, 2024
21bb837
Use new global variables stylesheet in legacy promotions
mamhoff Nov 15, 2024
c1e4f12
Feat(Admin): Dynamic routing proxies
mamhoff Nov 15, 2024
0ab2779
Merge pull request #5932 from mamhoff/better-promo-admin-colors
kennyadsl Nov 16, 2024
5b2e560
Merge pull request #5931 from tvdeyen/fix-labeler
tvdeyen Nov 17, 2024
2632096
Merge pull request #5933 from mamhoff/dynamic-routing-proxies
tvdeyen Nov 18, 2024
6d75515
Fix(Admin menus): Stable promotion menu items
mamhoff Nov 15, 2024
0a69b6a
Feat(SolidusPromotions): Allow viewing both promotion systems
mamhoff Nov 15, 2024
825fb6d
Merge pull request #5934 from mamhoff/better-promotion-menus
tvdeyen Nov 18, 2024
6c8e842
Include solidus_legacy_promotions in release task
mamhoff Nov 19, 2024
c2ba46a
Add `#authorization_subject` to Promotions controllers
mamhoff Nov 19, 2024
acea185
Merge pull request #5941 from mamhoff/release-legacy-promotions-too
tvdeyen Nov 19, 2024
2eccd6d
Fix admin promotions controller
mamhoff Nov 19, 2024
e3b326a
Merge pull request #5943 from mamhoff/fix-admin-promotions-controller
tvdeyen Nov 19, 2024
104f813
Release solidus_admin/v0.3.2
tvdeyen Nov 19, 2024
d0e62d9
Allow PORT to be specified when using `bin/dev`
forkata Nov 14, 2024
c560453
Merge pull request #5949 from SuperGoodSoft/chore/allow-port-override…
tvdeyen Nov 21, 2024
2cb9ac1
Add inverse_of to Promotion#codes association
adammathys Nov 27, 2024
6ea8b43
Fix model class for new PromotionCodesController
adammathys Nov 27, 2024
6d44a13
Fix spacing at top of OrderShipping#ship method
adammathys Nov 27, 2024
68c4b1a
Merge pull request #5954 from SuperGoodSoft/fix/new-rubocop-rules
tvdeyen Nov 30, 2024
9a74fda
Legacy Promotions: Remove unneeded decorator
mamhoff Nov 30, 2024
b388c0a
Merge pull request #5955 from mamhoff/remove-unnecessary-decorator
tvdeyen Nov 30, 2024
520efc0
Test app task: Allow passing in user class
mamhoff Dec 1, 2024
9013f71
Merge pull request #5956 from mamhoff/allow-passing-in-user-class
kennyadsl Dec 2, 2024
e306a14
Chore(Legacy Promotions): Rename decorators
mamhoff Nov 20, 2024
506ddfc
Backend: Add missing error translation
mamhoff Dec 2, 2024
42d65fd
Fix(promotions): Validate benefits on save
mamhoff Dec 3, 2024
1329331
Merge pull request #5979 from mamhoff/fix-missing-translation-spec
tvdeyen Dec 3, 2024
b41952f
Add show all results to en.yml
fthobe Dec 3, 2024
ca48c2d
Merge pull request #5988 from gms-electronics/Fix-missing-translations
kennyadsl Dec 3, 2024
fb99b20
Merge pull request #5953 from SuperGoodSoft/fix/new-promotions-admin
tvdeyen Dec 3, 2024
ad84609
Merge pull request #5946 from mamhoff/correct-decorator-naming
tvdeyen Dec 3, 2024
c67f75f
test: Wait for modal to open before testing its content
tvdeyen Dec 3, 2024
7112488
test: Do not wait 30 seconds for a test to fail
tvdeyen Dec 3, 2024
27c64c7
Merge pull request #5993 from tvdeyen/harden-admin-feature-specs
tvdeyen Dec 3, 2024
d98ec79
Add status code to benefits controller action
mamhoff Dec 3, 2024
93abf41
Use Order#email to show the order's email in new admin
softr8 Jan 15, 2024
f7a1391
Merge pull request #5981 from mamhoff/tiered-percent-fix
tvdeyen Dec 3, 2024
f9c577e
Fix(Promotions): Return 200 on benefits#edit
mamhoff Dec 4, 2024
a25a62a
Wait for modal before testing its content
MadelineCollier Dec 4, 2024
e2f5282
Merge pull request #5997 from mamhoff/fix-processable-entity
tvdeyen Dec 4, 2024
81c605c
Merge pull request #5998 from MadelineCollier/fix/flaky-modal-specs
MadelineCollier Dec 4, 2024
07a2d3a
Move store_credits actions to their own controller
MadelineCollier Dec 2, 2024
bfa3739
Clarify store_credit invalidated styles
MadelineCollier Dec 2, 2024
97919a8
Add new admin store_credits show page
MadelineCollier Dec 2, 2024
355ba7a
Do not constantize Spree.user_class in UserClassHandle
mamhoff Dec 4, 2024
082d3b8
Merge pull request #5999 from mamhoff/easier-user-class-handle
tvdeyen Dec 4, 2024
3510b9b
Allow to set Rails deprecations behavior during tests
tvdeyen Dec 4, 2024
4e7fe98
Merge pull request #5596 from softr8/backend_order_email
tvdeyen Dec 4, 2024
603714a
Introducing product brand using taxon_brand_selector
shahmayur001 Dec 3, 2024
18fba3e
Merge pull request #6000 from tvdeyen/allow-raise-deprecations
tvdeyen Dec 5, 2024
a30d802
tests: Give dialogs a little more time to open
tvdeyen Dec 5, 2024
01325f4
Add product properties create/edit flow to admin
MadelineCollier Dec 5, 2024
d0ccd7e
Merge pull request #6010 from tvdeyen/dialog-more-wait-time
tvdeyen Dec 5, 2024
6f93b21
Add pending integration spec for orders adjustments page
mamhoff Dec 5, 2024
d7bb895
Feat(promotions): Add PromotionHandler::Coupon#can_apply?
mamhoff Dec 5, 2024
a2e034e
Feat(Promotions): Implement SolidusPromotions#order_activatable?
mamhoff Dec 5, 2024
3588c15
Feat(Promotions): Use order_activatable in OrderAdjuster
mamhoff Dec 5, 2024
dcb0dd8
Merge pull request #6013 from mamhoff/add-can-apply-to-promotions
tvdeyen Dec 5, 2024
9baceeb
Fix backporting of PRs with backport label first
tvdeyen Dec 6, 2024
b773f5e
Merge pull request #5978 from MadelineCollier/admin-user-store-credit…
MadelineCollier Dec 6, 2024
b8cbea2
Merge pull request #6011 from MadelineCollier/admin-product-propertie…
MadelineCollier Dec 6, 2024
8d6f016
tests: Give even more dialogs more time to open in tests
tvdeyen Dec 6, 2024
381bc87
Merge pull request #6016 from solidusio/fix-backport-workflow
tvdeyen Dec 6, 2024
b0bf8f4
Merge pull request #6017 from tvdeyen/give-more-dialogs-more-time-to-…
tvdeyen Dec 6, 2024
2d5bda7
Merge pull request #5989 from gms-electronics/add_brand_to_product_fr…
kennyadsl Dec 7, 2024
2746d68
Fix(promotions): Add legacy_promotions to promotions Gemfile
mamhoff Dec 10, 2024
8849ae3
Chore(Gemfile): Group duplicate entries
mamhoff Dec 10, 2024
6aa6b22
Merge pull request #6030 from mamhoff/add-solidus-legacy-promotions-t…
kennyadsl Dec 10, 2024
bbc5904
Allow select component to accept non-object fields
MadelineCollier Dec 11, 2024
2eefd30
Add new admin store_credits edit_amount flow
MadelineCollier Dec 11, 2024
dd5bbc4
Merge pull request #6031 from MadelineCollier/admin-user-store-credit…
MadelineCollier Dec 12, 2024
53741da
Separate store credit cases from user feature spec
MadelineCollier Dec 12, 2024
9639966
Add new admin store credits edit_memo flow
MadelineCollier Dec 12, 2024
72d357a
Appease Codecov with additional request spec case
MadelineCollier Dec 12, 2024
596adae
Merge pull request #6033 from MadelineCollier/admin-user-store-credit…
MadelineCollier Dec 13, 2024
c734f99
Add new admin store credits invalidate flow
MadelineCollier Dec 13, 2024
77f8302
Merge pull request #6034 from MadelineCollier/admin-user-store-credit…
MadelineCollier Dec 16, 2024
4afd217
Use at least solidus_support 0.12.0
tvdeyen Dec 17, 2024
fc51732
test: Check for field before filling it.
tvdeyen Dec 17, 2024
811f14d
Merge pull request #6037 from tvdeyen/solidus_support-revert_flickwerk
tvdeyen Dec 18, 2024
370af7f
Extract shared controller logic into before_action
MadelineCollier Dec 17, 2024
62fb7bb
Remove redundant return
MadelineCollier Dec 17, 2024
9c5283a
Fix soon-to-be bug with store_credit invalidate
MadelineCollier Dec 17, 2024
e8593a8
Make `ensure` methods re-usable across actions
MadelineCollier Dec 17, 2024
0517f29
Add new admin store credits create flow
MadelineCollier Dec 17, 2024
89730ee
Merge pull request #6036 from MadelineCollier/admin-user-store-credit…
MadelineCollier Dec 18, 2024
a70fcf9
chore(admin): Add prettier config
tvdeyen Dec 19, 2024
4f79ff7
chore(Admin): Run prettier on js files
tvdeyen Dec 19, 2024
9234436
Merge pull request #6043 from tvdeyen/prettier-config
tvdeyen Dec 20, 2024
e0da385
Pin view_component to < 3.21.0
tvdeyen Dec 20, 2024
9aa24a5
Merge pull request #6048 from solidusio/lock-view_component
tvdeyen Jan 3, 2025
f517599
[Admin] Use Rails.application.mounted_helpers in base component
mamhoff Dec 18, 2024
c73de73
Do not call routing helpers before render
mamhoff Dec 20, 2024
228ca12
[SolidusAdmin] Fix mock_component helper
mamhoff Jan 3, 2025
7bd0860
Revert "Merge pull request #6048 from solidusio/lock-view_component"
mamhoff Jan 3, 2025
fc5ce71
Merge pull request #6055 from mamhoff/fix-unsafe-html-view-component
tvdeyen Jan 6, 2025
85a0a25
Merge pull request #6039 from mamhoff/use-mounted-helpers
tvdeyen Jan 7, 2025
7b64443
Make state machine modules auto-loadable
mamhoff Jan 6, 2025
faead11
Fix Rubocop offense in order state machine
mamhoff Jan 6, 2025
bb4e024
Merge pull request #6056 from mamhoff/state-machine-config-autoloadable
tvdeyen Jan 9, 2025
a200168
Make Spree::Money autoloadable
tvdeyen Dec 18, 2024
95c39b2
chore(spree/money): Fix rubocop style errors
tvdeyen Jan 9, 2025
b841e8a
Merge pull request #6040 from tvdeyen/autoload-spree-money
tvdeyen Jan 9, 2025
00465da
Delegate tax_category_id with override as with tax_category
harmonymjb Nov 21, 2024
ee85857
Delegate tax_category to variant with override in line_item
harmonymjb Nov 21, 2024
931929e
Set tax_category on the variant rather than the line_item in factory
harmonymjb Nov 21, 2024
cf55b93
Update line_item spec to create a target_shipment for destroy test
harmonymjb Nov 21, 2024
ebf5529
Utilize variant tax category when calculating taxes if possible
harmonymjb Dec 3, 2024
f6660e2
Update line_item’s tax_category_id to match variant when adjusting
harmonymjb Dec 3, 2024
650dd05
Merge pull request #6059 from SuperGoodSoft/tax-categories-on-line-it…
tvdeyen Jan 15, 2025
25b3400
Replace unauthorized_redirect lambda with configurable class
mamhoff Dec 21, 2024
1c28e3f
Add Configuration option for backend unauthorized redirect handler
mamhoff Dec 21, 2024
fcef2f4
App template: Do not suggest setting `unauthorized_redirect`
mamhoff Dec 21, 2024
8daded5
Admin: Use configured unauthorized redirect handler
mamhoff Dec 21, 2024
68033cd
Merge pull request #6051 from mamhoff/unauthorized-redirect-handling-…
tvdeyen Jan 15, 2025
c3dd885
Lint: Fix Money spec
mamhoff Jan 15, 2025
332ed17
Merge pull request #6068 from mamhoff/fix-lint-problem
tvdeyen Jan 15, 2025
7275966
CI: Lint code on GH actions
tvdeyen Jan 9, 2025
3675af2
Merge pull request #6064 from tvdeyen/lint-on-gh
tvdeyen Jan 15, 2025
2bcf076
Fix preferences serialization compatibility with Rails version check
swamp09 Jan 20, 2025
06a1148
Merge pull request #6083 from swamp09/fix_preferences_seralize_rails_…
kennyadsl Jan 21, 2025
d6e18a6
fix(admin/table): Only add rowClicked action if rowUrl is present
tvdeyen Dec 19, 2024
24f62bc
[Admin] Skip layout for turbo frame requests
tvdeyen Dec 20, 2024
5f49215
[Admin] Disable Turbo Caching and Prefetching
tvdeyen Dec 23, 2024
8e12a12
Add Solidus Admin Resources
tvdeyen Dec 23, 2024
ae58d00
Target the top frame on resource edit and create frames
tvdeyen Jan 10, 2025
fd4f87a
Admin adjustment reasons with turbo-frame link and turbo template
chaimann Dec 19, 2024
017e91c
Admin shipping categories: Load modal with turbo frame
tvdeyen Dec 20, 2024
6632fa8
Admin store credit reasons: Load modal with turbo frame
tvdeyen Dec 20, 2024
f9138e0
Admin return reasons: Load modal with turbo frame
tvdeyen Dec 20, 2024
83f637e
Admin refund reasons: Load modal with turbo frame
tvdeyen Dec 20, 2024
7f1a3e4
Admin tax categories: Load modal with turbo frame
tvdeyen Dec 20, 2024
a55c909
Admin user roles: Load modal with turbo frame
tvdeyen Dec 20, 2024
52b19e9
Add user store credit: Load modal with turbo frame
tvdeyen Dec 20, 2024
18b7af5
Admin stock items: Load modal with turbo frame
tvdeyen Dec 20, 2024
ec72503
Admin product properties: Load modal with turbo frame
tvdeyen Jan 22, 2025
c976eac
Merge pull request #6046 from tvdeyen/open-modal-content-remotely
tvdeyen Jan 23, 2025
6c3f789
Make Controller Helpers autoloadable
mamhoff Jan 9, 2025
0ef2e29
Controller Helpers: Lint fixes
mamhoff Jan 9, 2025
b1b8567
Merge pull request #6062 from mamhoff/autoloadable-controller-helpers
tvdeyen Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
117 changes: 65 additions & 52 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ executors:
parameters: &parameters
ruby:
type: string
default: "3.0"
default: "3.1"
working_directory: &workdir ~/solidus
environment: &environment
DEFAULT_MAX_WAIT_TIME: 10
Expand Down Expand Up @@ -59,9 +59,7 @@ commands:
setup:
steps:
- checkout
- browser-tools/install-chrome:
chrome-version: "118.0.5993.70"
replace-existing: true
- browser-tools/install-chrome
- run:
name: Check chrome version
command: |
Expand Down Expand Up @@ -120,6 +118,9 @@ commands:
- run:
name: "Run Legacy Promotion Tests"
command: ./bin/build-ci legacy_promotions
- run:
name: "Run Friendly Promotion Tests"
command: ./bin/build-ci promotions

- store_artifacts:
path: /tmp/test-artifacts
Expand Down Expand Up @@ -159,23 +160,23 @@ commands:
ruby -v >> /tmp/.ruby-versions
gem --version >> /tmp/.gems-versions
bundle --version >> /tmp/.gems-versions
gem search -eq rails -v "~> 7" -v "< 7.2" >> /tmp/.gems-versions # get the latest rails from rubygems
gem search -eq rails -v "~> 7" -v "< 8.0" >> /tmp/.gems-versions # get the latest rails from rubygems
gem search -eq solidus >> /tmp/.gems-versions # get the latest solidus from rubygems

cat /tmp/.ruby-versions
cat /tmp/.gems-versions
- restore_cache:
keys:
- solidus-installer-v9-{{ checksum "/tmp/.ruby-versions" }}-{{ checksum "/tmp/.gems-versions" }}
- solidus-installer-v9-{{ checksum "/tmp/.ruby-versions" }}-
- solidus-installer-v11-{{ checksum "/tmp/.ruby-versions" }}-{{ checksum "/tmp/.gems-versions" }}
- solidus-installer-v11-{{ checksum "/tmp/.ruby-versions" }}-
- run:
name: "Prepare the rails application"
command: |
cd /tmp
test -d my_app || (gem install rails -v "< 7.1" && gem install solidus)
test -d my_app || (gem install rails -v "< 8.0" && gem install solidus)
test -d my_app || rails new my_app --skip-git
- save_cache:
key: solidus-installer-v9-{{ checksum "/tmp/.ruby-versions" }}-{{ checksum "/tmp/.gems-versions" }}
key: solidus-installer-v11-{{ checksum "/tmp/.ruby-versions" }}-{{ checksum "/tmp/.gems-versions" }}
paths:
- /tmp/my_app
- /home/circleci/.rubygems
Expand All @@ -191,10 +192,10 @@ commands:
parameters:
app_root:
type: string
default: '/tmp/my_app'
default: "/tmp/my_app"
path:
type: string
default: '/'
default: "/"
expected_text:
type: string

Expand Down Expand Up @@ -223,39 +224,18 @@ commands:
mkdir -p /tmp/dummy_extension
cd /tmp/dummy_extension
bundle init
bundle add rails -v "< 7.1" --skip-install
bundle add sqlite3 -v "~> 1.3" --skip-install
bundle add rails -v "< 8.0" --skip-install
bundle add sqlite3 -v "~> 2.0" --skip-install
test -n "<<parameters.extra_gems>>" && bundle add <<parameters.extra_gems>> --skip-install
bundle add solidus --path "$(ruby -e"puts File.expand_path ENV['CIRCLE_WORKING_DIRECTORY']")"
export LIB_NAME=set # dummy requireable file
bundle exec rake -rrails -rspree/testing_support/extension_rake -e'Rake::Task["extension:test_app"].invoke'

jobs:
lint_code:
docker:
- image: cimg/ruby:3.2-node
environment:
BUNDLE_ONLY: "lint"
ESLINT_USE_FLAT_CONFIG: false
steps:
- checkout
- run: 'bundle install'
- run:
name: Check Ruby
command: "bin/rake lint:rb"
- run:
name: Check ERB
command: "bin/rake lint:erb"
- run:
name: Check JavaScript
command: "bin/rake lint:js"
- store_test_results:
path: test-results

solidus_installer:
executor:
name: sqlite
ruby: "3.0"
ruby: "3.1"
steps:
- checkout
- run:
Expand All @@ -278,12 +258,10 @@ jobs:
- test_page:
expected_text: "<title>Sample Store</title>"
- install_dummy_app
- install_dummy_app:
extra_gems: "solidus_frontend"
- run:
name: "Ensure solidus_frontend installer is run"
name: "Ensure extension test app is created"
command: |
test -f /tmp/dummy_extension/spec/dummy/config/initializers/solidus_frontend.rb
test -d /tmp/dummy_extension/spec/dummy

test_solidus:
parameters:
Expand All @@ -292,7 +270,7 @@ jobs:
default: postgres
ruby:
type: string
default: '3.2'
default: "3.2"
rails:
type: string
default: "7.1"
Expand Down Expand Up @@ -328,28 +306,28 @@ jobs:
default: postgres
ruby:
type: string
default: '3.2'
default: "3.2"
executor:
name: << parameters.database >>
ruby: << parameters.ruby >>
parallelism: 3
environment:
COVERAGE: 'true'
COVERAGE: "true"
COVERAGE_DIR: /tmp/coverage
DISABLE_ACTIVE_STORAGE: false
steps:
- setup
- run:
name: Setup Coverage Env Vars
command: |
echo 'export COVERAGE_FILE=/tmp/coverage/coverage.xml' >> $BASH_ENV
source $BASH_ENV
echo 'export COVERAGE_FILE=/tmp/coverage/coverage.xml' >> $BASH_ENV
source $BASH_ENV
- run:
name: Verify Coverage Env Vars
command: |
echo $COVERAGE
echo /tmp/coverage
echo /tmp/coverage/coverage.xml
echo $COVERAGE
echo /tmp/coverage
echo /tmp/coverage/coverage.xml
- run:
name: Setup Coverage Directory
command: mkdir -p /tmp/coverage
Expand All @@ -363,21 +341,56 @@ jobs:
workflows:
build:
jobs:
- lint_code
- solidus_installer
- test_solidus_with_coverage # Only test with coverage support with the default versions

# Based on supported versions for the current Solidus release and recommended versions from
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html.
- test_solidus:
name: &name "test-rails-<<matrix.rails>>-ruby-<<matrix.ruby>>-<<matrix.database>>-<<#matrix.paperclip>>paperclip<</matrix.paperclip>><<^matrix.paperclip>>activestorage<</matrix.paperclip>>"
matrix: { parameters: { rails: ['7.0', '7.1'], ruby: ['3.0'], database: ['mysql'], paperclip: [true] } }
matrix:
{
parameters:
{
rails: ["7.0", "7.1", "7.2"],
ruby: ["3.1"],
database: ["mysql"],
paperclip: [true],
},
}
- test_solidus:
name: *name
matrix: { parameters: { rails: ['7.0', '7.1'], ruby: ['3.1'], database: ['postgres'], paperclip: [false] } }
matrix:
{
parameters:
{
rails: ["7.0", "7.1", "7.2"],
ruby: ["3.1"],
database: ["postgres"],
paperclip: [false],
},
}
- test_solidus:
name: *name
matrix: { parameters: { rails: ['7.0'], ruby: ['3.2'], database: ['sqlite'], paperclip: [false] } }
matrix:
{
parameters:
{
rails: ["7.1"],
ruby: ["3.2"],
database: ["sqlite"],
paperclip: [false],
},
}
- test_solidus:
name: *name
matrix: { parameters: { rails: ['7.1', 'main'], ruby: ['3.3'], database: ['sqlite'], paperclip: [false] } }
matrix:
{
parameters:
{
rails: ["7.2", "main"],
ruby: ["3.3.5"],
database: ["sqlite"],
paperclip: [false],
},
}
4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
989ba2e74e49332d2281187d09a2dc7aad75922a
# Rubocop auto (Mar 8, 2018)
b3007bb0973dcb987b0328b4e59306cd2549148d
# Autocorrect circle/config.yml with prettier (Sep 12, 2024)
c636624093fec55e38f14cade4dee4ec0a829802
# Rubocop: Autocorrect (Sep 12, 2024)
273e5bd54e2b1783206043e316c2de4c9e95eb45
26 changes: 19 additions & 7 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,57 @@
"changelog:solidus_core":
- any:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "core/**/*"
"changelog:solidus_backend":
- any:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "backend/**/*"
"changelog:solidus_api":
- any:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "api/**/*"
"changelog:solidus_admin":
- any:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "admin/**/*"
"changelog:solidus_promotions":
- any:
- changed-files:
- any-glob-to-any-file:
- "promotions/**/*"
"changelog:solidus_legacy_promotions":
- any:
- changed-files:
- any-glob-to-any-file:
- "legacy_promotions/**/*"
"changelog:solidus_sample":
- any:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "sample/**/*"
"changelog:solidus":
- any:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "lib/**/*"
- "README.md"
- "solidus.gemspec"
"changelog:repository":
- all:
- changed_files:
- changed-files:
- any-glob-to-any-file:
- "**/*"
- all-globs-to-all-files:
- "!core/**/*"
- "!backend/**/*"
- "!api/**/*"
- "!admin/**/*"
- "!promotions/**/*"
- "!legacy_promotions/**/*"
- "!sample/**/*"
- "!lib/**/*"
- "!README.md"
Expand Down
3 changes: 3 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ changelog:
- title: Solidus Sample
labels:
- "changelog:solidus_sample"
- title: Solidus Promotions
labels:
- "changelog:solidus_promotions"
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
github.event.pull_request.merged == true
&& contains(
join(github.event.pull_request.labels.*.name, '---'),
'---backport'
'backport'
)
&& (
(github.event.action == 'labeled' && startsWith(github.event.label.name, 'backport')) ||
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Lint

on: [pull_request]

concurrency:
group: lint-${{ github.ref_name }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

permissions:
contents: read

env:
BUNDLE_ONLY: "lint"

jobs:
ruby:
name: Check Ruby
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint Ruby files
run: bin/rake lint:rb
- name: Store test results
uses: actions/upload-artifact@v4
with:
name: rubocop-results
path: test-results

erb:
name: Check ERB
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint ERB files
run: bin/rake lint:erb

javascript:
name: Check JavaScript
runs-on: ubuntu-22.04
env:
ESLINT_USE_FLAT_CONFIG: false
steps:
- uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint JS files
run: bin/rake lint:js
Loading
Loading