Merged
Conversation
…error state webhooks - organizationRepository.findById refactored
themarolt
reviewed
May 9, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
teamsChanges proposed ✍️
What
🤖 Generated by Copilot at 17a5a0b
This pull request adds and improves several features and fixes related to webhooks, GitHub integration, and queue monitoring. It adds a new method to query failed webhooks and a new type for error webhooks. It refactors the organization repository to use a more efficient query. It adds support for team review requests and fixes a bug in star/unstar events in GitHub webhooks. It adds new modules for GraphQL queries and types for GitHub teams. It changes the log level for display options errors. It adds a new function to get the current queue size.
🤖 Generated by Copilot at 17a5a0b
Why
How
🤖 Generated by Copilot at 17a5a0b
ErrorWebhookandWebhookTypetypes inincomingWebhookRepository.ts(link)findErrormethod toIncomingWebhookRepositoryclass to query error webhooks by type and pagination (link)findByIdmethod inOrganizationRepositoryclass with a more efficient one that uses raw SQL and subqueries (link)_populateRelationsmethod fromOrganizationRepositoryclass as it is no longer needed (link)TeamsQueryandGithubWebhookTeammodules ingithubIntegrationService.ts(link)parseWebhookmethod to handle multiple reviewers or teams and fetch team members from GitHub (link)parsePullRequestEventsmethod to create activities for team members (link)TeamsQueryclass toteams.tsmodule to query GitHub for team members using GraphQL (link)GithubWebhookTeaminterface totypes.tsmodule to define the shape of a team object from GitHub (link)starred_atproperty was treated as a valid activity (link)activityDisplayService.ts(link)aws.ts(link)ErrorWebhookinterface towebhooks.tsmodule (link)Checklist ✅
Feature,Improvement, orBug.