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

Remove references to legacy :general_settings resource #5128

Merged

Conversation

waiting-for-dev
Copy link
Contributor

@waiting-for-dev waiting-for-dev commented Jun 7, 2023

Summary

(Replaces #5127, closed by error)

The resource was created in f83d9db (2015), but we stopped checking permissions on it in 60ea59a (2017), when we replaced it with checking on Spree::Store.

Currently, the admin controller for :general_settings is only used to redirect to stores.

We also remove the redundant admin locale key spree.general_settings. Instead, we can use spree.store.

Ref. #5102

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.

The resource was created in f83d9db
(2015), but we stopped checking permissions on it in
60ea59a (2017), when we replaced it
with checking on `Spree::Store`.

Currently, the admin controller for `:general_settings` is only used to
redirect to stores [1].

[1] - https://github.com/solidusio/solidus/blob/main/backend/app/controllers/spree/admin/general_settings_controller.rb
Instead, we can use `spree.store`. This is a leftover from
60ea59a (2017).
@waiting-for-dev waiting-for-dev requested a review from a team as a code owner June 7, 2023 07:47
@github-actions github-actions bot added changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem labels Jun 7, 2023
@waiting-for-dev waiting-for-dev self-assigned this Jun 7, 2023
@kennyadsl kennyadsl merged commit 3c98a2f into solidusio:main Jun 7, 2023
@kennyadsl kennyadsl deleted the waiting-for-dev/legacy_general_settings branch June 7, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_backend Changes to the solidus_backend gem changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants