Skip to content

[feat][PES][configuration] add admin delete function for user config#1066

Open
v-kkhuang wants to merge 3 commits into
dev-2.0.0from
dev-2.0.0-conf
Open

[feat][PES][configuration] add admin delete function for user config#1066
v-kkhuang wants to merge 3 commits into
dev-2.0.0from
dev-2.0.0-conf

Conversation

@v-kkhuang

Copy link
Copy Markdown

What is the purpose of the change

Background/Problem:
Currently, the Linkis configuration management module only supports viewing and editing user-level configuration values but lacks the ability to delete invalid or outdated configurations. This leads to configuration accumulation over time, making it difficult for administrators to maintain a clean and efficient configuration environment.

Purpose of Change:
This PR adds admin-only delete functionality for user configuration values, allowing administrators to remove invalid or outdated user-level configurations through a secure and user-friendly interface. The implementation includes backend API with permission validation and frontend UI enhancements with admin-only visibility controls.

Value/Impact:
After this change, administrators can efficiently manage configuration lifecycles, reducing configuration clutter and improving system maintainability. The feature also enhances security through dual-layer permission validation (frontend + backend).

Related issues/PRs

Related issues: close #1065
Related pr:none

Brief change log

  • Add deleteKeyValueByAdmin API endpoint with admin permission check
  • Add deleteConfigValueById method in Service and Mapper layers
  • Add delete button and confirmation dialog in frontend configuration management UI
  • Implement checkIsAdmin method for frontend permission control
  • Add comprehensive test cases and testing documentation
  • Add Cucumber testing dependencies to pom.xml
  • Update internationalization files (zh.json, en.json) for delete functionality

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.

v-kkhuang and others added 2 commits June 10, 2026 14:16
…user config

- Add DELETE /configuration/admin/keyvalue API for admin to delete any user's config
- Add delete button in config management page (admin only)
- Add delete confirmation dialog with full config info
- Add i18n support for delete function (zh/en)

#linkis-web #linkis-api

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@v-kkhuang v-kkhuang added the enhancement New feature or request label Jun 10, 2026
@aiceflower aiceflower force-pushed the dev-2.0.0-conf branch 2 times, most recently from 6ca10ca to 0b58e88 Compare June 16, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant