Skip to content

Conversation

@LawnGnome
Copy link
Contributor

@LawnGnome LawnGnome commented Mar 9, 2021

This is fairly mechanical, although I actually did most of it by hand. The only bit that's really interesting is that I needed to abstract two GraphQL mutations to maintain cross-version compatibility: I did so by introducing a new Operations interface in internal/batchers/graphql that delegates to an appropriate implementation based on our existing "feature flag" quirk detection, and takes that level of detail out of internal/batchers/Service.

We're also renaming the volume workspace Docker image: this is fine, since previous tagged versions will continue to just work. The release automation will be mildly spicy when we do the next src release, as there's only so much one can bench test without actually invoking GitHub Actions; it may be worth cutting a release as soon as we have the documentation up to date while this is (relatively) fresh in my mind, even though it will lift the veil on the great renaming slightly early. (Since everything is aliased, nothing should break in practice.)

This is paired with https://github.com/sourcegraph/sourcegraph/pull/18963, which includes the schema changes required to make this work. Those schema changes are not breaking, but we should nevertheless keep both repos in sync for (I hope) obvious reasons.

Closes sourcegraph/sourcegraph#18940.

@LawnGnome LawnGnome marked this pull request as ready for review March 9, 2021 02:19
@LawnGnome LawnGnome requested a review from a team March 9, 2021 02:19
Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

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

Nice approach with the two backends, LGTM 🌟

@LawnGnome LawnGnome merged commit 54fedaf into main Mar 9, 2021
@LawnGnome LawnGnome deleted the aharvey/batch-all-your-changes branch March 9, 2021 17:39
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Rename command files.

* cmd/src campaigns → batch

* Minimal package renames.

* schemata changes

* non-GraphQL renames

* Rename Docker image.

* Migrate GraphQL.

* update readme

* Update canned errors in tests.

* changelog

* insert pr number here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: rename campaigns to batch changes

4 participants