-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEVPROD-9181 cleanup subscriptions and unused functions #8651
base: main
Are you sure you want to change the base?
Conversation
// IsGithubMergePatch returns true if the patch is from the GitHub merge queue. | ||
func (p *Patch) IsGithubMergePatch() bool { | ||
return p.GithubMergeData.HeadSHA != "" | ||
return p.Alias == evergreen.CommitQueueAlias || p.GithubMergeData.HeadSHA != "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still have to keep evergreen.CommitQueueAlias? If yes, can we maybe rename it or add a comment explaining why we need to keep it?
@@ -375,7 +375,7 @@ func (j *patchIntentProcessor) finishPatch(ctx context.Context, patchDoc *patch. | |||
} | |||
|
|||
if patchDoc.IsMergeQueuePatch() { | |||
patchDoc.Description = model.MakeCommitQueueDescription(patchDoc.Patches, pref, patchedProject, patchDoc.IsGithubMergePatch(), patchDoc.GithubMergeData) | |||
patchDoc.Description = model.MakeCommitQueueDescription(patchDoc.Patches, pref, patchedProject, patchDoc.IsMergeQueuePatch(), patchDoc.GithubMergeData) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update the name of MakeCommitQueueDescription and remove the "githubMergePatch" bool and the commit queue logic?
DEVPROD-9181
Description
Remove subscriptions, unused graphql tests, improve documentation, and consolidate IsGithubMergePatch and IsMergeQueuePatch.
I expect this to be the last PR under this ticket! So if you find anything I miss, let me know. The last thing I found are for UI tests for which I split a ticket (DEVPROD-14383, DEVPROD-13843)
Testing
Existing tests
Documentation
Tweaked slightly but I think that Brian handled the bulk of it already