Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(mysql): 恢复流程代码优化 #8550 #8551

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions dbm-ui/backend/flow/engine/controller/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
)
from backend.flow.engine.bamboo.scene.mysql.mysql_master_fail_over import MySQLMasterFailOverFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_master_slave_switch import MySQLMasterSlaveSwitchFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_migrate_cluster_flow import MySQLMigrateClusterFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_migrate_cluster_remote_flow import MySQLMigrateClusterRemoteFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_open_area_flow import MysqlOpenAreaFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_partition import MysqlPartitionFlow
Expand All @@ -48,7 +47,6 @@
from backend.flow.engine.bamboo.scene.mysql.mysql_push_peripheral_config import MySQLPushPeripheralConfigFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_random_password import MySQLRandomizePassword
from backend.flow.engine.bamboo.scene.mysql.mysql_rename_database_flow import MySQLRenameDatabaseFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_restore_slave_flow import MySQLRestoreSlaveFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_restore_slave_remote_flow import MySQLRestoreSlaveRemoteFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_rollback_data_flow import MySQLRollbackDataFlow
from backend.flow.engine.bamboo.scene.mysql.mysql_single_apply_flow import MySQLSingleApplyFlow
Expand All @@ -73,27 +71,6 @@ def mysql_single_apply_scene(self):
flow = MySQLSingleApplyFlow(root_id=self.root_id, data=self.ticket_data)
flow.deploy_flow()

def mysql_restore_slave_scene(self):
"""
tenDB slave 恢复流程编排
"""
flow = MySQLRestoreSlaveFlow(root_id=self.root_id, tick_data=self.ticket_data)
flow.deploy_restore_slave_flow()

def mysql_add_slave_scene(self):
"""
仅添加 slave 流程编排
"""
flow = MySQLRestoreSlaveFlow(root_id=self.root_id, tick_data=self.ticket_data)
flow.deploy_add_slave_flow()

def mysql_restore_local_slave_scene(self):
"""
tenDB slave 原地恢复流程编排
"""
flow = MySQLRestoreSlaveFlow(root_id=self.root_id, tick_data=self.ticket_data)
flow.deploy_restore_local_slave_flow()

# mysql 从节点恢复(接入备份系统)
def mysql_restore_slave_remote_scene(self):
"""
Expand Down Expand Up @@ -402,13 +379,6 @@ def mysql_ha_rename_database_scene(self):
)
flow.rename_database()

def mysql_migrate_cluster_scene(self):
"""
主从成对迁移flow编排
"""
flow = MySQLMigrateClusterFlow(root_id=self.root_id, ticket_data=self.ticket_data)
flow.deploy_migrate_cluster_flow()

def mysql_migrate_remote_scene(self):
"""
主从成对迁移flow编排
Expand Down
8 changes: 0 additions & 8 deletions dbm-ui/backend/flow/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
MultiReplicasetInstallApiView,
)
from backend.flow.views.mysql import MysqlMachineClearApiView
from backend.flow.views.mysql_add_slave import AddMysqlSlaveSceneApiView
from backend.flow.views.mysql_add_slave_remote import AddMysqlSlaveRemoteSceneApiView
from backend.flow.views.mysql_checksum import MysqlChecksumSceneApiView
from backend.flow.views.mysql_data_migrate import MysqlDataMigrateSceneApiView
Expand All @@ -122,7 +121,6 @@
from backend.flow.views.mysql_ha_rename_database import MySQLHARenameDatabaseView
from backend.flow.views.mysql_ha_switch import MySQLHASwitchSceneApiView
from backend.flow.views.mysql_ha_truncate_data import MySQLHATruncateDataView
from backend.flow.views.mysql_migrate_cluster import MigrateMysqlClusterSceneApiView
from backend.flow.views.mysql_migrate_cluster_remote import MysqlMigrateRemoteSceneApiView
from backend.flow.views.mysql_open_area import MysqlOpenAreaSceneApiView
from backend.flow.views.mysql_partition import MysqlPartitionSceneApiView
Expand All @@ -132,8 +130,6 @@
from backend.flow.views.mysql_proxy_upgrade import UpgradeMySQLProxySceneApiView
from backend.flow.views.mysql_pt_table_sync import MySQLPtTableSyncApiView
from backend.flow.views.mysql_restore_local_remote import RestoreMysqlLocalRemoteSceneApiView
from backend.flow.views.mysql_restore_local_slave import RestoreMysqlLocalSlaveSceneApiView
from backend.flow.views.mysql_restore_slave import RestoreMysqlSlaveSceneApiView
from backend.flow.views.mysql_restore_slave_remote import RestoreMysqlSlaveRemoteSceneApiView
from backend.flow.views.mysql_rollback_data import MysqlRollbackDataSceneApiView
from backend.flow.views.mysql_rollback_to_cluster import MysqlRollbackToClusterSceneApiView
Expand Down Expand Up @@ -417,15 +413,11 @@
url(r"^scene/import_sqlfile$", ImportSQLFileSceneApiView.as_view()),
url(r"^scene/switch_mysql_proxy$", SwitchMySQLProxySceneApiView.as_view()),
url(r"^scene/add_mysql_proxy$", AddMySQLProxySceneApiView.as_view()),
url(r"^scene/restore_slave$", RestoreMysqlSlaveSceneApiView.as_view()),
url(r"^scene/add_slave$", AddMysqlSlaveSceneApiView.as_view()),
url(r"^scene/restore_local_slave$", RestoreMysqlLocalSlaveSceneApiView.as_view()),
# 从节点数据恢复(接入备份系统)
url(r"^scene/restore_slave_remote$", RestoreMysqlSlaveRemoteSceneApiView.as_view()),
url(r"^scene/add_slave_remote$", AddMysqlSlaveRemoteSceneApiView.as_view()),
url(r"^scene/restore_local_slave_remote$", RestoreMysqlLocalRemoteSceneApiView.as_view()),
url(r"^scene/migrate_cluster_remote$", MysqlMigrateRemoteSceneApiView.as_view()),
url(r"^scene/migrate_cluster$", MigrateMysqlClusterSceneApiView.as_view()),
url(r"^scene/mysql_rollback_data", MysqlRollbackDataSceneApiView.as_view()),
url(r"^scene/mysql_rollback_to_cluster", MysqlRollbackToClusterSceneApiView.as_view()),
url(r"^scene/install_es$", InstallEsSceneApiView.as_view()),
Expand Down
49 changes: 0 additions & 49 deletions dbm-ui/backend/flow/views/mysql_add_slave.py

This file was deleted.

51 changes: 0 additions & 51 deletions dbm-ui/backend/flow/views/mysql_migrate_cluster.py

This file was deleted.

49 changes: 0 additions & 49 deletions dbm-ui/backend/flow/views/mysql_restore_local_slave.py

This file was deleted.

55 changes: 0 additions & 55 deletions dbm-ui/backend/flow/views/mysql_restore_slave.py

This file was deleted.

Loading