[feat][PES][configuration] add admin delete function for user config#1066
Open
v-kkhuang wants to merge 3 commits into
Open
[feat][PES][configuration] add admin delete function for user config#1066v-kkhuang wants to merge 3 commits into
v-kkhuang wants to merge 3 commits into
Conversation
…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>
…ies for user config deletion feature
6ca10ca to
0b58e88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
deleteKeyValueByAdminAPI endpoint with admin permission checkdeleteConfigValueByIdmethod in Service and Mapper layerscheckIsAdminmethod for frontend permission controlChecklist