Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
campaigns: Support changeset filtering (#8848)
* campaigns: Add columns and update graphql to allow changeset filtering * campaigns: Update changeset external state fields When we sync a changeset or receive a webhook * campaigns: Changeset filtering implemented via graphql * campaigns: Include filters when counting changesets * campaigns: Add filtering tests * campaigns: Remove custom column types for changeset states * campaigns: Remove "unknown" changeset states * migrations: Move in preparation for merge * Add filter UI to changesets * campaigns: Handle null strings for changeset external state in db * migrations: Set defaults for changeset external state * dev: Run code generation * campaigns: Handle nullability of changeset external state columns * campaigns: Remove err check as value is always nil * graphql: Add enum values that are in Go code * campaigns: Use stronger types in filter args * campaigns: Use changset and events when computing state * campaigns: Fix lint warning * campaigns: Handle upsert of check runs and suites * campaigns: Fetch all events on webhook receive In order to properly compute new state * campaigns: Move changeset update so that it is included in tx * campaigns: Improve comment * campaigns: Use consistent argument types * campaigns: Rename updateExternalState to SetDerivedState And make it a method on Changeset * campaigns: Add derived state on creation of changeset * campaigns: Set derived state when creating a new changeset * changelog: Add changeset filtering * campaigns: Recalculate metadata if changeset already exists * campaigns: Reorder code for clarity * Update internal/campaigns/types.go Co-Authored-By: Thorsten Ball <mrnugget@gmail.com> * Update internal/campaigns/types.go Co-Authored-By: Thorsten Ball <mrnugget@gmail.com> * campaigns: Order results to be deterministic * Fix snapshot Co-authored-by: Erik Seliger <erikseliger@me.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
- Loading branch information
1 parent
d2a15e1
commit 6aa97aa
Showing
25 changed files
with
837 additions
and
190 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.