Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore: Remove redis init side-effect of app.NewHandler#64062

Merged
eseliger merged 1 commit into
mainfrom
es/07-25-choreremoveredisinitside-effectofapp.newhandler
Jul 31, 2024
Merged

chore: Remove redis init side-effect of app.NewHandler#64062
eseliger merged 1 commit into
mainfrom
es/07-25-choreremoveredisinitside-effectofapp.newhandler

Conversation

@eseliger

Copy link
Copy Markdown
Member

This current code sets a global variable which couples the session package and the app package and the session package cannot work when the NewHandler method wasn't called yet.

This also used to wait for redis implicitly, without any indication of doing that.

To be more explicit about that, we now do that in the main function of frontend instead, and create the session store where required on the fly.

Test plan: Login still works, integration/E2E tests are passing.

eseliger commented Jul 25, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jul 25, 2024
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from 8583401 to 2fa3de9 Compare July 25, 2024 03:40
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from b1a7039 to 8202eb9 Compare July 28, 2024 14:45
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from 2fa3de9 to 9455b62 Compare July 28, 2024 14:45
@eseliger eseliger marked this pull request as ready for review July 29, 2024 22:02
@eseliger eseliger requested a review from a team July 29, 2024 22:02
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 4eb55b6 to 7865ff1 Compare July 29, 2024 23:36
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from dc48948 to f87df38 Compare July 29, 2024 23:36
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 7865ff1 to 14845f5 Compare July 30, 2024 00:48
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from f87df38 to 906f4ac Compare July 30, 2024 00:48
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 14845f5 to 1f5cf02 Compare July 30, 2024 17:22
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from 906f4ac to f0a1fa5 Compare July 30, 2024 17:22
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 1f5cf02 to 1a7b2e4 Compare July 30, 2024 23:30
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from f0a1fa5 to 19ff47f Compare July 30, 2024 23:30
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 1a7b2e4 to 6f191d6 Compare July 31, 2024 01:06
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from 19ff47f to 7678f53 Compare July 31, 2024 01:06
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 6f191d6 to 9d0d757 Compare July 31, 2024 01:21
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from 7678f53 to 0a608d3 Compare July 31, 2024 01:22
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from 9d0d757 to c882243 Compare July 31, 2024 01:38
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from 0a608d3 to a7e2c69 Compare July 31, 2024 01:38
@eseliger eseliger force-pushed the es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider branch from c882243 to 76e7780 Compare July 31, 2024 01:44
Base automatically changed from es/07-25-choreinituserpasswdproviderwhereweinitializeeveryotherauthnprovider to main July 31, 2024 02:09
This current code sets a global variable which couples the session package and the app package and the session package cannot work when the NewHandler method wasn't called yet.

This also used to wait for redis implicitly, without any indication of doing that.

To be more explicit about that, we now do that in the main function of frontend instead, and create the session store where required on the fly.

Test plan: Login still works, integration/E2E tests are passing.
@eseliger eseliger force-pushed the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch from a7e2c69 to 4676485 Compare July 31, 2024 02:10
@eseliger eseliger merged commit 7a7c663 into main Jul 31, 2024
@eseliger eseliger deleted the es/07-25-choreremoveredisinitside-effectofapp.newhandler branch July 31, 2024 02:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants