Skip to content
代码片段 群组 项目
提交 99aecb9f 编辑于 作者: Tianwen Chen's avatar Tianwen Chen
浏览文件

Add column_name to batched_background_migrations Admin API

上级 6e61aa6c
No related branches found
No related tags found
无相关合并请求
......@@ -6,6 +6,7 @@ class BatchedBackgroundMigration < Grape::Entity
expose :id, documentation: { type: :string, example: "1234" }
expose :job_class_name, documentation: { type: :string, example: "CopyColumnUsingBackgroundMigrationJob" }
expose :table_name, documentation: { type: :string, example: "events" }
expose :column_name, documentation: { type: :string, example: "id" }
expose :status_name, as: :status, override: true, documentation: { type: :string, example: "active" }
expose :progress, documentation: { type: :float, example: 50 }
expose :created_at, documentation: { type: :dateTime, example: "2022-11-28T16:26:39+02:00" }
......
......@@ -100,6 +100,7 @@
expect(json_response.first['id']).to eq(migration.id)
expect(json_response.first['job_class_name']).to eq(migration.job_class_name)
expect(json_response.first['table_name']).to eq(migration.table_name)
expect(json_response.first['column_name']).to eq(migration.column_name)
expect(json_response.first['status']).to eq(migration.status_name.to_s)
expect(json_response.first['progress']).to be_zero
end
......@@ -151,6 +152,7 @@
expect(json_response.first['id']).to eq(ci_database_migration.id)
expect(json_response.first['job_class_name']).to eq(ci_database_migration.job_class_name)
expect(json_response.first['table_name']).to eq(ci_database_migration.table_name)
expect(json_response.first['column_name']).to eq(ci_database_migration.column_name)
expect(json_response.first['status']).to eq(ci_database_migration.status_name.to_s)
expect(json_response.first['progress']).to be_zero
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册