diff --git a/dbm-ui/backend/db_services/mongodb/autofix/mongodb_autofix_ticket.py b/dbm-ui/backend/db_services/mongodb/autofix/mongodb_autofix_ticket.py index 184af340b5..d0f7a77f67 100644 --- a/dbm-ui/backend/db_services/mongodb/autofix/mongodb_autofix_ticket.py +++ b/dbm-ui/backend/db_services/mongodb/autofix/mongodb_autofix_ticket.py @@ -78,7 +78,6 @@ def mongo_create_ticket(cluster: RedisAutofixCore, cluster_ids: list, mongos_lis cluster_type = mongod_list[0]["cluster_type"] # 单据信息 details = { - "bk_biz_id": cluster.bk_biz_id, "ip_source": IpSource.RESOURCE_POOL.value, "infos": [ { diff --git a/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py b/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py index 838a33d4c0..d2cdaf8882 100644 --- a/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py +++ b/dbm-ui/backend/flow/engine/bamboo/scene/mongodb/mongodb_autofix.py @@ -13,6 +13,7 @@ from backend.db_meta.enums import ClusterType from backend.flow.utils.mongodb.mongodb_repo import MongoRepository +from backend.db_meta.models import AppCache from . import mongodb_cluster_autofix from . import mongodb_replace @@ -41,6 +42,7 @@ def get_public_data(self) -> Dict: return { "bk_biz_id": bk_biz_id, "uid": self.data["uid"], + "bk_app_abbr": AppCache.objects.get(bk_biz_id=bk_biz_id).db_app_abbr, "created_by": self.data["created_by"], "ticket_type": self.data["ticket_type"], "infos": {"MongoReplicaSet": [], "MongoShardedCluster": []}, diff --git a/dbm-ui/backend/ticket/builders/mongodb/mongo_autofix.py b/dbm-ui/backend/ticket/builders/mongodb/mongo_autofix.py index ba1d0b1a4f..e2ce0398dc 100644 --- a/dbm-ui/backend/ticket/builders/mongodb/mongo_autofix.py +++ b/dbm-ui/backend/ticket/builders/mongodb/mongo_autofix.py @@ -20,7 +20,6 @@ BaseMongoDBOperateResourceParamBuilder, BaseMongoShardedTicketFlowBuilder, ) -from backend.ticket.builders.mongodb.mongo_backup import MongoDBBackupFlowParamBuilder from backend.ticket.constants import TicketType @@ -42,7 +41,6 @@ class HostInfoSerializer(serializers.Serializer): ip_source = serializers.ChoiceField( help_text=_("主机来源"), choices=IpSource.get_choices(), default=IpSource.RESOURCE_POOL ) - bk_biz_id = serializers.IntegerField(help_text=_("业务ID")) infos = serializers.ListSerializer(help_text=_("mongo自愈申请信息"), child=AutofixDetailSerializer())