Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ablack12
Copy link
Contributor

@ablack12 ablack12 commented Jan 21, 2025

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

@ablack12 ablack12 requested a review from a team January 22, 2025 20:50
// 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 != ""
Copy link
Member

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)
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants