Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: no task/stage/task run title (#15444)

Danny Xuf307267ae855
diff --git a/backend/api/v1/issue_service.go b/backend/api/v1/issue_service.go
index f3ca1a041a..bbb0565ee5 100644
--- a/backend/api/v1/issue_service.go
+++ b/backend/api/v1/issue_service.go
@@ -819,7 +819,7 @@ func (s *IssueService) ApproveIssue(ctx context.Context, request *v1pb.ApproveIs
Project: webhook.NewProject(issue.Project),
IssueRolloutReady: &webhook.EventIssueRolloutReady{
RolloutPolicy: policy,
- StageName: stages[0].Name,
+ StageName: stages[0].Environment,
},
})
return nil
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.go
index 214a1ec209..7b571fe030 100644
--- a/backend/api/v1/plan_service.go
+++ b/backend/api/v1/plan_service.go
@@ -718,7 +718,7 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePlanRe
if taskPatch.SheetID != nil || taskPatch.EarliestAllowedTs != nil {
task := tasksMap[taskPatch.ID]
if task.LatestTaskRunStatus == api.TaskRunPending || task.LatestTaskRunStatus == api.TaskRunRunning || task.LatestTaskRunStatus == api.TaskRunSkipped || task.LatestTaskRunStatus == api.TaskRunDone {
- return nil, status.Errorf(codes.FailedPrecondition, "cannot update plan because task %q is %s", task.Name, task.LatestTaskRunStatus)
+ return nil, status.Errorf(codes.FailedPrecondition, "cannot update plan because task %v is %s", task.ID, task.LatestTaskRunStatus)
}
}
}
@@ -761,7 +761,7 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePlanRe
for _, taskPatch := range taskPatchList {
task := tasksMap[taskPatch.ID]
if _, err := s.store.UpdateTaskV2(ctx, taskPatch); err != nil {
- return nil, status.Errorf(codes.Internal, "failed to update task %q: %v", task.Name, err)
+ return nil, status.Errorf(codes.Internal, "failed to update task %v: %v", task.ID, err)
}
}
diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.go
index d2d91b73b0..62c54c494d 100644
--- a/backend/api/v1/rollout_service.go
+++ b/backend/api/v1/rollout_service.go
@@ -3,7 +3,6 @@ package v1
import (
"context"
"database/sql"
- "fmt"
"log/slog"
"slices"
"sort"
@@ -586,7 +585,6 @@ func (s *RolloutService) BatchRunTasks(ctx context.Context, request *v1pb.BatchR
create := &store.TaskRunMessage{
TaskUID: task.ID,
SheetUID: sheetUID,
- Name: fmt.Sprintf("%s %d", task.Name, time.Now().Unix()),
CreatorID: user.ID,
}
taskRunCreates = append(taskRunCreates, create)
@@ -700,7 +698,7 @@ func (s *RolloutService) BatchSkipTasks(ctx context.Context, request *v1pb.Batch
return nil, status.Errorf(codes.Internal, "failed to check if the user can run tasks, error: %v", err)
}
if !ok {
- return nil, status.Errorf(codes.PermissionDenied, "not allowed to skip tasks in stage %q", stage.Name)
+ return nil, status.Errorf(codes.PermissionDenied, "not allowed to skip tasks in stage %q", stage.Environment)
}
}
@@ -830,7 +828,7 @@ func (s *RolloutService) BatchCancelTaskRuns(ctx context.Context, request *v1pb.
case api.TaskRunPending:
case api.TaskRunRunning:
default:
- return nil, status.Errorf(codes.InvalidArgument, "taskRun %v is not pending or running", taskRun.Name)
+ return nil, status.Errorf(codes.InvalidArgument, "taskRun %v is not pending or running", taskRun.ID)
}
}
@@ -889,16 +887,16 @@ func (s *RolloutService) PreviewTaskRunRollback(ctx context.Context, request *v1
taskRun := taskRuns[0]
if taskRun.Status != api.TaskRunDone {
- return nil, status.Errorf(codes.InvalidArgument, "task run %v is not done", taskRun.Name)
+ return nil, status.Errorf(codes.InvalidArgument, "task run %v is not done", taskRun.ID)
}
if taskRun.ResultProto == nil {
- return nil, status.Errorf(codes.InvalidArgument, "task run %v has no result", taskRun.Name)
+ return nil, status.Errorf(codes.InvalidArgument, "task run %v has no result", taskRun.ID)
}
backupDetail := taskRun.ResultProto.PriorBackupDetail
if backupDetail == nil {
- return nil, status.Errorf(codes.InvalidArgument, "task run %v has no rollback", taskRun.Name)
+ return nil, status.Errorf(codes.InvalidArgument, "task run %v has no rollback", taskRun.ID)
}
task, err := s.store.GetTaskV2ByID(ctx, taskUID)
@@ -912,7 +910,7 @@ func (s *RolloutService) PreviewTaskRunRollback(ctx context.Context, request *v1
}
if taskRun.SheetUID == nil {
- return nil, status.Errorf(codes.InvalidArgument, "task run %v has no sheet", taskRun.Name)
+ return nil, status.Errorf(codes.InvalidArgument, "task run %v has no sheet", taskRun.ID)
}
statements, err := s.store.GetSheetStatementByID(ctx, *taskRun.SheetUID)
if err != nil {
@@ -997,9 +995,7 @@ func GetPipelineCreate(ctx context.Context, s *store.Store, sheetManager *sheet.
var stages []*store.StageMessage
for _, environmentID := range snapshotEnvironments {
stages = append(stages, &store.StageMessage{
- Name: environmentID, // TODO(d): is this needed?
- Environment: environmentID,
- DeploymentID: environmentID,
+ Environment: environmentID,
})
}
diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.go
index cec0c12e1c..67c81e9cc9 100644
--- a/backend/api/v1/rollout_service_converter.go
+++ b/backend/api/v1/rollout_service_converter.go
@@ -421,7 +421,6 @@ func convertToTaskRun(ctx context.Context, s *store.Store, stateCfg *state.State
Creator: common.FormatUserEmail(taskRun.Creator.Email),
CreateTime: timestamppb.New(taskRun.CreatedAt),
UpdateTime: timestamppb.New(taskRun.UpdatedAt),
- Title: taskRun.Name,
Status: convertToTaskRunStatus(taskRun.Status),
Detail: taskRun.ResultProto.Detail,
Changelog: taskRun.ResultProto.Changelog,
@@ -614,9 +613,8 @@ func convertToRollout(ctx context.Context, s *store.Store, project *store.Projec
taskIDToName := map[int]string{}
for _, stage := range rollout.Stages {
rolloutStage := &v1pb.Stage{
- Name: common.FormatStage(project.ResourceID, rollout.ID, stage.ID),
- Id: stage.DeploymentID,
- Title: stage.Name,
+ Name: common.FormatStage(project.ResourceID, rollout.ID, stage.ID),
+ Environment: common.FormatEnvironment(stage.Environment),
}
for _, task := range stage.TaskList {
rolloutTask, err := convertToTask(ctx, s, project, task)
@@ -645,8 +643,6 @@ func convertToTask(ctx context.Context, s *store.Store, project *store.ProjectMe
return convertToTaskFromDataUpdate(ctx, s, project, task)
case api.TaskDatabaseDataExport:
return convertToTaskFromDatabaseDataExport(ctx, s, project, task)
- case api.TaskGeneral:
- fallthrough
default:
return nil, errors.Errorf("task type %v is not supported", task.Type)
}
@@ -665,7 +661,6 @@ func convertToTaskFromDatabaseCreate(ctx context.Context, s *store.Store, projec
}
v1pbTask := &v1pb.Task{
Name: common.FormatTask(project.ResourceID, task.PipelineID, task.StageID, task.ID),
- Title: task.Name,
SpecId: payload.SpecId,
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
@@ -704,7 +699,6 @@ func convertToTaskFromSchemaBaseline(ctx context.Context, s *store.Store, projec
}
v1pbTask := &v1pb.Task{
Name: common.FormatTask(project.ResourceID, task.PipelineID, task.StageID, task.ID),
- Title: task.Name,
SpecId: payload.SpecId,
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
@@ -737,7 +731,6 @@ func convertToTaskFromSchemaUpdate(ctx context.Context, s *store.Store, project
v1pbTask := &v1pb.Task{
Name: common.FormatTask(project.ResourceID, task.PipelineID, task.StageID, task.ID),
- Title: task.Name,
SpecId: payload.SpecId,
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
@@ -771,7 +764,6 @@ func convertToTaskFromDataUpdate(ctx context.Context, s *store.Store, project *s
v1pbTask := &v1pb.Task{
Name: common.FormatTask(project.ResourceID, task.PipelineID, task.StageID, task.ID),
- Title: task.Name,
SpecId: payload.SpecId,
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
@@ -817,7 +809,6 @@ func convertToTaskFromDatabaseDataExport(ctx context.Context, s *store.Store, pr
}
v1pbTask := &v1pb.Task{
Name: common.FormatTask(project.ResourceID, task.PipelineID, task.StageID, task.ID),
- Title: task.Name,
SpecId: payload.SpecId,
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, false),
@@ -851,8 +842,6 @@ func convertToTaskStatus(latestTaskRunStatus api.TaskRunStatus, skipped bool) v1
func convertToTaskType(taskType api.TaskType) v1pb.Task_Type {
switch taskType {
- case api.TaskGeneral:
- return v1pb.Task_GENERAL
case api.TaskDatabaseCreate:
return v1pb.Task_DATABASE_CREATE
case api.TaskDatabaseSchemaBaseline:
diff --git a/backend/api/v1/rollout_service_task.go b/backend/api/v1/rollout_service_task.go
index 3239b4e8bc..02a2ecb3f7 100644
--- a/backend/api/v1/rollout_service_task.go
+++ b/backend/api/v1/rollout_service_task.go
@@ -246,7 +246,6 @@ func getTaskCreatesFromCreateDatabaseConfig(ctx context.Context, s *store.Store,
}
v := &store.TaskMessage{
- Name: fmt.Sprintf("Create database %v", payload.DatabaseName),
InstanceID: instance.ResourceID,
DatabaseName: &databaseName,
EnvironmentID: effectiveEnvironmentID,
@@ -327,7 +326,6 @@ func getTaskCreatesFromExportDataConfig(ctx context.Context, s *store.Store, spe
}
payloadString := string(bytes)
taskCreate := &store.TaskMessage{
- Name: fmt.Sprintf("Export data from database %q", database.DatabaseName),
InstanceID: database.InstanceID,
DatabaseName: &database.DatabaseName,
EnvironmentID: database.EffectiveEnvironmentID,
@@ -383,7 +381,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s
}
payloadString := string(bytes)
taskCreate := &store.TaskMessage{
- Name: fmt.Sprintf("Establish baseline for database %q", database.DatabaseName),
InstanceID: database.InstanceID,
DatabaseName: &database.DatabaseName,
EnvironmentID: database.EffectiveEnvironmentID,
@@ -415,7 +412,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s
}
payloadString := string(bytes)
taskCreate := &store.TaskMessage{
- Name: fmt.Sprintf("DDL(schema) for database %q", database.DatabaseName),
InstanceID: database.InstanceID,
DatabaseName: &database.DatabaseName,
EnvironmentID: database.EffectiveEnvironmentID,
@@ -447,7 +443,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s
}
payloadString := string(bytes)
taskCreate := &store.TaskMessage{
- Name: fmt.Sprintf("SDL for database %q", database.DatabaseName),
InstanceID: database.InstanceID,
DatabaseName: &database.DatabaseName,
EnvironmentID: database.EffectiveEnvironmentID,
@@ -482,7 +477,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s
return nil, errors.Wrapf(err, "failed to marshal database schema update ghost payload")
}
taskCreate := &store.TaskMessage{
- Name: fmt.Sprintf("DDL(gh-ost) for database %q", database.DatabaseName),
InstanceID: database.InstanceID,
DatabaseName: &database.DatabaseName,
EnvironmentID: database.EffectiveEnvironmentID,
@@ -519,7 +513,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, s
}
payloadString := string(bytes)
taskCreate := &store.TaskMessage{
- Name: fmt.Sprintf("DML(data) for database %q", database.DatabaseName),
InstanceID: database.InstanceID,
DatabaseName: &database.DatabaseName,
EnvironmentID: database.EffectiveEnvironmentID,
diff --git a/backend/legacyapi/task.go b/backend/legacyapi/task.go
index 90b7be0fdc..246bf663ac 100644
--- a/backend/legacyapi/task.go
+++ b/backend/legacyapi/task.go
@@ -30,8 +30,6 @@ const (
type TaskType string
const (
- // TaskGeneral is the task type for general tasks.
- TaskGeneral TaskType = "bb.task.general"
// TaskDatabaseCreate is the task type for creating databases.
TaskDatabaseCreate TaskType = "bb.task.database.create"
// TaskDatabaseSchemaBaseline is the task type for database schema baseline.
diff --git a/backend/migrator/migration/3.5/0012##stage_no_title.sql b/backend/migrator/migration/3.5/0012##stage_no_title.sql
new file mode 100644
index 0000000000..4e185e8baa
--- /dev/null
+++ b/backend/migrator/migration/3.5/0012##stage_no_title.sql
@@ -0,0 +1,4 @@
+ALTER TABLE stage DROP COLUMN deployment_id;
+ALTER TABLE stage DROP COLUMN name;
+ALTER TABLE task DROP COLUMN name;
+ALTER TABLE task_run DROP COLUMN name;
\ No newline at end of file
diff --git a/backend/migrator/migration/LATEST.sql b/backend/migrator/migration/LATEST.sql
index 3f1845ed7a..97a663bba2 100644
--- a/backend/migrator/migration/LATEST.sql
+++ b/backend/migrator/migration/LATEST.sql
@@ -202,9 +202,7 @@ ALTER SEQUENCE pipeline_id_seq RESTART WITH 101;
CREATE TABLE stage (
id serial PRIMARY KEY,
pipeline_id integer NOT NULL REFERENCES pipeline(id),
- environment text NOT NULL REFERENCES environment(resource_id),
- deployment_id text NOT NULL DEFAULT '',
- name text NOT NULL
+ environment text NOT NULL REFERENCES environment(resource_id)
);
CREATE INDEX idx_stage_pipeline_id ON stage(pipeline_id);
@@ -218,7 +216,6 @@ CREATE TABLE task (
stage_id integer NOT NULL REFERENCES stage(id),
instance text NOT NULL REFERENCES instance(resource_id),
db_name text,
- name text NOT NULL,
type text NOT NULL CHECK (type LIKE 'bb.task.%'),
payload jsonb NOT NULL DEFAULT '{}',
earliest_allowed_at timestamptz NULL
@@ -237,7 +234,6 @@ CREATE TABLE task_run (
task_id integer NOT NULL REFERENCES task(id),
sheet_id integer REFERENCES sheet(id),
attempt integer NOT NULL,
- name text NOT NULL,
status text NOT NULL CHECK (status IN ('PENDING', 'RUNNING', 'DONE', 'FAILED', 'CANCELED')),
started_at timestamptz NULL,
code integer NOT NULL DEFAULT 0,
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index aa57faa124..ba2d791de7 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -212,5 +212,5 @@ func TestMigrationCompatibility(t *testing.T) {
func TestGetCutoffVersion(t *testing.T) {
releaseVersion, err := getProdCutoffVersion()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("3.5.11"), releaseVersion)
+ require.Equal(t, semver.MustParse("3.5.12"), releaseVersion)
}
diff --git a/backend/runner/approval/runner.go b/backend/runner/approval/runner.go
index 795bcb8eef..a3071e3022 100644
--- a/backend/runner/approval/runner.go
+++ b/backend/runner/approval/runner.go
@@ -238,7 +238,7 @@ func (r *Runner) findApprovalTemplateForIssue(ctx context.Context, issue *store.
Project: webhook.NewProject(issue.Project),
IssueRolloutReady: &webhook.EventIssueRolloutReady{
RolloutPolicy: policy,
- StageName: stages[0].Name,
+ StageName: stages[0].Environment,
},
})
return nil
diff --git a/backend/runner/taskrun/default_executor.go b/backend/runner/taskrun/default_executor.go
deleted file mode 100644
index 9172cf0773..0000000000
--- a/backend/runner/taskrun/default_executor.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package taskrun
-
-import (
- "context"
- "fmt"
- "log/slog"
-
- "github.com/bytebase/bytebase/backend/store"
- storepb "github.com/bytebase/bytebase/proto/generated-go/store"
-)
-
-// NewDefaultExecutor creates a default task executor.
-func NewDefaultExecutor() Executor {
- return &DefaultExecutor{}
-}
-
-// DefaultExecutor is the default task executor.
-type DefaultExecutor struct {
-}
-
-// RunOnce will run the default task executor once.
-func (*DefaultExecutor) RunOnce(_ context.Context, _ context.Context, task *store.TaskMessage, _ int) (terminated bool, result *storepb.TaskRunResult, err error) {
- slog.Info("Run default task type", slog.String("task", task.Name))
-
- return true, &storepb.TaskRunResult{Detail: fmt.Sprintf("No-op task %s", task.Name)}, nil
-}
diff --git a/backend/runner/taskrun/executor.go b/backend/runner/taskrun/executor.go
index 994aa7d22a..0b92eb1c48 100644
--- a/backend/runner/taskrun/executor.go
+++ b/backend/runner/taskrun/executor.go
@@ -535,7 +535,6 @@ func convertTaskType(t api.TaskType) storepb.ChangelogPayload_Type {
case api.TaskDatabaseSchemaUpdateGhost:
return storepb.ChangelogPayload_MIGRATE_GHOST
- case api.TaskGeneral:
case api.TaskDatabaseCreate:
case api.TaskDatabaseDataExport:
}
diff --git a/backend/runner/taskrun/schedulerv2.go b/backend/runner/taskrun/schedulerv2.go
index 3c325045d5..3736326fd7 100644
--- a/backend/runner/taskrun/schedulerv2.go
+++ b/backend/runner/taskrun/schedulerv2.go
@@ -220,7 +220,6 @@ func (s *SchedulerV2) scheduleAutoRolloutTask(ctx context.Context, rolloutPolicy
CreatorID: api.SystemBotID,
TaskUID: task.ID,
SheetUID: sheetUID,
- Name: fmt.Sprintf("%s %d", task.Name, time.Now().Unix()),
}
if err := s.store.CreatePendingTaskRuns(ctx, create); err != nil {
@@ -416,7 +415,6 @@ func (s *SchedulerV2) scheduleRunningTaskRuns(ctx context.Context) error {
if !ok {
slog.Error("Skip running task with unknown type",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
slog.String("type", string(task.Type)),
)
continue
@@ -481,7 +479,6 @@ func (s *SchedulerV2) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRun
if !done && err != nil {
slog.Debug("Encountered transient error running task, will retry",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
slog.String("type", string(task.Type)),
log.BBError(err),
)
@@ -491,7 +488,6 @@ func (s *SchedulerV2) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRun
if done && err != nil && errors.Is(err, context.Canceled) {
slog.Warn("task run is canceled",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
slog.String("type", string(task.Type)),
log.BBError(err),
)
@@ -521,7 +517,6 @@ func (s *SchedulerV2) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRun
if _, err := s.store.UpdateTaskRunStatus(ctx, taskRunStatusPatch); err != nil {
slog.Error("Failed to mark task as CANCELED",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
log.BBError(err),
)
return
@@ -532,7 +527,6 @@ func (s *SchedulerV2) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRun
if done && err != nil {
slog.Warn("task run failed",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
slog.String("type", string(task.Type)),
log.BBError(err),
)
@@ -571,7 +565,6 @@ func (s *SchedulerV2) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRun
if _, err := s.store.UpdateTaskRunStatus(ctx, taskRunStatusPatch); err != nil {
slog.Error("Failed to mark task as FAILED",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
log.BBError(err),
)
return
@@ -619,7 +612,6 @@ func (s *SchedulerV2) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRun
if _, err := s.store.UpdateTaskRunStatus(ctx, taskRunStatusPatch); err != nil {
slog.Error("Failed to mark task as DONE",
slog.Int("id", task.ID),
- slog.String("name", task.Name),
log.BBError(err),
)
return
@@ -750,7 +742,7 @@ func (s *SchedulerV2) ListenTaskSkippedOrDone(ctx context.Context) {
Issue: webhook.NewIssue(issue),
Project: webhook.NewProject(issue.Project),
StageStatusUpdate: &webhook.EventStageStatusUpdate{
- StageTitle: taskStage.Name,
+ StageTitle: taskStage.Environment,
StageUID: taskStage.ID,
},
})
@@ -775,7 +767,7 @@ func (s *SchedulerV2) ListenTaskSkippedOrDone(ctx context.Context) {
Project: webhook.NewProject(issue.Project),
IssueRolloutReady: &webhook.EventIssueRolloutReady{
RolloutPolicy: policy,
- StageName: nextStage.Name,
+ StageName: nextStage.Environment,
},
})
return nil
@@ -847,6 +839,10 @@ func (s *SchedulerV2) createActivityForTaskRunStatusUpdate(ctx context.Context,
if issue == nil {
return nil
}
+ taskRunTitle := ""
+ if task.DatabaseName != nil {
+ taskRunTitle = *task.DatabaseName
+ }
s.webhookManager.CreateEvent(ctx, &webhook.Event{
Actor: s.store.GetSystemBotUser(ctx),
Type: webhook.EventTypeTaskRunStatusUpdate,
@@ -854,7 +850,7 @@ func (s *SchedulerV2) createActivityForTaskRunStatusUpdate(ctx context.Context,
Issue: webhook.NewIssue(issue),
Project: webhook.NewProject(issue.Project),
TaskRunStatusUpdate: &webhook.EventTaskRunStatusUpdate{
- Title: task.Name,
+ Title: taskRunTitle,
Status: newStatus.String(),
Detail: errDetail,
},
diff --git a/backend/server/server.go b/backend/server/server.go
index de53a686f1..c6467035c8 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -278,7 +278,6 @@ func NewServer(ctx context.Context, profile *config.Profile) (*Server, error) {
s.approvalRunner = approval.NewRunner(storeInstance, s.sheetManager, s.dbFactory, s.stateCfg, s.webhookManager, s.licenseService)
s.taskSchedulerV2 = taskrun.NewSchedulerV2(storeInstance, s.stateCfg, s.webhookManager, profile, s.licenseService)
- s.taskSchedulerV2.Register(api.TaskGeneral, taskrun.NewDefaultExecutor())
s.taskSchedulerV2.Register(api.TaskDatabaseCreate, taskrun.NewDatabaseCreateExecutor(storeInstance, s.dbFactory, s.schemaSyncer, s.stateCfg, profile))
s.taskSchedulerV2.Register(api.TaskDatabaseSchemaBaseline, taskrun.NewSchemaBaselineExecutor(storeInstance, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))
s.taskSchedulerV2.Register(api.TaskDatabaseSchemaUpdate, taskrun.NewSchemaUpdateExecutor(storeInstance, s.dbFactory, s.licenseService, s.stateCfg, s.schemaSyncer, profile))
diff --git a/backend/store/pipeline.go b/backend/store/pipeline.go
index c26c7fce6b..a881a844c4 100644
--- a/backend/store/pipeline.go
+++ b/backend/store/pipeline.go
@@ -69,12 +69,12 @@ func (s *Store) CreatePipelineAIO(ctx context.Context, planUID int64, pipeline *
}
oldCreatedStages := map[string]*StageMessage{}
for _, stage := range stages {
- oldCreatedStages[stage.DeploymentID] = stage
+ oldCreatedStages[stage.Environment] = stage
}
var stagesToCreate []*StageMessage
for _, stage := range pipeline.Stages {
- if createdStage, ok := oldCreatedStages[stage.DeploymentID]; ok {
+ if createdStage, ok := oldCreatedStages[stage.Environment]; ok {
// The stage was created, but we could have tasks to create.
tasks, err := s.listTasksTx(ctx, tx, &TaskFind{
PipelineID: &createdPipelineUID,
diff --git a/backend/store/stage.go b/backend/store/stage.go
index 4653421804..1cc3214735 100644
--- a/backend/store/stage.go
+++ b/backend/store/stage.go
@@ -9,14 +9,10 @@ import (
// StageMessage is the message for stage.
type StageMessage struct {
- Name string
Environment string
PipelineID int
TaskList []*TaskMessage
- // empty for legacy stages
- DeploymentID string
-
// Output only.
ID int
Active bool
@@ -27,28 +23,20 @@ func (*Store) createStages(ctx context.Context, tx *Tx, stagesCreate []*StageMes
return nil, nil
}
var environments []string
- var names []string
- var deploymentIDs []string
for _, create := range stagesCreate {
environments = append(environments, create.Environment)
- names = append(names, create.Name)
- deploymentIDs = append(deploymentIDs, create.DeploymentID)
}
query := `
INSERT INTO stage (
pipeline_id,
- environment,
- name,
- deployment_id
+ environment
) SELECT
$1,
- unnest(CAST($2 AS TEXT[])) AS environment,
- unnest(CAST($3 AS TEXT[])),
- unnest(CAST($4 AS TEXT[])) AS deployment_id
+ unnest(CAST($2 AS TEXT[])) AS environment
RETURNING id
`
- rows, err := tx.QueryContext(ctx, query, pipelineUID, environments, names, deploymentIDs)
+ rows, err := tx.QueryContext(ctx, query, pipelineUID, environments)
if err != nil {
return nil, err
}
@@ -77,8 +65,6 @@ func (*Store) listStages(ctx context.Context, tx *Tx, pipelineUID int) ([]*Stage
stage.id,
stage.pipeline_id,
stage.environment,
- stage.deployment_id,
- stage.name,
(
SELECT EXISTS (
SELECT 1 FROM task
@@ -117,8 +103,6 @@ func (*Store) listStages(ctx context.Context, tx *Tx, pipelineUID int) ([]*Stage
&stage.ID,
&stage.PipelineID,
&stage.Environment,
- &stage.DeploymentID,
- &stage.Name,
&stage.Active,
); err != nil {
return nil, errors.Wrapf(err, "failed to scan")
diff --git a/backend/store/task.go b/backend/store/task.go
index 9a9a6955ac..ad11259c77 100644
--- a/backend/store/task.go
+++ b/backend/store/task.go
@@ -30,7 +30,6 @@ type TaskMessage struct {
TaskRunRawList []*TaskRunMessage
// Domain specific fields
- Name string
Type api.TaskType
Payload string
EarliestAllowedAt *time.Time
@@ -151,7 +150,6 @@ func (*Store) createTasks(ctx context.Context, tx *Tx, creates ...*TaskMessage)
stage_id,
instance,
db_name,
- name,
type,
payload,
earliest_allowed_at
@@ -161,17 +159,15 @@ func (*Store) createTasks(ctx context.Context, tx *Tx, creates ...*TaskMessage)
unnest(CAST($3 AS TEXT[])),
unnest(CAST($4 AS TEXT[])),
unnest(CAST($5 AS TEXT[])),
- unnest(CAST($6 AS TEXT[])),
- unnest(CAST($7 AS JSONB[])),
- unnest(CAST($8 AS TIMESTAMPTZ[]))
- RETURNING id, pipeline_id, stage_id, instance, db_name, name, type, payload, earliest_allowed_at`
+ unnest(CAST($6 AS JSONB[])),
+ unnest(CAST($7 AS TIMESTAMPTZ[]))
+ RETURNING id, pipeline_id, stage_id, instance, db_name, type, payload, earliest_allowed_at`
var (
pipelineIDs []int
stageIDs []int
instances []string
databases []*string
- names []string
types []string
payloads []string
earliestAllowedAts []time.Time
@@ -184,7 +180,6 @@ func (*Store) createTasks(ctx context.Context, tx *Tx, creates ...*TaskMessage)
stageIDs = append(stageIDs, create.StageID)
instances = append(instances, create.InstanceID)
databases = append(databases, create.DatabaseName)
- names = append(names, create.Name)
types = append(types, string(create.Type))
payloads = append(payloads, create.Payload)
if create.EarliestAllowedAt == nil {
@@ -200,7 +195,6 @@ func (*Store) createTasks(ctx context.Context, tx *Tx, creates ...*TaskMessage)
stageIDs,
instances,
databases,
- names,
types,
payloads,
earliestAllowedAts,
@@ -218,7 +212,6 @@ func (*Store) createTasks(ctx context.Context, tx *Tx, creates ...*TaskMessage)
&task.StageID,
&task.InstanceID,
&task.DatabaseName,
- &task.Name,
&task.Type,
&task.Payload,
&earliestAllowedAt,
@@ -281,7 +274,6 @@ func (*Store) listTasksTx(ctx context.Context, tx *Tx, find *TaskFind) ([]*TaskM
task.stage_id,
task.instance,
task.db_name,
- task.name,
latest_task_run.status AS latest_task_run_status,
task.type,
task.payload,
@@ -317,7 +309,6 @@ func (*Store) listTasksTx(ctx context.Context, tx *Tx, find *TaskFind) ([]*TaskM
&task.StageID,
&task.InstanceID,
&task.DatabaseName,
- &task.Name,
&task.LatestTaskRunStatus,
&task.Type,
&task.Payload,
@@ -416,7 +407,7 @@ func (s *Store) UpdateTaskV2(ctx context.Context, patch *TaskPatch) (*TaskMessag
UPDATE task
SET `+strings.Join(set, ", ")+`
WHERE id = $%d
- RETURNING id, pipeline_id, stage_id, instance, db_name, name, type, payload, earliest_allowed_at
+ RETURNING id, pipeline_id, stage_id, instance, db_name, type, payload, earliest_allowed_at
`, len(args)),
args...,
).Scan(
@@ -425,7 +416,6 @@ func (s *Store) UpdateTaskV2(ctx context.Context, patch *TaskPatch) (*TaskMessag
&task.StageID,
&task.InstanceID,
&task.DatabaseName,
- &task.Name,
&task.Type,
&task.Payload,
&earliestAllowedAt,
diff --git a/backend/store/task_run.go b/backend/store/task_run.go
index c2b9c8e4eb..75da88be1f 100644
--- a/backend/store/task_run.go
+++ b/backend/store/task_run.go
@@ -20,7 +20,6 @@ type TaskRunMessage struct {
TaskUID int
StageUID int
PipelineUID int
- Name string
Status api.TaskRunStatus
Code common.Code
Result string
@@ -105,7 +104,6 @@ func (s *Store) ListTaskRunsV2(ctx context.Context, find *FindTaskRunMessage) ([
task_run.created_at,
task_run.updated_at,
task_run.task_id,
- task_run.name,
task_run.status,
task_run.started_at,
task_run.code,
@@ -137,7 +135,6 @@ func (s *Store) ListTaskRunsV2(ctx context.Context, find *FindTaskRunMessage) ([
&taskRun.CreatedAt,
&taskRun.UpdatedAt,
&taskRun.TaskUID,
- &taskRun.Name,
&taskRun.Status,
&startedAt,
&taskRun.Code,
@@ -325,16 +322,14 @@ func (*Store) createTaskRunImpl(ctx context.Context, tx *Tx, create *TaskRunMess
task_id,
sheet_id,
attempt,
- name,
status
- ) VALUES ($1, $2, $3, $4, $5, $6)
+ ) VALUES ($1, $2, $3, $4, $5)
`
if _, err := tx.ExecContext(ctx, query,
creatorID,
create.TaskUID,
create.SheetUID,
attempt,
- create.Name,
status,
); err != nil {
return err
@@ -368,7 +363,7 @@ func (*Store) patchTaskRunStatusImpl(ctx context.Context, tx *Tx, patch *TaskRun
UPDATE task_run
SET `+strings.Join(set, ", ")+`
WHERE `+strings.Join(where, " AND ")+`
- RETURNING id, creator_id, created_at, updated_at, task_id, name, status, code, result
+ RETURNING id, creator_id, created_at, updated_at, task_id, status, code, result
`,
args...,
).Scan(
@@ -377,7 +372,6 @@ func (*Store) patchTaskRunStatusImpl(ctx context.Context, tx *Tx, patch *TaskRun
&taskRun.CreatedAt,
&taskRun.UpdatedAt,
&taskRun.TaskUID,
- &taskRun.Name,
&taskRun.Status,
&taskRun.Code,
&taskRun.Result,
@@ -438,7 +432,6 @@ func (*Store) findTaskRunImpl(ctx context.Context, tx *Tx, find *TaskRunFind) ([
task_run.created_at,
task_run.updated_at,
task_run.task_id,
- task_run.name,
task_run.status,
task_run.code,
task_run.result,
@@ -464,7 +457,6 @@ func (*Store) findTaskRunImpl(ctx context.Context, tx *Tx, find *TaskRunFind) ([
&taskRun.CreatedAt,
&taskRun.UpdatedAt,
&taskRun.TaskUID,
- &taskRun.Name,
&taskRun.Status,
&taskRun.Code,
&taskRun.Result,
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/StageName.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/StageName.vue
index 622e8f05fa..0334fabaa6 100644
--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/StageName.vue
+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/StageName.vue
@@ -1,12 +1,13 @@
<template>
<span class="font-medium text-main">
- {{ stage.title }}
+ {{ extractEnvironmentResourceName(stage.environment) }}
</span>
</template>
<script lang="ts" setup>
import type { ComposedIssue } from "@/types";
import type { Stage } from "@/types/proto/v1/rollout_service";
+import { extractEnvironmentResourceName } from "@/utils";
defineProps<{
issue: ComposedIssue;
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/TaskName.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/TaskName.vue
index 7717f2e1b0..1a740857ef 100644
--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/TaskName.vue
+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/TaskName.vue
@@ -5,7 +5,7 @@
class="font-medium text-main hover:border-b hover:border-b-main"
@click="toTop"
>
- <span>{{ task.title }}</span>
+ <span>{{ task.target }}</span>
<template v-if="schemaVersion">
<span class="ml-1 text-control-placeholder">(</span>
<span class="lowercase text-control-placeholder">{{
diff --git a/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue b/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue
index 5622aa739d..7d023cd269 100644
--- a/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue
+++ b/frontend/src/components/IssueV1/components/Panel/TaskRolloutActionPanel.vue
@@ -28,7 +28,7 @@
{{ $t("common.stage") }}
</label>
<div class="textinfolabel break-all">
- {{ stage.title }}
+ {{ extractEnvironmentResourceName(stage.environment) }}
</div>
</div>
</template>
@@ -180,6 +180,7 @@ import { Task_Status, TaskRun_Status } from "@/types/proto/v1/rollout_service";
import { ErrorList } from "../common";
import CommonDrawer from "./CommonDrawer.vue";
import RolloutTaskDatabaseName from "./RolloutTaskDatabaseName.vue";
+import { extractEnvironmentResourceName } from "@/utils";
type LocalState = {
loading: boolean;
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
index 9a204bba1d..494da43f5a 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostFlagsPanel.vue
@@ -15,15 +15,7 @@
{{ $t("common.stage") }}
</label>
<div class="textinfolabel break-all">
- {{ stage.title }}
- </div>
- </div>
- <div class="contents">
- <label class="font-medium text-control">
- {{ $t("common.task") }}
- </label>
- <div class="textinfolabel break-all">
- {{ task.title }}
+ {{ extractEnvironmentResourceName(stage.environment) }}
</div>
</div>
<div class="contents">
@@ -92,7 +84,7 @@ import { planServiceClient } from "@/grpcweb";
import { pushNotification, useDBGroupStore } from "@/store";
import type { Plan_Spec } from "@/types/proto/v1/plan_service";
import { Task_Type } from "@/types/proto/v1/rollout_service";
-import { extractDatabaseGroupName } from "@/utils";
+import { extractDatabaseGroupName, extractEnvironmentResourceName } from "@/utils";
import FlagsForm from "./FlagsForm";
import { allowChangeTaskGhostFlags, useIssueGhostContext } from "./common";
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue
index 23c4bc38ce..80fc0f0805 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue
@@ -171,7 +171,7 @@ const toggleChecked = async (on: boolean) => {
try {
await useIssueCommentStore().createIssueComment({
issueName: issue.value.name,
- comment: `${action} online migration for task [${selectedTask.value.title}].`,
+ comment: `${action} online migration for task [${selectedTask.value.target}].`,
});
} catch {
// fail to comment won't be too bad.
diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue
index 6bd13bcebe..2baa5a1c7f 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/TaskRollbackButton.vue
@@ -66,9 +66,9 @@ const createRestoreIssue = async () => {
useStorageStore().put(sqlStorageKey, statement);
const query: Record<string, any> = {
template: "bb.issue.database.data.update",
- name: `Rollback ${selectedTask.value.title} in issue#${extractIssueUID(issue.value.name)}`,
+ name: `Rollback ${selectedTask.value.target} in issue#${extractIssueUID(issue.value.name)}`,
databaseList: selectedTask.value.target,
- description: `This issue is created to rollback the data of ${selectedTask.value.title} in issue #${extractIssueUID(issue.value.name)}`,
+ description: `This issue is created to rollback the data of ${selectedTask.value.target} in issue #${extractIssueUID(issue.value.name)}`,
sqlStorageKey,
};
router.push({
diff --git a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts
index 5f08727c84..6a14ac1edb 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts
+++ b/frontend/src/components/IssueV1/components/Sidebar/PreBackupSection/common.ts
@@ -159,7 +159,7 @@ export const usePreBackupContext = () => {
try {
await useIssueCommentStore().createIssueComment({
issueName: issue.value.name,
- comment: `${action} prior backup for task [${selectedTask.value.title}].`,
+ comment: `${action} prior backup for task [${selectedTask.value.target}].`,
});
} catch {
// fail to comment won't be too bad
diff --git a/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/AffectedRowsView.vue b/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/AffectedRowsView.vue
index cec250b9b3..17ed84f154 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/AffectedRowsView.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/AffectedRowsView.vue
@@ -24,7 +24,7 @@
@click="onClickTask(task)"
>
<span class="group-hover:underline truncate">
- {{ task.title }}
+ {{ task.target }}
</span>
<span
class="shrink-0"
diff --git a/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/FailedTasksView.vue b/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/FailedTasksView.vue
index b51cce867e..e1088dc4fa 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/FailedTasksView.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/TaskCheckSummarySection/FailedTasksView.vue
@@ -19,7 +19,7 @@
@click="onClickTask(task)"
>
<p class="group-hover:underline truncate">
- {{ task.title }}
+ {{ task.target }}
</p>
<p class="text-xs leading-4 text-error line-clamp-2">
{{ failedMessageOfTask(task.name) }}
diff --git a/frontend/src/components/IssueV1/components/StageSection/StageCard.vue b/frontend/src/components/IssueV1/components/StageSection/StageCard.vue
index 993bed674d..8df4325fc5 100644
--- a/frontend/src/components/IssueV1/components/StageSection/StageCard.vue
+++ b/frontend/src/components/IssueV1/components/StageSection/StageCard.vue
@@ -79,6 +79,7 @@ import { task_StatusToJSON } from "@/types/proto/v1/rollout_service";
import { activeTaskInStageV1 } from "@/utils";
import TaskStatusIcon from "../TaskStatusIcon.vue";
import StageSummary from "./StageSummary.vue";
+import { extractEnvironmentResourceName } from "@/utils";
const props = defineProps<{
stage: Stage;
@@ -140,8 +141,8 @@ const stageClass = computed(() => {
const stageTitle = computed(() => {
const { stage } = props;
return !isCreating.value && isActiveStage.value
- ? t("issue.stage-select.current", { name: stage.title })
- : stage.title;
+ ? t("issue.stage-select.current", { name: extractEnvironmentResourceName(stage.environment) })
+ : extractEnvironmentResourceName(stage.environment);
});
const planCheckStatus = computed((): PlanCheckRun_Result_Status => {
diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
index 1d9edee2d3..62615b8f94 100644
--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
@@ -127,7 +127,7 @@ const taskClass = computed(() => {
});
const taskTitle = computed(() => {
- return props.task.title;
+ return props.task.target;
});
const database = computed(() => databaseForTask(issue.value, props.task));
diff --git a/frontend/src/components/Rollout/RolloutDetail/Panels/Overview/StageCard.vue b/frontend/src/components/Rollout/RolloutDetail/Panels/Overview/StageCard.vue
index 1a30b69294..5f2af05cf3 100644
--- a/frontend/src/components/Rollout/RolloutDetail/Panels/Overview/StageCard.vue
+++ b/frontend/src/components/Rollout/RolloutDetail/Panels/Overview/StageCard.vue
@@ -9,7 +9,7 @@
class="w-full flex flex-row justify-between items-center gap-2 px-2 pt-2 pb-1"
>
<p class="textlabel">
- {{ stage.title }}
+ {{ extractEnvironmentResourceName(stage.environment) }}
<NTag v-if="!isCreated" round size="tiny">Not created</NTag>
</p>
<div>
@@ -100,6 +100,7 @@ import { extractSchemaVersionFromTask } from "@/utils";
import { useRolloutDetailContext } from "../../context";
import { databaseForTask } from "../../utils";
import TaskStatus from "./../kits/TaskStatus.vue";
+import { extractEnvironmentResourceName } from "@/utils";
const props = defineProps<{
stage: Stage;
diff --git a/frontend/src/components/Rollout/RolloutDetail/Panels/TaskAdvancedSearch/TaskAdvancedSearch.vue b/frontend/src/components/Rollout/RolloutDetail/Panels/TaskAdvancedSearch/TaskAdvancedSearch.vue
index 131efbfa1a..1af45b38f7 100644
--- a/frontend/src/components/Rollout/RolloutDetail/Panels/TaskAdvancedSearch/TaskAdvancedSearch.vue
+++ b/frontend/src/components/Rollout/RolloutDetail/Panels/TaskAdvancedSearch/TaskAdvancedSearch.vue
@@ -54,8 +54,8 @@ const scopeOptions = computed((): ScopeOption[] => {
options: rollout.value.stages.map((stage) => {
return {
value: stage.name,
- keywords: [stage.name, stage.title],
- render: () => stage.title,
+ keywords: [stage.name, stage.environment],
+ render: () => stage.environment,
};
}),
},
diff --git a/frontend/src/components/Rollout/RolloutDetail/TaskDataTable/TaskDataTable.vue b/frontend/src/components/Rollout/RolloutDetail/TaskDataTable/TaskDataTable.vue
index 77e544506a..b14d0bb2d8 100644
--- a/frontend/src/components/Rollout/RolloutDetail/TaskDataTable/TaskDataTable.vue
+++ b/frontend/src/components/Rollout/RolloutDetail/TaskDataTable/TaskDataTable.vue
@@ -24,6 +24,7 @@ import type { Task } from "@/types/proto/v1/rollout_service";
import { extractSchemaVersionFromTask } from "@/utils";
import TaskStatus from "../Panels/kits/TaskStatus.vue";
import { databaseForTask } from "../utils";
+import { extractEnvironmentResourceName } from "@/utils";
const props = withDefaults(
defineProps<{
@@ -53,10 +54,13 @@ const columnList = computed(
key: "stage",
title: t("common.stage"),
width: 96,
- render: (task) =>
- stages.value.find((stage) =>
- stage.tasks.find((t) => t.name === task.name)
- )?.title ?? "-",
+ render: (task) => {
+ const stage = stages.value.find(stage => stage.tasks.find((t) => t.name === task.name));
+ if (stage) {
+ return extractEnvironmentResourceName(stage.environment);
+ }
+ return "-";
+ },
},
{
key: "type",
diff --git a/frontend/src/components/Rollout/RolloutDetail/TaskDetail/TaskDetail.vue b/frontend/src/components/Rollout/RolloutDetail/TaskDetail/TaskDetail.vue
index 5fc0e9d6a3..cd879717d7 100644
--- a/frontend/src/components/Rollout/RolloutDetail/TaskDetail/TaskDetail.vue
+++ b/frontend/src/components/Rollout/RolloutDetail/TaskDetail/TaskDetail.vue
@@ -4,14 +4,11 @@
{{ rollout.title }}
</NBreadcrumbItem>
<NBreadcrumbItem :clickable="false">
- {{ stage.title }}
+ {{ extractEnvironmentResourceName(stage.environment) }}
</NBreadcrumbItem>
<NBreadcrumbItem @click="router.push(`/${rollout.name}#tasks`)">
{{ $t("common.tasks") }}
</NBreadcrumbItem>
- <NBreadcrumbItem :clickable="false">
- {{ task.title }}
- </NBreadcrumbItem>
</NBreadcrumb>
<div v-if="task" class="w-full flex flex-col">
<BasicInfo />
@@ -43,6 +40,7 @@ import BasicInfo from "./BasicInfo.vue";
import Overview from "./Panels/Overview.vue";
import TaskRunLogs from "./Panels/TaskRunLogs.vue";
import { provideTaskDetailContext } from "./context";
+import { extractEnvironmentResourceName } from "@/utils";
const props = defineProps<{
stageId: string;
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index aecac19400..fcc45ba6cc 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -228,14 +228,13 @@ export interface Stage {
* Empty for legacy stages.
*/
id: string;
- title: string;
+ environment: string;
tasks: Task[];
}
export interface Task {
/** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */
name: string;
- title: string;
/**
* A UUID4 string that uniquely identifies the Spec.
* Could be empty if the rollout of the task does not have an associating plan.
@@ -518,7 +517,6 @@ export interface TaskRun {
creator: string;
createTime: Timestamp | undefined;
updateTime: Timestamp | undefined;
- title: string;
status: TaskRun_Status;
/** Below are the results of a task run. */
detail: string;
@@ -2295,7 +2293,7 @@ export const Rollout: MessageFns<Rollout> = {
};
function createBaseStage(): Stage {
- return { name: "", id: "", title: "", tasks: [] };
+ return { name: "", id: "", environment: "", tasks: [] };
}
export const Stage: MessageFns<Stage> = {
@@ -2306,8 +2304,8 @@ export const Stage: MessageFns<Stage> = {
if (message.id !== "") {
writer.uint32(26).string(message.id);
}
- if (message.title !== "") {
- writer.uint32(34).string(message.title);
+ if (message.environment !== "") {
+ writer.uint32(34).string(message.environment);
}
for (const v of message.tasks) {
Task.encode(v!, writer.uint32(42).fork()).join();
@@ -2343,7 +2341,7 @@ export const Stage: MessageFns<Stage> = {
break;
}
- message.title = reader.string();
+ message.environment = reader.string();
continue;
}
case 5: {
@@ -2367,7 +2365,7 @@ export const Stage: MessageFns<Stage> = {
return {
name: isSet(object.name) ? globalThis.String(object.name) : "",
id: isSet(object.id) ? globalThis.String(object.id) : "",
- title: isSet(object.title) ? globalThis.String(object.title) : "",
+ environment: isSet(object.environment) ? globalThis.String(object.environment) : "",
tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => Task.fromJSON(e)) : [],
};
},
@@ -2380,8 +2378,8 @@ export const Stage: MessageFns<Stage> = {
if (message.id !== "") {
obj.id = message.id;
}
- if (message.title !== "") {
- obj.title = message.title;
+ if (message.environment !== "") {
+ obj.environment = message.environment;
}
if (message.tasks?.length) {
obj.tasks = message.tasks.map((e) => Task.toJSON(e));
@@ -2396,7 +2394,7 @@ export const Stage: MessageFns<Stage> = {
const message = createBaseStage();
message.name = object.name ?? "";
message.id = object.id ?? "";
- message.title = object.title ?? "";
+ message.environment = object.environment ?? "";
message.tasks = object.tasks?.map((e) => Task.fromPartial(e)) || [];
return message;
},
@@ -2405,7 +2403,6 @@ export const Stage: MessageFns<Stage> = {
function createBaseTask(): Task {
return {
name: "",
- title: "",
specId: "",
status: Task_Status.STATUS_UNSPECIFIED,
skippedReason: "",
@@ -2424,9 +2421,6 @@ export const Task: MessageFns<Task> = {
if (message.name !== "") {
writer.uint32(10).string(message.name);
}
- if (message.title !== "") {
- writer.uint32(26).string(message.title);
- }
if (message.specId !== "") {
writer.uint32(34).string(message.specId);
}
@@ -2475,14 +2469,6 @@ export const Task: MessageFns<Task> = {
message.name = reader.string();
continue;
}
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.title = reader.string();
- continue;
- }
case 4: {
if (tag !== 34) {
break;
@@ -2575,7 +2561,6 @@ export const Task: MessageFns<Task> = {
fromJSON(object: any): Task {
return {
name: isSet(object.name) ? globalThis.String(object.name) : "",
- title: isSet(object.title) ? globalThis.String(object.title) : "",
specId: isSet(object.specId) ? globalThis.String(object.specId) : "",
status: isSet(object.status) ? task_StatusFromJSON(object.status) : Task_Status.STATUS_UNSPECIFIED,
skippedReason: isSet(object.skippedReason) ? globalThis.String(object.skippedReason) : "",
@@ -2602,9 +2587,6 @@ export const Task: MessageFns<Task> = {
if (message.name !== "") {
obj.name = message.name;
}
- if (message.title !== "") {
- obj.title = message.title;
- }
if (message.specId !== "") {
obj.specId = message.specId;
}
@@ -2644,7 +2626,6 @@ export const Task: MessageFns<Task> = {
fromPartial(object: DeepPartial<Task>): Task {
const message = createBaseTask();
message.name = object.name ?? "";
- message.title = object.title ?? "";
message.specId = object.specId ?? "";
message.status = object.status ?? Task_Status.STATUS_UNSPECIFIED;
message.skippedReason = object.skippedReason ?? "";
@@ -3150,7 +3131,6 @@ function createBaseTaskRun(): TaskRun {
creator: "",
createTime: undefined,
updateTime: undefined,
- title: "",
status: TaskRun_Status.STATUS_UNSPECIFIED,
detail: "",
changelog: "",
@@ -3177,9 +3157,6 @@ export const TaskRun: MessageFns<TaskRun> = {
if (message.updateTime !== undefined) {
Timestamp.encode(message.updateTime, writer.uint32(50).fork()).join();
}
- if (message.title !== "") {
- writer.uint32(58).string(message.title);
- }
if (message.status !== TaskRun_Status.STATUS_UNSPECIFIED) {
writer.uint32(64).int32(taskRun_StatusToNumber(message.status));
}
@@ -3249,14 +3226,6 @@ export const TaskRun: MessageFns<TaskRun> = {
message.updateTime = Timestamp.decode(reader, reader.uint32());
continue;
}
- case 7: {
- if (tag !== 58) {
- break;
- }
-
- message.title = reader.string();
- continue;
- }
case 8: {
if (tag !== 64) {
break;
@@ -3344,7 +3313,6 @@ export const TaskRun: MessageFns<TaskRun> = {
creator: isSet(object.creator) ? globalThis.String(object.creator) : "",
createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,
updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
- title: isSet(object.title) ? globalThis.String(object.title) : "",
status: isSet(object.status) ? taskRun_StatusFromJSON(object.status) : TaskRun_Status.STATUS_UNSPECIFIED,
detail: isSet(object.detail) ? globalThis.String(object.detail) : "",
changelog: isSet(object.changelog) ? globalThis.String(object.changelog) : "",
@@ -3375,9 +3343,6 @@ export const TaskRun: MessageFns<TaskRun> = {
if (message.updateTime !== undefined) {
obj.updateTime = fromTimestamp(message.updateTime).toISOString();
}
- if (message.title !== "") {
- obj.title = message.title;
- }
if (message.status !== TaskRun_Status.STATUS_UNSPECIFIED) {
obj.status = taskRun_StatusToJSON(message.status);
}
@@ -3421,7 +3386,6 @@ export const TaskRun: MessageFns<TaskRun> = {
message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)
? Timestamp.fromPartial(object.updateTime)
: undefined;
- message.title = object.title ?? "";
message.status = object.status ?? TaskRun_Status.STATUS_UNSPECIFIED;
message.detail = object.detail ?? "";
message.changelog = object.changelog ?? "";
diff --git a/frontend/src/utils/v1/issue/rollout.ts b/frontend/src/utils/v1/issue/rollout.ts
index 944822457a..d007501656 100644
--- a/frontend/src/utils/v1/issue/rollout.ts
+++ b/frontend/src/utils/v1/issue/rollout.ts
@@ -61,11 +61,11 @@ export const extractTaskRunUID = (name: string) => {
};
export const stageV1Slug = (stage: Stage): string => {
- return [slug(stage.title), extractStageUID(stage.name)].join("-");
+ return [slug(stage.environment), extractStageUID(stage.name)].join("-");
};
export const taskV1Slug = (task: Task): string => {
- return [slug(task.title), extractTaskUID(task.name)].join("-");
+ return extractTaskUID(task.name)
};
export const activeTaskInTaskList = (tasks: Task[]): Task => {
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index a1d6e5eda5..08129fc6a9 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -13041,7 +13041,7 @@ components:
The id comes from the deployment config.
Format: UUID
Empty for legacy stages.
- title:
+ environment:
type: string
tasks:
type: array
@@ -13373,8 +13373,6 @@ components:
name:
type: string
description: 'Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}'
- title:
- type: string
specId:
type: string
description: |-
@@ -13447,8 +13445,6 @@ components:
readOnly: true
type: string
format: date-time
- title:
- type: string
status:
enum:
- STATUS_UNSPECIFIED
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 5535840921..4ce4d2ab85 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -10268,7 +10268,7 @@ When paginating, all other parameters provided to `ListTaskRuns` must match the
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |
| id | [string](#string) | | The id comes from the deployment config. Format: UUID Empty for legacy stages. |
-| title | [string](#string) | | |
+| environment | [string](#string) | | |
| tasks | [Task](#bytebase-v1-Task) | repeated | |
@@ -10285,7 +10285,6 @@ When paginating, all other parameters provided to `ListTaskRuns` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |
-| title | [string](#string) | | |
| spec_id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. Could be empty if the rollout of the task does not have an associating plan. |
| status | [Task.Status](#bytebase-v1-Task-Status) | | Status is the status of the task. |
| skipped_reason | [string](#string) | | |
@@ -10400,7 +10399,6 @@ When paginating, all other parameters provided to `ListTaskRuns` must match the
| creator | [string](#string) | | Format: user/[email protected] |
| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |
-| title | [string](#string) | | |
| status | [TaskRun.Status](#bytebase-v1-TaskRun-Status) | | |
| detail | [string](#string) | | Below are the results of a task run. |
| changelog | [string](#string) | | The resource name of the changelog. Format: instances/{instance}/databases/{database}/changelogs/{changelog} |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 4e8525a159..ce83ad6b5a 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -28165,7 +28165,7 @@ Empty for legacy stages. </p></td>
</tr>
<tr>
- <td>title</td>
+ <td>environment</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -28202,13 +28202,6 @@ Empty for legacy stages. </p></td>
<td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>
</tr>
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>spec_id</td>
<td><a href="#string">string</a></td>
@@ -28527,13 +28520,6 @@ Leave it empty if no needs to encrypt the zip file. </p></td>
<td><p> </p></td>
</tr>
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>status</td>
<td><a href="#bytebase.v1.TaskRun.Status">TaskRun.Status</a></td>
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index d0474d339f..f28eb5d64c 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -1367,7 +1367,7 @@ type Stage struct {
// Format: UUID
// Empty for legacy stages.
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
- Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
+ Environment string `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"`
Tasks []*Task `protobuf:"bytes,5,rep,name=tasks,proto3" json:"tasks,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
@@ -1417,9 +1417,9 @@ func (x *Stage) GetId() string {
return ""
}
-func (x *Stage) GetTitle() string {
+func (x *Stage) GetEnvironment() string {
if x != nil {
- return x.Title
+ return x.Environment
}
return ""
}
@@ -1434,8 +1434,7 @@ func (x *Stage) GetTasks() []*Task {
type Task struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A UUID4 string that uniquely identifies the Spec.
// Could be empty if the rollout of the task does not have an associating plan.
SpecId string `protobuf:"bytes,4,opt,name=spec_id,json=specId,proto3" json:"spec_id,omitempty"`
@@ -1495,13 +1494,6 @@ func (x *Task) GetName() string {
return ""
}
-func (x *Task) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
-}
-
func (x *Task) GetSpecId() string {
if x != nil {
return x.SpecId
@@ -1631,7 +1623,6 @@ type TaskRun struct {
Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty"`
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
- Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
Status TaskRun_Status `protobuf:"varint,8,opt,name=status,proto3,enum=bytebase.v1.TaskRun_Status" json:"status,omitempty"`
// Below are the results of a task run.
Detail string `protobuf:"bytes,9,opt,name=detail,proto3" json:"detail,omitempty"`
@@ -1708,13 +1699,6 @@ func (x *TaskRun) GetUpdateTime() *timestamppb.Timestamp {
return nil
}
-func (x *TaskRun) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
-}
-
func (x *TaskRun) GetStatus() TaskRun_Status {
if x != nil {
return x.Status
@@ -3590,144 +3574,142 @@ var file_v1_rollout_service_proto_rawDesc = string([]byte{
0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74,
0x12, 0x25, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x7b, 0x72,
- 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x7d, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xc5, 0x01,
+ 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x7d, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xd1, 0x01,
0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x02, 0x69,
- 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,
- 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73,
- 0x3a, 0x4d, 0xea, 0x41, 0x4a, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x34, 0x70, 0x72, 0x6f, 0x6a, 0x65,
- 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x6f,
- 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x7d,
- 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x67, 0x65, 0x7d, 0x4a,
- 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xf1, 0x0d, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12,
- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x70, 0x65, 0x63,
- 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x70, 0x65, 0x63, 0x49,
- 0x64, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x72,
- 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6b, 0x69,
- 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79,
- 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65,
- 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
- 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x4b,
- 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x64, 0x0a, 0x18, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x62,
- 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e,
+ 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
+ 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x05, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x3a, 0x4d, 0xea, 0x41,
+ 0x4a, 0x0a, 0x12, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
+ 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x34, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
+ 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
+ 0x74, 0x73, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x7d, 0x2f, 0x73, 0x74, 0x61,
+ 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x67, 0x65, 0x7d, 0x4a, 0x04, 0x08, 0x02, 0x10,
+ 0x03, 0x22, 0xdb, 0x0d, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17,
+ 0x0a, 0x07, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x06, 0x73, 0x70, 0x65, 0x63, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
+ 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
+ 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6b, 0x69,
+ 0x70, 0x70, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0d, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e,
+ 0x12, 0x2a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73,
+ 0x6b, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
+ 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61,
+ 0x72, 0x67, 0x65, 0x74, 0x12, 0x4b, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e,
0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b,
- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42,
- 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x48, 0x00, 0x52, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e,
- 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x14, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48,
+ 0x00, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74,
+ 0x65, 0x12, 0x64, 0x0a, 0x18, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x0a, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x48, 0x00, 0x52,
+ 0x16, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42,
+ 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x5e, 0x0a, 0x16, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
+ 0x00, 0x52, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18,
+ 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x12, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x12, 0x58, 0x0a, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61,
- 0x74, 0x61, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x74, 0x61, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,
- 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x14, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x78, 0x70,
- 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48,
- 0x00, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45,
- 0x78, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xd7, 0x01, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a,
- 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
- 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x14,
- 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74,
- 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68,
- 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12,
- 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a,
- 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x1a,
- 0x3f, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
- 0x1a, 0x53, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25,
- 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65,
- 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x51, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73,
- 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65,
- 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73,
- 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xa3, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12,
- 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x31, 0x0a,
- 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f,
- 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
- 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01,
- 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7c,
- 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54,
- 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
- 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10,
- 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b,
- 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x44,
- 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10,
- 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12,
- 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x07, 0x22, 0xee, 0x01, 0x0a,
- 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,
- 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47,
- 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41,
- 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a,
- 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,
- 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44,
- 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55,
- 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x41, 0x54, 0x41, 0x42,
- 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,
- 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x41, 0x54, 0x41, 0x42,
- 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,
- 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54,
- 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54,
- 0x45, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,
- 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x10, 0x0c, 0x3a, 0x59, 0xea,
- 0x41, 0x56, 0x0a, 0x11, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
- 0x2f, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x41, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
- 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
- 0x74, 0x73, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x7d, 0x2f, 0x73, 0x74, 0x61,
- 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x67, 0x65, 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b,
- 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x7d, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c,
- 0x6f, 0x61, 0x64, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xcc, 0x0e, 0x0a, 0x07, 0x54, 0x61,
- 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65,
- 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61,
- 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
- 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
- 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
- 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,
- 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,
+ 0x73, 0x6b, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45,
+ 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0xd7, 0x01, 0x0a, 0x0e,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x18,
+ 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74,
+ 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65,
+ 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74,
+ 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
+ 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
+ 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x1a, 0x3f, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x12,
+ 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
+ 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x53, 0x0a, 0x14, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14,
+ 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73,
+ 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x51, 0x0a, 0x12, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xa3,
+ 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x44, 0x61, 0x74, 0x61, 0x45,
+ 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x14, 0x0a,
+ 0x05, 0x73, 0x68, 0x65, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x68,
+ 0x65, 0x65, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06,
+ 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
+ 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73,
+ 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73,
+ 0x77, 0x6f, 0x72, 0x64, 0x22, 0x7c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16,
+ 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
+ 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x54,
+ 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49,
+ 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10,
+ 0x03, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46,
+ 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x4e, 0x43, 0x45,
+ 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44,
+ 0x10, 0x07, 0x22, 0xee, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54,
+ 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
+ 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x13,
+ 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54,
+ 0x45, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,
+ 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10,
+ 0x03, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43,
+ 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x1e, 0x0a,
+ 0x1a, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,
+ 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x05, 0x12, 0x20, 0x0a,
+ 0x1c, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,
+ 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x09, 0x12,
+ 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41,
+ 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54,
+ 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x58, 0x50, 0x4f, 0x52,
+ 0x54, 0x10, 0x0c, 0x3a, 0x59, 0xea, 0x41, 0x56, 0x0a, 0x11, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x41, 0x70, 0x72, 0x6f,
+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x73, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75,
+ 0x74, 0x7d, 0x2f, 0x73, 0x74, 0x61, 0x67, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x74, 0x61, 0x67, 0x65,
+ 0x7d, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x7d, 0x42, 0x09,
+ 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x22,
+ 0xb6, 0x0e, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x75, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x63, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,
+ 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, 0x0b,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2,
+ 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,
0x33, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32,
0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61,
0x73, 0x6b, 0x52, 0x75, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74,
diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.proto
index eba420cc0d..ada2bb35d9 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -338,7 +338,8 @@ message Stage {
// Empty for legacy stages.
string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- string title = 4;
+ string environment = 4;
+
repeated Task tasks = 5;
}
@@ -353,8 +354,6 @@ message Task {
// Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
string name = 1;
- string title = 3;
-
// A UUID4 string that uniquely identifies the Spec.
// Could be empty if the rollout of the task does not have an associating plan.
string spec_id = 4;
@@ -467,8 +466,6 @@ message TaskRun {
google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
- string title = 7;
-
enum Status {
STATUS_UNSPECIFIED = 0;
PENDING = 1;