Skip to content

[v4.4] Fix admin promotions controller#6020

Merged
tvdeyen merged 2 commits intov4.4from
backport/v4.4/pr-5943
Dec 6, 2024
Merged

[v4.4] Fix admin promotions controller#6020
tvdeyen merged 2 commits intov4.4from
backport/v4.4/pr-5943

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Dec 6, 2024

Backport

This will backport the following commits from main to v4.4:

Questions ?

Please refer to the Backport tool documentation

@github-actions github-actions Bot requested a review from a team as a code owner December 6, 2024 13:25
@github-actions github-actions Bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Dec 6, 2024
@tvdeyen tvdeyen enabled auto-merge December 6, 2024 13:46
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.46%. Comparing base (d68f0b4) to head (7eb5178).
Report is 16 commits behind head on v4.4.

Additional details and impacted files
@@           Coverage Diff           @@
##             v4.4    #6020   +/-   ##
=======================================
  Coverage   89.45%   89.46%           
=======================================
  Files         782      782           
  Lines       17993    17999    +6     
=======================================
+ Hits        16096    16102    +6     
  Misses       1897     1897           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen disabled auto-merge December 6, 2024 15:07
The  `authorization_subject` method from `solidus_admin` assumes that
all models are in the `Spree` namespace.

(cherry picked from commit c2ba46a)
This controller still did not know how what to authorize against, and
wanted to visit a URL that doesn't exist when clicking on a promotion.

This also changes at least the name of each promotion to be a link
element that can easily be targeted with Capybara and works with all
major browsers.

(cherry picked from commit 2eccd6d)
@tvdeyen tvdeyen force-pushed the backport/v4.4/pr-5943 branch from b33ec15 to 7eb5178 Compare December 6, 2024 15:07
@github-actions github-actions Bot added the changelog:repository Changes to the repository not within any gem label Dec 6, 2024
@tvdeyen tvdeyen enabled auto-merge December 6, 2024 15:08
@tvdeyen tvdeyen merged commit 341cb1f into v4.4 Dec 6, 2024
@tvdeyen tvdeyen deleted the backport/v4.4/pr-5943 branch December 6, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:repository Changes to the repository not within any gem changelog:solidus_promotions Changes to the solidus_promotions gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants