Skip to content

Commit

Permalink
fix(backend): 权限中心问题修复 #4668
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed May 29, 2024
1 parent 98d5a92 commit 7ea5de8
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 97 deletions.
4 changes: 2 additions & 2 deletions dbm-ui/backend/iam_app/dataclass/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ class ActionEnum:
type="view",
related_actions=[GLOBAL_MANAGE.id],
related_resource_types=[ResourceEnum.BUSINESS],
group=_("平台管理"),
group=_("可观测"),
)

DBHA_SWITCH_EVENT_VIEW = ActionMeta(
Expand All @@ -1307,7 +1307,7 @@ class ActionEnum:
type="view",
related_actions=[GLOBAL_MANAGE.id],
related_resource_types=[ResourceEnum.BUSINESS],
group=_("平台管理"),
group=_("可观测"),
)

NOTIFY_GROUP_LIST = ActionMeta(
Expand Down
22 changes: 0 additions & 22 deletions dbm-ui/backend/iam_app/migrations/0003_bk_dbm_202310271225.py

This file was deleted.

22 changes: 0 additions & 22 deletions dbm-ui/backend/iam_app/migrations/0004_bk_dbm_202310311921.py

This file was deleted.

22 changes: 0 additions & 22 deletions dbm-ui/backend/iam_app/migrations/0005_bk_dbm_202312021522.py

This file was deleted.

22 changes: 0 additions & 22 deletions dbm-ui/backend/iam_app/migrations/0006_bk_dbm_202404031731.py

This file was deleted.

2 changes: 2 additions & 0 deletions dbm-ui/backend/iam_app/views/account_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class AccountResourceProvider(BaseInterfaceResourceProvider):
def convert_condition_field(condition):
# 账号的业务参数要是整型
condition["bk_biz_id"] = int(condition["bk_biz_id"])
if "id" in condition:
condition["id"] = int(condition["id"])
return condition

def list_instance(self, filter, page, **options):
Expand Down
2 changes: 1 addition & 1 deletion dbm-ui/backend/iam_app/views/iam_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _list_instance(self, data_source: DataAPI, condition: Dict, value_list: List
# 填充分页参数
condition.update(limit=page.limit, offset=page.offset)
# 查询数据
data = data_source(params=condition)["results"]
data = data_source(params=condition)["results"] or []
results = [
{"id": str(item[value_list[0]]), "display_name": ":".join([str(item[value]) for value in value_list[1:]])}
for item in list(data)
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/bk-dbm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ dependencies:
description: A Helm chart for bk-dbm
name: bk-dbm
type: application
version: 1.3.0-alpha.51
appVersion: 1.3.0-alpha.51
version: 1.4.0-alpha.52
appVersion: 1.4.0-alpha.52
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/db-resource/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 0.0.1-alpha.85
appVersion: 0.0.1-alpha.87
description: A Helm chart for Kubernetes
name: db-resource
type: application
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/db-simulation/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 0.0.1-alpha.50
appVersion: 0.0.1-alpha.56
description: A Helm chart for Kubernetes
name: db-simulation
type: application
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 1.3.0-alpha.760
appVersion: 1.4.0-alpha.839
description: A Helm chart for dbm
name: dbm
type: application
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/bk-dbm/charts/dbpriv/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 0.0.1-alpha.299
appVersion: 0.0.1-alpha.321
name: dbpriv
description: A Helm chart for dbpriv
type: application
Expand Down

0 comments on commit 7ea5de8

Please sign in to comment.