Skip to content

Commit

Permalink
✨ Include already running in get effective pipeline settings (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Munklinde96 authored Oct 7, 2024
1 parent 5b691b2 commit 3bd0e78
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
19 changes: 18 additions & 1 deletion docs/docs/api/platform-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8705,6 +8705,7 @@ Response for getting custom metrics for a project and environment.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| project_id | [string](#string) | | |
| capsule_id | [string](#string) | | If set, the response will contain information as to whether the pipeline is already running for that capsule. |



Expand All @@ -8719,7 +8720,23 @@ Response for getting custom metrics for a project and environment.

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| pipelines | [model.Pipeline](#model-Pipeline) | repeated | |
| pipelines | [GetEffectivePipelineSettingsResponse.Pipeline](#api-v1-project-GetEffectivePipelineSettingsResponse-Pipeline) | repeated | |






<a name="api-v1-project-GetEffectivePipelineSettingsResponse-Pipeline"></a>

### GetEffectivePipelineSettingsResponse.Pipeline



| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| pipeline | [model.Pipeline](#model-Pipeline) | | |
| already_running | [bool](#bool) | | |



Expand Down
10 changes: 9 additions & 1 deletion proto/rig/api/v1/project/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,18 @@ message GetEffectiveGitSettingsResponse {

message GetEffectivePipelineSettingsRequest {
string project_id = 1;
// If set, the response will contain information as to whether the pipeline is
// already running for that capsule.
string capsule_id = 2;
}

message GetEffectivePipelineSettingsResponse {
repeated model.Pipeline pipelines = 1;
message Pipeline {
model.Pipeline pipeline = 1;
bool already_running = 2;
}

repeated Pipeline pipelines = 1;
}

message GetEffectiveNotificationSettingsRequest {
Expand Down

0 comments on commit 3bd0e78

Please sign in to comment.