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

[Backport 5.5.x] [fix] Only trigger externalAcctSignup event when a new user is created#63975

Merged
craigfurman merged 1 commit into
5.5.xfrom
backport-63843-to-5.5.x
Jul 22, 2024
Merged

[Backport 5.5.x] [fix] Only trigger externalAcctSignup event when a new user is created#63975
craigfurman merged 1 commit into
5.5.xfrom
backport-63843-to-5.5.x

Conversation

@sourcegraph-release-bot

Copy link
Copy Markdown
Collaborator

Currently events are triggered whenever a user signs in with http-header auth. This is because of the GetAndSaveUser function always triggering an event.

However, before the new telemetry events, these events were only created when a new user was created.

This PR brings the new telemetry code in line with the old telemetry code to stop the massive amounts of spam caused by this event.

Closes SRC-461

Test plan

Adjust expected events in unit test.

Changelog

  • Fixed an issue where the http-header auth would cause a massive amount of event logs spam


Backport cd65951 from #63843

…d or external account is saved (#63843)

(cherry picked from commit cd65951)
@sourcegraph-release-bot sourcegraph-release-bot requested review from a team, Chickensoupwithrice and pjlast and removed request for a team July 22, 2024 11:43
@sourcegraph-release-bot sourcegraph-release-bot added cla-signed backports team/source Tickets under the purview of Source - the one Source to graph it all team/product-platform backported-to-5.5.x labels Jul 22, 2024
@craigfurman craigfurman merged commit 9522c46 into 5.5.x Jul 22, 2024
@craigfurman craigfurman deleted the backport-63843-to-5.5.x branch July 22, 2024 12:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backported-to-5.5.x backports 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.

3 participants