Skip to content

Save a ServiceProvider.find query during two factor authentication#6087

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/save-a-query-4
Mar 17, 2022
Merged

Save a ServiceProvider.find query during two factor authentication#6087
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/save-a-query-4

Conversation

@mitchellhenke
Copy link
Contributor

Kind of a follow up to #6058 and #6061

changelog: Internal, Performance, Re-use existing database query results to avoid duplicative work
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/save-a-query-4 branch from b14f3d6 to 61fdbb9 Compare March 17, 2022 20:27
@mitchellhenke mitchellhenke marked this pull request as ready for review March 17, 2022 20:36
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -314,6 +314,7 @@ def presenter_for_two_factor_authentication_method
TwoFactorAuthCode.const_get("#{type}_delivery_presenter".classify).new(
Copy link
Contributor

Choose a reason for hiding this comment

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

!!!! I do not like this dynamic access.... story for another time

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeahhhhh, this and passing view_context around are things I'd like to change

@mitchellhenke mitchellhenke merged commit 89cfed1 into main Mar 17, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/save-a-query-4 branch March 17, 2022 20:53
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