Skip to content

Commit

Permalink
fix: 外部版接口豁免更新 #1010158081136787669
Browse files Browse the repository at this point in the history
  • Loading branch information
yiqiwang-17 committed Jan 8, 2025
1 parent d7f63fc commit e39385c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bklog/apps/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class ViewSetActionEnum(ChoicesEnum):
PATTERN_VIEWSET_SEARCH = ViewSetAction(
action_id=ExternalPermissionActionEnum.LOG_SEARCH.value, view_set="PatternViewSet", view_action="search"
)
# ======================================= 收藏-IndexSetViewSet =======================================
# ======================================= 索引-IndexSetViewSet =======================================
INDEX_SET_VIEWSET_MARK_FAVORITE = ViewSetAction(
action_id=ExternalPermissionActionEnum.LOG_SEARCH.value, view_set="IndexSetViewSet", view_action="mark_favorite"
)
Expand All @@ -445,6 +445,11 @@ class ViewSetActionEnum(ChoicesEnum):
view_set="IndexSetViewSet",
view_action="cancel_favorite",
)
INDEX_SET_VIEWSET_USER_CUSTOM_CONFIG = ViewSetAction(
action_id=ExternalPermissionActionEnum.LOG_SEARCH.value,
view_set="IndexSetViewSet",
view_action="update_or_create_config",
)
# ======================================= 收藏-FavoriteViewSet =======================================
FAVORITE_VIEWSET_RETRIEVE = ViewSetAction(
action_id=ExternalPermissionActionEnum.LOG_SEARCH.value, view_set="FavoriteViewSet", view_action="retrieve"
Expand Down Expand Up @@ -577,9 +582,10 @@ class ViewSetActionEnum(ChoicesEnum):
CLUSTERING_CONFIG_VIEWSET_STATUS,
CLUSTERING_CONFIG_VIEWSET_CONFIG,
PATTERN_VIEWSET_SEARCH,
# ======================================= 收藏-IndexSetViewSet =======================================
# ======================================= 索引-IndexSetViewSet =======================================
INDEX_SET_VIEWSET_MARK_FAVORITE,
INDEX_SET_VIEWSET_CANCEL_FAVORITE,
INDEX_SET_VIEWSET_USER_CUSTOM_CONFIG,
# ======================================= 收藏-FavoriteViewSet =======================================
FAVORITE_VIEWSET_RETRIEVE,
FAVORITE_VIEWSET_LIST,
Expand Down

0 comments on commit e39385c

Please sign in to comment.