Skip to content

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

chore: rename blocked_by to depends_on (#11182)

p0ny7d14b7b0a77f
diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.go
index 5e53ed90bc..af5496eef7 100644
--- a/backend/api/v1/rollout_service_converter.go
+++ b/backend/api/v1/rollout_service_converter.go
@@ -582,8 +582,8 @@ func convertToRollout(ctx context.Context, s *store.Store, project *store.Projec
for i, rolloutStage := range rolloutV1.Stages {
for j, rolloutTask := range rolloutStage.Tasks {
task := rollout.Stages[i].TaskList[j]
- for _, blockingTask := range task.BlockedBy {
- rolloutTask.BlockedByTasks = append(rolloutTask.BlockedByTasks, taskIDToName[blockingTask])
+ for _, blockingTask := range task.DependsOn {
+ rolloutTask.DependsOnTasks = append(rolloutTask.DependsOnTasks, taskIDToName[blockingTask])
}
}
}
@@ -654,7 +654,7 @@ func convertToTaskFromDatabaseCreate(ctx context.Context, s *store.Store, projec
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s", common.InstanceNamePrefix, instance.ResourceID),
Payload: &v1pb.Task_DatabaseCreate_{
DatabaseCreate: &v1pb.Task_DatabaseCreate{
@@ -696,7 +696,7 @@ func convertToTaskFromSchemaBaseline(ctx context.Context, s *store.Store, projec
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: &v1pb.Task_DatabaseSchemaBaseline_{
DatabaseSchemaBaseline: &v1pb.Task_DatabaseSchemaBaseline{
@@ -738,7 +738,7 @@ func convertToTaskFromSchemaUpdate(ctx context.Context, s *store.Store, project
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: &v1pb.Task_DatabaseSchemaUpdate_{
DatabaseSchemaUpdate: &v1pb.Task_DatabaseSchemaUpdate{
@@ -773,7 +773,7 @@ func convertToTaskFromSchemaUpdateGhostCutover(ctx context.Context, s *store.Sto
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
Type: convertToTaskType(task.Type),
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: nil,
}
@@ -815,7 +815,7 @@ func convertToTaskFromDataUpdate(ctx context.Context, s *store.Store, project *s
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: nil,
}
@@ -890,7 +890,7 @@ func convertToTaskFromDatabaseBackup(ctx context.Context, s *store.Store, projec
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: &v1pb.Task_DatabaseBackup_{
DatabaseBackup: &v1pb.Task_DatabaseBackup{
@@ -927,7 +927,7 @@ func convertToTaskFromDatabaseRestoreRestore(ctx context.Context, s *store.Store
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: nil,
}
@@ -1006,7 +1006,7 @@ func convertToTaskFromDatabaseRestoreCutOver(ctx context.Context, s *store.Store
Type: convertToTaskType(task.Type),
Status: convertToTaskStatus(task.LatestTaskRunStatus, payload.Skipped),
SkippedReason: payload.SkippedReason,
- BlockedByTasks: nil,
+ DependsOnTasks: nil,
Target: fmt.Sprintf("%s%s/%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName),
Payload: nil,
}
diff --git a/backend/runner/taskrun/schedulerv2.go b/backend/runner/taskrun/schedulerv2.go
index 8fe89389f5..3b78bc41d9 100644
--- a/backend/runner/taskrun/schedulerv2.go
+++ b/backend/runner/taskrun/schedulerv2.go
@@ -249,7 +249,7 @@ func (s *SchedulerV2) schedulePendingTaskRun(ctx context.Context, taskRun *store
if task.EarliestAllowedTs != 0 && time.Now().Before(time.Unix(task.EarliestAllowedTs, 0)) {
return nil
}
- for _, blockingTaskUID := range task.BlockedBy {
+ for _, blockingTaskUID := range task.DependsOn {
blockingTask, err := s.store.GetTaskV2ByID(ctx, blockingTaskUID)
if err != nil {
return errors.Wrapf(err, "failed to get blocking task %v", blockingTaskUID)
diff --git a/backend/runner/taskrun/schema_update_ghost_cutover_executor.go b/backend/runner/taskrun/schema_update_ghost_cutover_executor.go
index 3eeb75f556..f9277843c0 100644
--- a/backend/runner/taskrun/schema_update_ghost_cutover_executor.go
+++ b/backend/runner/taskrun/schema_update_ghost_cutover_executor.go
@@ -62,10 +62,10 @@ func (e *SchemaUpdateGhostCutoverExecutor) RunOnce(ctx context.Context, taskCont
UpdateTime: time.Now(),
})
- if len(task.BlockedBy) != 1 {
+ if len(task.DependsOn) != 1 {
return true, nil, errors.Errorf("failed to find task dag for ToTask %v", task.ID)
}
- syncTaskID := task.BlockedBy[0]
+ syncTaskID := task.DependsOn[0]
defer e.stateCfg.GhostTaskState.Delete(syncTaskID)
instance, err := e.store.GetInstanceV2(ctx, &store.FindInstanceMessage{UID: &task.InstanceID})
diff --git a/backend/store/task.go b/backend/store/task.go
index dac38a65be..ad8d273abf 100644
--- a/backend/store/task.go
+++ b/backend/store/task.go
@@ -39,7 +39,7 @@ type TaskMessage struct {
Type api.TaskType
Payload string
EarliestAllowedTs int64
- BlockedBy []int
+ DependsOn []int
DatabaseName string
// Statement used by grouping batch change, Bytebase use it to render.
@@ -268,7 +268,7 @@ func (s *Store) ListTasks(ctx context.Context, find *api.TaskFind) ([]*TaskMessa
); err != nil {
return nil, err
}
- if err := blockedBy.AssignTo(&task.BlockedBy); err != nil {
+ if err := blockedBy.AssignTo(&task.DependsOn); err != nil {
return nil, err
}
tasks = append(tasks, task)
diff --git a/frontend/src/types/proto/store/plan.ts b/frontend/src/types/proto/store/plan.ts
index df2255cd9d..17c3714bdf 100644
--- a/frontend/src/types/proto/store/plan.ts
+++ b/frontend/src/types/proto/store/plan.ts
@@ -25,8 +25,8 @@ export interface PlanConfig_Spec {
| undefined;
/** A UUID4 string that uniquely identifies the Spec. */
id: string;
- /** IDs of the specs that block this spec. */
- blockedBySpecs: string[];
+ /** IDs of the specs that this spec depends on. */
+ dependsOnSpecs: string[];
createDatabaseConfig?: PlanConfig_CreateDatabaseConfig | undefined;
changeDatabaseConfig?: PlanConfig_ChangeDatabaseConfig | undefined;
restoreDatabaseConfig?: PlanConfig_RestoreDatabaseConfig | undefined;
@@ -358,7 +358,7 @@ function createBasePlanConfig_Spec(): PlanConfig_Spec {
return {
earliestAllowedTime: undefined,
id: "",
- blockedBySpecs: [],
+ dependsOnSpecs: [],
createDatabaseConfig: undefined,
changeDatabaseConfig: undefined,
restoreDatabaseConfig: undefined,
@@ -373,7 +373,7 @@ export const PlanConfig_Spec = {
if (message.id !== "") {
writer.uint32(42).string(message.id);
}
- for (const v of message.blockedBySpecs) {
+ for (const v of message.dependsOnSpecs) {
writer.uint32(50).string(v!);
}
if (message.createDatabaseConfig !== undefined) {
@@ -414,7 +414,7 @@ export const PlanConfig_Spec = {
break;
}
- message.blockedBySpecs.push(reader.string());
+ message.dependsOnSpecs.push(reader.string());
continue;
case 1:
if (tag !== 10) {
@@ -452,8 +452,8 @@ export const PlanConfig_Spec = {
? fromJsonTimestamp(object.earliestAllowedTime)
: undefined,
id: isSet(object.id) ? globalThis.String(object.id) : "",
- blockedBySpecs: globalThis.Array.isArray(object?.blockedBySpecs)
- ? object.blockedBySpecs.map((e: any) => globalThis.String(e))
+ dependsOnSpecs: globalThis.Array.isArray(object?.dependsOnSpecs)
+ ? object.dependsOnSpecs.map((e: any) => globalThis.String(e))
: [],
createDatabaseConfig: isSet(object.createDatabaseConfig)
? PlanConfig_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)
@@ -475,8 +475,8 @@ export const PlanConfig_Spec = {
if (message.id !== "") {
obj.id = message.id;
}
- if (message.blockedBySpecs?.length) {
- obj.blockedBySpecs = message.blockedBySpecs;
+ if (message.dependsOnSpecs?.length) {
+ obj.dependsOnSpecs = message.dependsOnSpecs;
}
if (message.createDatabaseConfig !== undefined) {
obj.createDatabaseConfig = PlanConfig_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);
@@ -497,7 +497,7 @@ export const PlanConfig_Spec = {
const message = createBasePlanConfig_Spec();
message.earliestAllowedTime = object.earliestAllowedTime ?? undefined;
message.id = object.id ?? "";
- message.blockedBySpecs = object.blockedBySpecs?.map((e) => e) || [];
+ message.dependsOnSpecs = object.dependsOnSpecs?.map((e) => e) || [];
message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)
? PlanConfig_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)
: undefined;
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index 9a67aeb916..ac3e6f33f1 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -105,8 +105,8 @@ export interface Plan_Spec {
| undefined;
/** A UUID4 string that uniquely identifies the Spec. */
id: string;
- /** IDs of the specs that block this spec. */
- blockedBySpecs: string[];
+ /** IDs of the specs that this spec depends on. */
+ dependsOnSpecs: string[];
createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;
changeDatabaseConfig?: Plan_ChangeDatabaseConfig | undefined;
restoreDatabaseConfig?: Plan_RestoreDatabaseConfig | undefined;
@@ -711,7 +711,7 @@ export interface Task {
skippedReason: string;
type: Task_Type;
/** Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} */
- blockedByTasks: string[];
+ dependsOnTasks: string[];
/**
* Format: instances/{instance} if the task is DatabaseCreate.
* Format: instances/{instance}/databases/{database}
@@ -1761,7 +1761,7 @@ function createBasePlan_Spec(): Plan_Spec {
return {
earliestAllowedTime: undefined,
id: "",
- blockedBySpecs: [],
+ dependsOnSpecs: [],
createDatabaseConfig: undefined,
changeDatabaseConfig: undefined,
restoreDatabaseConfig: undefined,
@@ -1776,7 +1776,7 @@ export const Plan_Spec = {
if (message.id !== "") {
writer.uint32(42).string(message.id);
}
- for (const v of message.blockedBySpecs) {
+ for (const v of message.dependsOnSpecs) {
writer.uint32(50).string(v!);
}
if (message.createDatabaseConfig !== undefined) {
@@ -1817,7 +1817,7 @@ export const Plan_Spec = {
break;
}
- message.blockedBySpecs.push(reader.string());
+ message.dependsOnSpecs.push(reader.string());
continue;
case 1:
if (tag !== 10) {
@@ -1855,8 +1855,8 @@ export const Plan_Spec = {
? fromJsonTimestamp(object.earliestAllowedTime)
: undefined,
id: isSet(object.id) ? globalThis.String(object.id) : "",
- blockedBySpecs: globalThis.Array.isArray(object?.blockedBySpecs)
- ? object.blockedBySpecs.map((e: any) => globalThis.String(e))
+ dependsOnSpecs: globalThis.Array.isArray(object?.dependsOnSpecs)
+ ? object.dependsOnSpecs.map((e: any) => globalThis.String(e))
: [],
createDatabaseConfig: isSet(object.createDatabaseConfig)
? Plan_CreateDatabaseConfig.fromJSON(object.createDatabaseConfig)
@@ -1878,8 +1878,8 @@ export const Plan_Spec = {
if (message.id !== "") {
obj.id = message.id;
}
- if (message.blockedBySpecs?.length) {
- obj.blockedBySpecs = message.blockedBySpecs;
+ if (message.dependsOnSpecs?.length) {
+ obj.dependsOnSpecs = message.dependsOnSpecs;
}
if (message.createDatabaseConfig !== undefined) {
obj.createDatabaseConfig = Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);
@@ -1900,7 +1900,7 @@ export const Plan_Spec = {
const message = createBasePlan_Spec();
message.earliestAllowedTime = object.earliestAllowedTime ?? undefined;
message.id = object.id ?? "";
- message.blockedBySpecs = object.blockedBySpecs?.map((e) => e) || [];
+ message.dependsOnSpecs = object.dependsOnSpecs?.map((e) => e) || [];
message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)
? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig)
: undefined;
@@ -4566,7 +4566,7 @@ function createBaseTask(): Task {
status: 0,
skippedReason: "",
type: 0,
- blockedByTasks: [],
+ dependsOnTasks: [],
target: "",
databaseCreate: undefined,
databaseSchemaBaseline: undefined,
@@ -4600,7 +4600,7 @@ export const Task = {
if (message.type !== 0) {
writer.uint32(48).int32(message.type);
}
- for (const v of message.blockedByTasks) {
+ for (const v of message.dependsOnTasks) {
writer.uint32(58).string(v!);
}
if (message.target !== "") {
@@ -4688,7 +4688,7 @@ export const Task = {
break;
}
- message.blockedByTasks.push(reader.string());
+ message.dependsOnTasks.push(reader.string());
continue;
case 8:
if (tag !== 66) {
@@ -4757,8 +4757,8 @@ export const Task = {
status: isSet(object.status) ? task_StatusFromJSON(object.status) : 0,
skippedReason: isSet(object.skippedReason) ? globalThis.String(object.skippedReason) : "",
type: isSet(object.type) ? task_TypeFromJSON(object.type) : 0,
- blockedByTasks: globalThis.Array.isArray(object?.blockedByTasks)
- ? object.blockedByTasks.map((e: any) => globalThis.String(e))
+ dependsOnTasks: globalThis.Array.isArray(object?.dependsOnTasks)
+ ? object.dependsOnTasks.map((e: any) => globalThis.String(e))
: [],
target: isSet(object.target) ? globalThis.String(object.target) : "",
databaseCreate: isSet(object.databaseCreate) ? Task_DatabaseCreate.fromJSON(object.databaseCreate) : undefined,
@@ -4801,8 +4801,8 @@ export const Task = {
if (message.type !== 0) {
obj.type = task_TypeToJSON(message.type);
}
- if (message.blockedByTasks?.length) {
- obj.blockedByTasks = message.blockedByTasks;
+ if (message.dependsOnTasks?.length) {
+ obj.dependsOnTasks = message.dependsOnTasks;
}
if (message.target !== "") {
obj.target = message.target;
@@ -4840,7 +4840,7 @@ export const Task = {
message.status = object.status ?? 0;
message.skippedReason = object.skippedReason ?? "";
message.type = object.type ?? 0;
- message.blockedByTasks = object.blockedByTasks?.map((e) => e) || [];
+ message.dependsOnTasks = object.dependsOnTasks?.map((e) => e) || [];
message.target = object.target ?? "";
message.databaseCreate = (object.databaseCreate !== undefined && object.databaseCreate !== null)
? Task_DatabaseCreate.fromPartial(object.databaseCreate)
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 8e98f7b1a4..682cffeecf 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -2026,7 +2026,7 @@ InstanceOptions is the option for instances.
| ----- | ---- | ----- | ----------- |
| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |
| id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |
-| blocked_by_specs | [string](#string) | repeated | IDs of the specs that block this spec. |
+| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. |
| create_database_config | [PlanConfig.CreateDatabaseConfig](#bytebase-store-PlanConfig-CreateDatabaseConfig) | | |
| change_database_config | [PlanConfig.ChangeDatabaseConfig](#bytebase-store-PlanConfig-ChangeDatabaseConfig) | | |
| restore_database_config | [PlanConfig.RestoreDatabaseConfig](#bytebase-store-PlanConfig-RestoreDatabaseConfig) | | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index d6ba405960..036f34606b 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -5355,10 +5355,10 @@ Format: instances/{instance}/databases/{database}/backups/{backup-name} </p></td
</tr>
<tr>
- <td>blocked_by_specs</td>
+ <td>depends_on_specs</td>
<td><a href="#string">string</a></td>
<td>repeated</td>
- <td><p>IDs of the specs that block this spec. </p></td>
+ <td><p>IDs of the specs that this spec depends on. </p></td>
</tr>
<tr>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 2a2c7a1aff..843411f9e4 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -8050,7 +8050,7 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat
| ----- | ---- | ----- | ----------- |
| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |
| id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |
-| blocked_by_specs | [string](#string) | repeated | IDs of the specs that block this spec. |
+| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. |
| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | |
| change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |
| restore_database_config | [Plan.RestoreDatabaseConfig](#bytebase-v1-Plan-RestoreDatabaseConfig) | | |
@@ -8249,7 +8249,7 @@ When paginating, all other parameters provided to `ListRolloutTaskRuns` must mat
| status | [Task.Status](#bytebase-v1-Task-Status) | | Status is the status of the task. |
| skipped_reason | [string](#string) | | |
| type | [Task.Type](#bytebase-v1-Task-Type) | | |
-| blocked_by_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |
+| depends_on_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |
| target | [string](#string) | | Format: instances/{instance} if the task is DatabaseCreate. Format: instances/{instance}/databases/{database} |
| database_create | [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate) | | |
| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 7fdddba989..2c1a968ec1 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -22374,10 +22374,10 @@ Format: instances/{instance}/databases/{database} </p></td>
</tr>
<tr>
- <td>blocked_by_specs</td>
+ <td>depends_on_specs</td>
<td><a href="#string">string</a></td>
<td>repeated</td>
- <td><p>IDs of the specs that block this spec. </p></td>
+ <td><p>IDs of the specs that this spec depends on. </p></td>
</tr>
<tr>
@@ -22899,7 +22899,7 @@ Could be empty if the rollout of the task does not have an associating plan. </p
</tr>
<tr>
- <td>blocked_by_tasks</td>
+ <td>depends_on_tasks</td>
<td><a href="#string">string</a></td>
<td>repeated</td>
<td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>
diff --git a/proto/generated-go/store/plan.pb.go b/proto/generated-go/store/plan.pb.go
index b55ebb8865..38d3c8d3f5 100644
--- a/proto/generated-go/store/plan.pb.go
+++ b/proto/generated-go/store/plan.pb.go
@@ -205,8 +205,8 @@ type PlanConfig_Spec struct {
EarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=earliest_allowed_time,json=earliestAllowedTime,proto3" json:"earliest_allowed_time,omitempty"`
// A UUID4 string that uniquely identifies the Spec.
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
- // IDs of the specs that block this spec.
- BlockedBySpecs []string `protobuf:"bytes,6,rep,name=blocked_by_specs,json=blockedBySpecs,proto3" json:"blocked_by_specs,omitempty"`
+ // IDs of the specs that this spec depends on.
+ DependsOnSpecs []string `protobuf:"bytes,6,rep,name=depends_on_specs,json=dependsOnSpecs,proto3" json:"depends_on_specs,omitempty"`
// Types that are assignable to Config:
//
// *PlanConfig_Spec_CreateDatabaseConfig
@@ -261,9 +261,9 @@ func (x *PlanConfig_Spec) GetId() string {
return ""
}
-func (x *PlanConfig_Spec) GetBlockedBySpecs() []string {
+func (x *PlanConfig_Spec) GetDependsOnSpecs() []string {
if x != nil {
- return x.BlockedBySpecs
+ return x.DependsOnSpecs
}
return nil
}
@@ -805,9 +805,9 @@ var file_store_plan_proto_rawDesc = []byte{
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x52, 0x13, 0x65, 0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c,
0x6f, 0x77, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x6c, 0x6f, 0x63,
- 0x6b, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x03,
- 0x28, 0x09, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x79, 0x53, 0x70, 0x65,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65,
+ 0x6e, 0x64, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x03,
+ 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x53, 0x70, 0x65,
0x63, 0x73, 0x12, 0x67, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74,
0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index d86590472c..d738dd1f7e 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -2106,7 +2106,7 @@ type Task struct {
SkippedReason string `protobuf:"bytes,15,opt,name=skipped_reason,json=skippedReason,proto3" json:"skipped_reason,omitempty"`
Type Task_Type `protobuf:"varint,6,opt,name=type,proto3,enum=bytebase.v1.Task_Type" json:"type,omitempty"`
// Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
- BlockedByTasks []string `protobuf:"bytes,7,rep,name=blocked_by_tasks,json=blockedByTasks,proto3" json:"blocked_by_tasks,omitempty"`
+ DependsOnTasks []string `protobuf:"bytes,7,rep,name=depends_on_tasks,json=dependsOnTasks,proto3" json:"depends_on_tasks,omitempty"`
// Format: instances/{instance} if the task is DatabaseCreate.
// Format: instances/{instance}/databases/{database}
Target string `protobuf:"bytes,8,opt,name=target,proto3" json:"target,omitempty"`
@@ -2202,9 +2202,9 @@ func (x *Task) GetType() Task_Type {
return Task_TYPE_UNSPECIFIED
}
-func (x *Task) GetBlockedByTasks() []string {
+func (x *Task) GetDependsOnTasks() []string {
if x != nil {
- return x.BlockedByTasks
+ return x.DependsOnTasks
}
return nil
}
@@ -2537,8 +2537,8 @@ type Plan_Spec struct {
EarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=earliest_allowed_time,json=earliestAllowedTime,proto3" json:"earliest_allowed_time,omitempty"`
// A UUID4 string that uniquely identifies the Spec.
Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
- // IDs of the specs that block this spec.
- BlockedBySpecs []string `protobuf:"bytes,6,rep,name=blocked_by_specs,json=blockedBySpecs,proto3" json:"blocked_by_specs,omitempty"`
+ // IDs of the specs that this spec depends on.
+ DependsOnSpecs []string `protobuf:"bytes,6,rep,name=depends_on_specs,json=dependsOnSpecs,proto3" json:"depends_on_specs,omitempty"`
// Types that are assignable to Config:
//
// *Plan_Spec_CreateDatabaseConfig
@@ -2593,9 +2593,9 @@ func (x *Plan_Spec) GetId() string {
return ""
}
-func (x *Plan_Spec) GetBlockedBySpecs() []string {
+func (x *Plan_Spec) GetDependsOnSpecs() []string {
if x != nil {
- return x.BlockedBySpecs
+ return x.DependsOnSpecs
}
return nil
}
@@ -4037,9 +4037,9 @@ var file_v1_rollout_service_proto_rawDesc = []byte{
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x13, 0x65,
0x61, 0x72, 0x6c, 0x69, 0x65, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x54, 0x69,
0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
- 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x62, 0x79,
- 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x6c,
- 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x42, 0x79, 0x53, 0x70, 0x65, 0x63, 0x73, 0x12, 0x5e, 0x0a, 0x16,
+ 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x5f, 0x6f, 0x6e,
+ 0x5f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65,
+ 0x70, 0x65, 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x73, 0x12, 0x5e, 0x0a, 0x16,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x2e,
@@ -4359,9 +4359,9 @@ var file_v1_rollout_service_proto_rawDesc = []byte{
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, 0x28, 0x0a, 0x10, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x74,
- 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x6c, 0x6f, 0x63,
- 0x6b, 0x65, 0x64, 0x42, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61,
+ 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x73, 0x5f, 0x6f, 0x6e, 0x5f, 0x74,
+ 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x70, 0x65,
+ 0x6e, 0x64, 0x73, 0x4f, 0x6e, 0x54, 0x61, 0x73, 0x6b, 0x73, 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,
diff --git a/proto/store/plan.proto b/proto/store/plan.proto
index d1a2fc3f96..f7772e9fd8 100644
--- a/proto/store/plan.proto
+++ b/proto/store/plan.proto
@@ -21,8 +21,8 @@ message PlanConfig {
google.protobuf.Timestamp earliest_allowed_time = 4;
// A UUID4 string that uniquely identifies the Spec.
string id = 5;
- // IDs of the specs that block this spec.
- repeated string blocked_by_specs = 6;
+ // IDs of the specs that this spec depends on.
+ repeated string depends_on_specs = 6;
oneof config {
CreateDatabaseConfig create_database_config = 1;
diff --git a/proto/v1/rollout_service.proto b/proto/v1/rollout_service.proto
index b101a494e6..a7b5c3472c 100644
--- a/proto/v1/rollout_service.proto
+++ b/proto/v1/rollout_service.proto
@@ -186,8 +186,8 @@ message Plan {
google.protobuf.Timestamp earliest_allowed_time = 4;
// A UUID4 string that uniquely identifies the Spec.
string id = 5;
- // IDs of the specs that block this spec.
- repeated string blocked_by_specs = 6;
+ // IDs of the specs that this spec depends on.
+ repeated string depends_on_specs = 6;
oneof config {
CreateDatabaseConfig create_database_config = 1;
@@ -585,7 +585,7 @@ message Task {
Type type = 6;
// Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}
- repeated string blocked_by_tasks = 7;
+ repeated string depends_on_tasks = 7;
// Format: instances/{instance} if the task is DatabaseCreate.
// Format: instances/{instance}/databases/{database}