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

chore: Simplify license routines#64068

Merged
eseliger merged 4 commits into
mainfrom
es/07-25-choresimplifylicenseroutines
Jul 31, 2024
Merged

chore: Simplify license routines#64068
eseliger merged 4 commits into
mainfrom
es/07-25-choresimplifylicenseroutines

Conversation

@eseliger

Copy link
Copy Markdown
Member

There's no need to track they haven't been called twice, this is a programming error and should not happen. We don't need to maintain a global int for that, IMO which just makes it harder to call in tests etc.

Test plan: Local stack still works, code review.

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

@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from f857b21 to 290b34b Compare July 25, 2024 03:41
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from 7c616d8 to bb38578 Compare July 25, 2024 03:41
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from 290b34b to 2997b26 Compare July 28, 2024 14:45
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from bb38578 to a997e42 Compare July 28, 2024 14:45
@eseliger eseliger marked this pull request as ready for review July 29, 2024 22:05
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from 23d74dd to 263198f Compare July 30, 2024 00:48
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from 8d291a9 to c0443d9 Compare July 30, 2024 17:23
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from 263198f to d2d3f7f Compare July 30, 2024 17:23
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from c0443d9 to 1f82819 Compare July 30, 2024 23:34
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from d2d3f7f to 37398d8 Compare July 30, 2024 23:34
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from 1f82819 to c954cc7 Compare July 31, 2024 01:10
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from 37398d8 to fd23f9d Compare July 31, 2024 01:11
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from c954cc7 to 3590627 Compare July 31, 2024 01:25
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from fd23f9d to 9cdfa5a Compare July 31, 2024 01:25
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from 3590627 to 7fde91f Compare July 31, 2024 01:42
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from 9cdfa5a to 9393d37 Compare July 31, 2024 01:42
eseliger added 4 commits July 31, 2024 04:24
Only frontend uses this package, so moving this package here to make clearer what service depends on this code.
This package also requires a call to the Init() func which only frontend does right now, so this also was a footgun where someone might start using this package outside of frontend, but then it's not correctly initialized.

Test plan: Just moved a package, go compiler doesn't complain.
This PR removes the requirement that a global variable is initialized in the frontend main function. Instead, we create a data exporter where it's used.

Test plan: CI passes, code review.
This package is not imported anywhere anymore, so we can safely drop it.

Test plan: Go compiler doesn't complain after package was removed.
There's no need to track they haven't been called twice, this is a programming error and should not happen. We don't need to maintain a global int for that, IMO which just makes it harder to call in tests etc.

Test plan: Local stack still works, code review.
@eseliger eseliger force-pushed the es/07-25-choreremoveunusedloghandlerspackage branch from 7fde91f to bc84228 Compare July 31, 2024 02:24
@eseliger eseliger force-pushed the es/07-25-choresimplifylicenseroutines branch from 9393d37 to ef6f130 Compare July 31, 2024 02:24
Base automatically changed from es/07-25-choreremoveunusedloghandlerspackage to main July 31, 2024 02:34
@eseliger eseliger merged commit 515acb8 into main Jul 31, 2024
@eseliger eseliger deleted the es/07-25-choresimplifylicenseroutines branch July 31, 2024 02:34
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