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

remove key field from codehost json field#42838

Merged
BolajiOlajide merged 1 commit into
mainfrom
bo/remove-key-codehost-ping
Oct 11, 2022
Merged

remove key field from codehost json field#42838
BolajiOlajide merged 1 commit into
mainfrom
bo/remove-key-codehost-ping

Conversation

@BolajiOlajide

@BolajiOlajide BolajiOlajide commented Oct 11, 2022

Copy link
Copy Markdown
Contributor

Context

#42024 added an extra field to the Version struct for external services, this field is used merely as an identifier to recognize different GitLab versions. This struct was used to send ping data for code_host_versions and the Key field was sent as part of the ping payload (which shouldn't be).

This PR ensures the field isn't being sent when we marshal the versions for sending pings.

Test plan

Check the code_host_versions ping data and confirm the field isn't being sent.

@BolajiOlajide BolajiOlajide self-assigned this Oct 11, 2022
@cla-bot cla-bot Bot added the cla-signed label Oct 11, 2022
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 24c2ab1...d7d606e.

Notify File(s)
@eseliger internal/extsvc/versions/store.go

@akalia25 akalia25 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for reverting this change!

@BolajiOlajide BolajiOlajide merged commit bfc329b into main Oct 11, 2022
@BolajiOlajide BolajiOlajide deleted the bo/remove-key-codehost-ping branch October 11, 2022 20:02
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.

3 participants