Skip to content

[feat][WEB] add delete functionality for configuration parameters and user config#1037

Closed
v-kkhuang wants to merge 3 commits into
dev-2.0.0-webankfrom
dev-2.0.0-webank-conf
Closed

[feat][WEB] add delete functionality for configuration parameters and user config#1037
v-kkhuang wants to merge 3 commits into
dev-2.0.0-webankfrom
dev-2.0.0-webank-conf

Conversation

@v-kkhuang

@v-kkhuang v-kkhuang commented May 28, 2026

Copy link
Copy Markdown

What is the purpose of the change

Background/Problem:
Administrators encounter redundant configuration values in both the global parameter settings and user-specific configurations. Currently, there is no UI-based way to delete these configurations, requiring manual database operations which is inefficient and risky.

Purpose of Change:
To address this problem, this PR adds delete functionality to two areas: (1) the variable component in settings page for deleting global configuration parameters, and (2) the user configuration management page for deleting user-specific configurations. Both features include confirmation dialogs and front-end permission control.

Value/Impact:
After the change, administrators can safely delete redundant configurations through the UI with proper confirmation dialogs, improving operational efficiency and reducing the risk of manual database errors.

Related issues/PRs

Related issues: close #1038
Related pr:none

Brief change log

  • Add delete button to variable component in settings page with admin-only visibility
  • Implement deleteConfig() method in variable/index.vue with confirmation dialog
  • Add delete button to user configuration management page operations column
  • Implement user config deletion using DELETE /configuration/baseKeyValue API
  • Add front-end permission control using storage.get('isLogAdmin')
  • Add Chinese and English internationalization texts for deletion features
  • Update .gitignore to exclude AI system files

Checklist

  • I have read the Contributing Guidelines on pull requests.
  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible
  • If this is a code change: I have written unit tests to fully verify the new behavior.

- 新增删除按钮UI,仅管理员可见
- 实现删除确认对话框
- 调用现有接口 DELETE /configuration/keyvalue 删除配置值
- 添加前端权限控制

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@v-kkhuang v-kkhuang changed the base branch from master to dev-2.0.0-webank May 28, 2026 13:36
v-kkhuang and others added 2 commits June 1, 2026 09:44
在用户配置管理页面添加删除功能,支持管理员删除用户配置行。

主要修改:
- 在用户配置管理页面操作列添加删除按钮
- 实现deleteConfig()方法,调用DELETE /configuration/baseKeyValue接口
- 添加删除确认对话框,显示配置详情
- 添加中英文国际化文本
- 修改数据映射,确保configKeyId字段可用

技术细节:
- 前端权限控制:仅管理员可查看和操作删除按钮
- 删除对象:整个用户配置行(用户+应用+引擎类型+版本+配置项)
- 删除接口:DELETE /configuration/baseKeyValue?id={configKeyId}
- 用户确认:弹窗显示删除配置的完整信息

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@v-kkhuang v-kkhuang changed the title feat(setting): 为配置参数添加删除功能 [feat][WEB] add delete functionality for configuration parameters and user config Jun 1, 2026
@v-kkhuang v-kkhuang closed this Jun 3, 2026
@v-kkhuang v-kkhuang deleted the dev-2.0.0-webank-conf branch June 3, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant