Skip to content

Commit

Permalink
addons: Separate created & destroyed add-on events.
Browse files Browse the repository at this point in the history
  • Loading branch information
paladin-devops committed Aug 9, 2023
1 parent 95d63f2 commit 29fcfe2
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 9 deletions.
20 changes: 18 additions & 2 deletions pkg/server/gen/server.pb.json.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions pkg/server/gen/server.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13424,7 +13424,18 @@
},
"description": "A deployment packaged alongside prefetched related messages."
},
"hashicorp.waypoint.UI.EventAddOn": {
"hashicorp.waypoint.UI.EventAddOnCreated": {
"type": "object",
"properties": {
"add_on_id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"hashicorp.waypoint.UI.EventAddOnDestroyed": {
"type": "object",
"properties": {
"add_on_id": {
Expand Down Expand Up @@ -13486,7 +13497,8 @@
"BUILD",
"DEPLOYMENT",
"RELEASE",
"ADDON"
"ADDON_CREATED",
"ADDON_DESTROYED"
],
"default": "BUILD",
"title": "Supported EventTypes"
Expand Down Expand Up @@ -13603,8 +13615,11 @@
"event_release_schema": {
"$ref": "#/definitions/hashicorp.waypoint.UI.EventRelease"
},
"event_add_on_schema": {
"$ref": "#/definitions/hashicorp.waypoint.UI.EventAddOn"
"event_add_on_created_schema": {
"$ref": "#/definitions/hashicorp.waypoint.UI.EventAddOnCreated"
},
"event_add_on_destroyed_schema": {
"$ref": "#/definitions/hashicorp.waypoint.UI.EventAddOnDestroyed"
}
},
"title": "NOTE(Cassie): This should be implemented once pipeline_runs are app scoped\nmessage EventPipelineRun {\nstring pipelineRun_id = 1;\nuint64 sequence = 2;\n// Component component = 3; //aka platform\n// Ref.Workspace workspace = 4;\n}"
Expand Down
13 changes: 10 additions & 3 deletions pkg/server/proto/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@ message UI {
BUILD = 0;
DEPLOYMENT = 1;
RELEASE = 2;
ADDON = 3;
ADDON_CREATED = 3;
ADDON_DESTROYED = 4;
}
//generic so looser contract for activity feed between backend and UI
}
Expand Down Expand Up @@ -848,7 +849,12 @@ message UI {
uint64 deployment_sequence = 6;
}

message EventAddOn {
message EventAddOnCreated {
string add_on_id = 1;
string name = 2;
}

message EventAddOnDestroyed {
string add_on_id = 1;
string name = 2;
}
Expand All @@ -865,7 +871,8 @@ message UI {
UI.EventBuild event_build_schema = 1;
UI.EventDeployment event_deployment_schema = 2;
UI.EventRelease event_release_schema = 3;
UI.EventAddOn event_add_on_schema = 4;
UI.EventAddOnCreated event_add_on_created_schema = 4;
UI.EventAddOnDestroyed event_add_on_destroyed_schema = 5;
//UI.EventPipelineRun event_pipeline_run_schema = 4;
}
}
Expand Down

0 comments on commit 29fcfe2

Please sign in to comment.