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

fix(sg): do not try to publish analytics when it is disabled#63800

Merged
burmudar merged 4 commits into
mainfrom
wb/sg-analytics-fixes
Jul 12, 2024
Merged

fix(sg): do not try to publish analytics when it is disabled#63800
burmudar merged 4 commits into
mainfrom
wb/sg-analytics-fixes

Conversation

@burmudar

@burmudar burmudar commented Jul 12, 2024

Copy link
Copy Markdown
Contributor

The background publisher was started regardless if analytics was disabled or not. This PR makes it so that we only publish analytics if it is enabled.

To make it work and not duplicate the disabled analytics check, I moved the usershell + background context creation to happen earlier.

Test plan

CI and tested locally

Changelog

  • sg - only start the analytics background publisher when analytics are enabled

burmudar added 2 commits July 12, 2024 09:46
- move creation of usershell context and background context to happen
  before registration of analtyics, since the background publisher needs
  the background context to be intialized.
@burmudar burmudar requested a review from a team July 12, 2024 08:26
@cla-bot cla-bot Bot added the cla-signed label Jul 12, 2024
Comment thread dev/sg/main.go
@burmudar burmudar merged commit 55f5dc7 into main Jul 12, 2024
@burmudar burmudar deleted the wb/sg-analytics-fixes branch July 12, 2024 10:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants