Skip to content

Remove Unused signup_error_messages! Helper - #51424

Merged
Hamms merged 1 commit into
stagingfrom
remove-unused-signup_error_messages-route
Apr 21, 2023
Merged

Remove Unused signup_error_messages! Helper#51424
Hamms merged 1 commit into
stagingfrom
remove-unused-signup_error_messages-route

Conversation

@Hamms

@Hamms Hamms commented Apr 19, 2023

Copy link
Copy Markdown
Contributor

This used to be an overridable method in Devise, but has long since been deprecated, first in favor of devise_error_messages! and then in favor of the devise/shared/error_messages partial. Fortunately, we have also long since stopped using it.

Also remove some associated i18n strings which are similarly unused.

Links

Testing story

Grepped the codebase for instances of additional_information and not_saved to verify that we aren't using these strings anywhere else. Tested out a few different ways to generate error messages in the signup workflow locally to verify that everything still works. Otherwise, relying on existing tests to verify that this doesn't represent any change in functionality.

This used to be an overridable method in Devise, but has long since been deprecated, first in favor of `devise_error_messages!` and then in favor of the `devise/shared/error_messages` partial. Fortunately, we have also long since stopped using it.

Also remove some associated i18n strings which are similarly unused.

- https://github.com/heartcombo/devise/blob/v4.7.0/app/helpers/devise_helper.rb
@Hamms
Hamms marked this pull request as ready for review April 20, 2023 20:34
@Hamms
Hamms requested a review from a team as a code owner April 20, 2023 20:34
@Hamms
Hamms requested a review from a team April 20, 2023 20:34

@nicklathe nicklathe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the historical context with this how/where this method was being used, but looks good to me in regard to removing it and the related i18n messages. :shipit:

@Hamms
Hamms merged commit fff7967 into staging Apr 21, 2023
@Hamms
Hamms deleted the remove-unused-signup_error_messages-route branch April 21, 2023 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants