Skip to content

Commit

Permalink
fix: record if linters were skipped for a check run (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnithin authored Sep 25, 2024
1 parent 37af012 commit 9cdee41
Show file tree
Hide file tree
Showing 15 changed files with 9,042 additions and 3,949 deletions.
7,799 changes: 3,899 additions & 3,900 deletions connect-go/gen/proto/wg/cosmo/platform/v1/platform.pb.go

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions connect/src/wg/cosmo/platform/v1/platform_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3416,6 +3416,16 @@ export class SchemaCheck extends Message<SchemaCheck> {
*/
clientTrafficCheckSkipped = false;

/**
* @generated from field: bool lint_skipped = 14;
*/
lintSkipped = false;

/**
* @generated from field: bool graph_pruning_skipped = 15;
*/
graphPruningSkipped = false;

constructor(data?: PartialMessage<SchemaCheck>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -3437,6 +3447,8 @@ export class SchemaCheck extends Message<SchemaCheck> {
{ no: 11, name: "hasLintErrors", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 12, name: "hasGraphPruningErrors", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 13, name: "client_traffic_check_skipped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 14, name: "lint_skipped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 15, name: "graph_pruning_skipped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SchemaCheck {
Expand Down Expand Up @@ -3701,16 +3713,6 @@ export class GetCheckSummaryResponse extends Message<GetCheckSummaryResponse> {
*/
graphPruningIssues: GraphPruningIssue[] = [];

/**
* @generated from field: bool isLintingEnabled = 11;
*/
isLintingEnabled = false;

/**
* @generated from field: bool isGraphPruningEnabled = 12;
*/
isGraphPruningEnabled = false;

constructor(data?: PartialMessage<GetCheckSummaryResponse>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -3728,8 +3730,6 @@ export class GetCheckSummaryResponse extends Message<GetCheckSummaryResponse> {
{ no: 8, name: "traffic_check_days", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
{ no: 9, name: "lintIssues", kind: "message", T: LintIssue, repeated: true },
{ no: 10, name: "graphPruningIssues", kind: "message", T: GraphPruningIssue, repeated: true },
{ no: 11, name: "isLintingEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 12, name: "isGraphPruningEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCheckSummaryResponse {
Expand Down
3 changes: 3 additions & 0 deletions controlplane/migrations/0100_gigantic_ares.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ALTER TABLE "schema_checks" ADD COLUMN "lint_skipped" boolean;--> statement-breakpoint
ALTER TABLE "schema_checks" ADD COLUMN "graph_pruning_skipped" boolean;--> statement-breakpoint
ALTER TABLE "schema_checks" DROP COLUMN IF EXISTS "client_traffic_ignored";
Loading

0 comments on commit 9cdee41

Please sign in to comment.