Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cli/src/commands/proposal/commands/create.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Command, program } from 'commander';
import ora from 'ora';
import pc from 'picocolors';
import { ProposalNamingConvention } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb';
import { ProposalNamingConvention, ProposalOrigin } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb';
import { getBaseHeaders } from '../../../core/config.js';
import { BaseCommandOptions } from '../../../core/types/types.js';
import { handleProposalResult } from '../../../handle-proposal-result.js';
Expand Down Expand Up @@ -80,6 +80,7 @@ export default (opts: BaseCommandOptions) => {
name,
subgraphs,
namingConvention: ProposalNamingConvention.NORMAL,
origin: ProposalOrigin.INTERNAL,
},
{
headers: getBaseHeaders(),
Expand Down
6,072 changes: 3,074 additions & 2,998 deletions connect-go/gen/proto/wg/cosmo/platform/v1/platform.pb.go

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions connect/src/wg/cosmo/platform/v1/platform_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,26 @@ proto3.util.setEnumType(Feature, "wg.cosmo.platform.v1.Feature", [
{ no: 2, name: "scim" },
]);

/**
* @generated from enum wg.cosmo.platform.v1.ProposalOrigin
*/
export enum ProposalOrigin {
/**
* @generated from enum value: INTERNAL = 0;
*/
INTERNAL = 0,

/**
* @generated from enum value: EXTERNAL = 1;
*/
EXTERNAL = 1,
}
// Retrieve enum metadata with: proto3.getEnumType(ProposalOrigin)
proto3.util.setEnumType(ProposalOrigin, "wg.cosmo.platform.v1.ProposalOrigin", [
{ no: 0, name: "INTERNAL" },
{ no: 1, name: "EXTERNAL" },
]);

/**
* @generated from enum wg.cosmo.platform.v1.ProposalNamingConvention
*/
Expand Down Expand Up @@ -21354,6 +21374,11 @@ export class Proposal extends Message<Proposal> {
*/
latestCheckId = "";

/**
* @generated from field: wg.cosmo.platform.v1.ProposalOrigin origin = 11;
*/
origin = ProposalOrigin.INTERNAL;

constructor(data?: PartialMessage<Proposal>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -21372,6 +21397,7 @@ export class Proposal extends Message<Proposal> {
{ no: 8, name: "subgraphs", kind: "message", T: ProposalSubgraph, repeated: true },
{ no: 9, name: "latestCheckSuccess", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 10, name: "latestCheckId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 11, name: "origin", kind: "enum", T: proto3.getEnumType(ProposalOrigin) },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Proposal {
Expand Down Expand Up @@ -21481,6 +21507,11 @@ export class CreateProposalRequest extends Message<CreateProposalRequest> {
*/
namingConvention = ProposalNamingConvention.NORMAL;

/**
* @generated from field: wg.cosmo.platform.v1.ProposalOrigin origin = 6;
*/
origin = ProposalOrigin.INTERNAL;

constructor(data?: PartialMessage<CreateProposalRequest>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -21494,6 +21525,7 @@ export class CreateProposalRequest extends Message<CreateProposalRequest> {
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 4, name: "subgraphs", kind: "message", T: ProposalSubgraph, repeated: true },
{ no: 5, name: "namingConvention", kind: "enum", T: proto3.getEnumType(ProposalNamingConvention) },
{ no: 6, name: "origin", kind: "enum", T: proto3.getEnumType(ProposalOrigin) },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateProposalRequest {
Expand Down
2 changes: 2 additions & 0 deletions controlplane/migrations/0132_slippery_payback.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE TYPE "public"."proposal_origin" AS ENUM('INTERNAL', 'EXTERNAL');--> statement-breakpoint
ALTER TABLE "proposals" ADD COLUMN "origin" "proposal_origin" DEFAULT 'INTERNAL' NOT NULL;
Loading
Loading