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

Utilize Devise location helpers for redirecting #228

Conversation

cpfergus1
Copy link
Contributor

@cpfergus1 cpfergus1 commented Aug 30, 2022

Description

Removes #redirect_back_or_default in favor of new simplified methods utilizing Devise helpers store_location_for and stored_location_for

Motivation and Context

The method #redirect_back_or_default and the class user_last_url_storer will be deprecated in Solidus PR #4533 which would break the current build without these changes. Because Devise already provides functionality similar to redirect_back_or_default, the included functions will be utilized by other extensions dependent on solidus_auth_devise

How Has This Been Tested?

The current test suite covers the changes made in the PR

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch from fe55762 to 105c85e Compare September 12, 2022 14:16
@cpfergus1 cpfergus1 marked this pull request as draft September 12, 2022 14:16
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch 2 times, most recently from 1c3014e to af35dc9 Compare September 12, 2022 17:46
@cpfergus1 cpfergus1 marked this pull request as ready for review September 12, 2022 17:46
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch 3 times, most recently from af35dc9 to 78a8135 Compare September 12, 2022 18:36
@cpfergus1 cpfergus1 changed the title Utilize Rails redirect methods Utilize Devise redirect helpers Sep 13, 2022
@cpfergus1 cpfergus1 changed the title Utilize Devise redirect helpers Utilize Devise location helpers for redirecting Sep 13, 2022
With the deprecation of #redirect_back_or_default in solidus 4.0,
we can utilize Devise helpers store_location_for and stored_location_for
to provide the same functionality.

Co-Authored-By: Elia Schito <[email protected]>
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch from 78a8135 to 22bd2ce Compare September 13, 2022 12:39
This method was utilized for redirect_back_or_default.
It is no longer required
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch from 606dfd6 to 51741d5 Compare September 14, 2022 16:05
@kennyadsl kennyadsl requested a review from a team September 15, 2022 13:05
@waiting-for-dev waiting-for-dev merged commit dde9c6a into solidusio:master Sep 16, 2022
@cpfergus1 cpfergus1 mentioned this pull request Sep 22, 2022
6 tasks
@cpfergus1 cpfergus1 mentioned this pull request Sep 29, 2022
6 tasks
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.

4 participants