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 #241

Conversation

cpfergus1
Copy link
Contributor

@cpfergus1 cpfergus1 commented Aug 30, 2022

Description

Removes #redirect_back_or_default in favor of solidus_auth_devise helper methods

Motivation and Context

The method #redirect_back_or_default and the class user_last_url_storer will be deprecated in Solidus solidusio/solidus#4533 which would break the current build without these changes. SolidusAuthDevise has similar a helper method to #redirect_back_or_default, #stored_spree_user_location_or which was introduced in solidus_auth_devise PR228 and will be utilized instead.

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 marked this pull request as draft August 30, 2022 19:05
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch from 8c53471 to e21fb59 Compare August 30, 2022 20:04
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch from e21fb59 to 6730c5d Compare September 12, 2022 19:19
@cpfergus1 cpfergus1 changed the title Utilize Rails redirect methods Utilize Devise Location helpers Sep 13, 2022
@kennyadsl
Copy link
Member

Why still draft?

@cpfergus1
Copy link
Contributor Author

cpfergus1 commented Sep 15, 2022

Why still draft?

This requires solidusio/solidus_auth_devise#228 to be merged first
I opened it up for review since you are taking a look!

@cpfergus1 cpfergus1 marked this pull request as ready for review September 15, 2022 13:08
@cpfergus1 cpfergus1 force-pushed the connorferguson/sol-306-deprecate-redirect_back_or_default branch from 5e8ca33 to 2f7fbe0 Compare September 19, 2022 09:29
With the deprecation of #redirect_back_or_default in solidus 4.0,
we can utilize the SolidusAuthDevise helper stored_location_for
to provide the same functionality.
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 2f7fbe0 to da6c517 Compare September 19, 2022 09:37
@cpfergus1 cpfergus1 marked this pull request as draft September 26, 2022 13:33
@cpfergus1 cpfergus1 closed this Mar 22, 2023
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.

2 participants