Merge: archive and unarchive pipelines
# Conflicts: # internal/cli/commands.go # internal/pipeline/store.go
This commit is contained in:
@@ -16,6 +16,13 @@ const (
|
||||
Templates = "templates"
|
||||
Validate = "validate"
|
||||
Validated = "validated"
|
||||
// Archive and unarchive name the pipeline by PipelineID or Name; an
|
||||
// optional ExpectedVersion guards against a concurrent publication. Both
|
||||
// reply with the pipeline detail (ArchivedAt set while archived).
|
||||
ArchivePipeline = "archive_pipeline"
|
||||
PipelineArchived = "pipeline_archived"
|
||||
UnarchivePipeline = "unarchive_pipeline"
|
||||
PipelineUnarchived = "pipeline_unarchived"
|
||||
)
|
||||
|
||||
type Stage struct {
|
||||
@@ -103,6 +110,10 @@ type PipelineSummary struct {
|
||||
Stages int `json:"stages"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
// ArchivedAt is set (RFC 3339) while the pipeline is archived: it is
|
||||
// hidden from list_pipelines unless include_archived is set, cannot start
|
||||
// runs and keeps its name reserved. History is untouched.
|
||||
ArchivedAt string `json:"archived_at,omitempty"`
|
||||
// Shape is the current version's parsed graph, included so a list can draw
|
||||
// a miniature without one detail request per row. Detail responses keep the
|
||||
// full Graph field; this one is deliberately optional and additive.
|
||||
@@ -131,6 +142,7 @@ type Message struct {
|
||||
ExpectedVersion int `json:"expected_version,omitempty"`
|
||||
Templates []Template `json:"templates,omitempty"`
|
||||
CreateOnly bool `json:"create_only,omitempty"`
|
||||
IncludeArchived bool `json:"include_archived,omitempty"`
|
||||
NotificationEndpoints []NotificationEndpoint `json:"notification_endpoints,omitempty"`
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user