batches: Use Draft instead of WIP in GitLab >= 14.0#42024
batches: Use Draft instead of WIP in GitLab >= 14.0#42024BolajiOlajide merged 18 commits intomainfrom
Conversation
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff d5d563a...2c68dd9.
|
There was a problem hiding this comment.
What's here LGTM, but I am concerned about the way we're determining the GitLab version in GitLabSource, as described below in an inline comment.
I saw that in an earlier version of this PR we actually invoked (sorry, I somehow missed Erik's post above)GetVersion on the code host — was there a reason we dropped that?
One alternative idea here is that we do actually know what external service(s) are being queried when the version map is being built, so we could extend Version to also include some sort of identifier we can use to get a specific code host's version without calling GetVersion, and then have a fallback to do that on sites that are mid-upgrade and don't have the new field(s) yet in Redis.
Thoughts?
I like that! |
Co-authored-by: Randell Callahan <piszmogcode@gmail.com>
90a75e9 to
be0c7f4
Compare
LawnGnome
left a comment
There was a problem hiding this comment.
Awesome, thanks for taking the time to make the version detection work on a per-external service basis. LGTM!
[Context](https://sourcegraph.slack.com/archives/C07KZF47K/p1665431134849859) #42024 added an extra field to the [Version struct for external services](https://sourcegraph.com/github.com/sourcegraph/sourcegraph@main/-/blob/internal/extsvc/versions/store.go?L16%3A1-20%3A2=&utm_source=VSCode-2.2.12), this field is used merely as an identifier to recognize different GitLab versions. This stuct 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 <!-- All pull requests REQUIRE a test plan: https://docs.sourcegraph.com/dev/background-information/testing_principles --> Check the `code_host_versions` ping data and confirm the field isn't being sent.
Closes #41796
Test plan