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

[logging] Only record events if a new user was created#64004

Merged
pjlast merged 2 commits into
mainfrom
pjlast/http-header-logging-follow-up
Jul 23, 2024
Merged

[logging] Only record events if a new user was created#64004
pjlast merged 2 commits into
mainfrom
pjlast/http-header-logging-follow-up

Conversation

@pjlast

@pjlast pjlast commented Jul 23, 2024

Copy link
Copy Markdown
Contributor

Follow-up on https://github.com/sourcegraph/sourcegraph/pull/63843

Based on comments from this Slack thread, it seems like the events causing the spam are ones where a new ext acct is saved without a user being created. So if we want to fix the spam we need to only save an event if a user was created.

Test plan

Test updated.

Changelog

@cla-bot cla-bot Bot added the cla-signed label Jul 23, 2024
@pjlast pjlast requested a review from a team July 23, 2024 10:34
@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 23, 2024
@pjlast pjlast added backport 5.5.x and removed team/source Tickets under the purview of Source - the one Source to graph it all team/product-platform labels Jul 23, 2024

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

code LGTM but I have no idea what the event is supposed to measure so 🤷

@pjlast pjlast merged commit 777c7a0 into main Jul 23, 2024
@pjlast pjlast deleted the pjlast/http-header-logging-follow-up branch July 23, 2024 11:48
sourcegraph-release-bot pushed a commit that referenced this pull request Jul 23, 2024
craigfurman pushed a commit that referenced this pull request Jul 23, 2024
…ed (#64005)

Follow-up on https://github.com/sourcegraph/sourcegraph/pull/63843

Based on comments from
[this](https://sourcegraph.slack.com/archives/C04RG0JD8L9/p1721668767261719?thread_ts=1721661216.365709&cid=C04RG0JD8L9)
Slack thread, it seems like the events causing the spam are ones where a
new ext acct is saved without a user being created. So if we want to fix
the spam we need to only save an event if a user was created.



## Test plan

Test updated.



## Changelog


 <br> Backport 777c7a0 from #64004

Co-authored-by: Petri-Johan Last <petri.last@sourcegraph.com>
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