Add the GroupedUpdate field to CreatePullRequest #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a question in PR form, apologies!
As part of the grouped update spike, we are going to add a new field that is sent when the PR is created indicating if it was generated from a "Group Rule" or not.
In future this flag is likely to come along with a small value object that has the id/name/etc of the group rule.
On my spike, I get errors from the CLI that this column is not validate as part of the CreatePullRequest struct, so the obvious answer is to add it!
The less obvious part is the sequence I should following in doing this as right now the field is only sent if:
My plan is to open a PR which adds the column, sent as 'false' by default to core soon ™️. As part of that, I'll need to update the end 2 end tests for the CLI to include it, so I'll potentially need to change the CLI first, but it seems like that could be a 🐔 and 🥚 problem where tests will fail somewhere until both merge.
So my question is this: would the easiest approach be to add
GroupedUpdate
withomitempty
, on the assumption that existing end-to-end tests will still pass until I update core, then circle back and do a subsequent update to the CLI which removes theomitempty
?