Skip to content

feat(web): 添加用户配置管理页面删除功能#1038

Closed
v-kkhuang wants to merge 729 commits into
dev-2.0.0from
dev-2.0.0-webank-conf
Closed

feat(web): 添加用户配置管理页面删除功能#1038
v-kkhuang wants to merge 729 commits into
dev-2.0.0from
dev-2.0.0-webank-conf

Conversation

@v-kkhuang

Copy link
Copy Markdown

功能概述

为用户配置管理页面添加删除功能,允许管理员删除冗余的用户配置项。

主要变更

前端修改

  • 用户配置管理页面 (linkis-web/src/apps/linkis/module/userConfig/index.vue)
    • 在操作列添加删除按钮
    • 实现 deleteConfig() 方法,包含确认对话框
    • 添加前端权限控制(仅管理员可见)
    • 调用后端删除 API:DELETE /configuration/baseKeyValue?id={configKeyId}

国际化

功能特性

  • ✅ 管理员可删除用户配置(用户+应用+引擎类型+版本+配置项)
  • ✅ 删除前显示确认对话框,展示配置详情
  • ✅ 前端权限控制(基于 isLogAdmin 标识)
  • ✅ 删除成功后自动刷新表格

使用场景

管理员遇到冗余的用户配置时,可以快速删除,无需手动操作数据库。

测试

  • ✅ 手动测试通过
  • ✅ E2E 测试用例已创建

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

peacewong and others added 30 commits November 29, 2023 15:48
[Bug][1.5.0] Spark scala task error should print task log
* Fix flink-1.16 ClassNotFoundException bug

* Fix flink-1.16 ClassNotFoundException bug
…on yml configuration (apache#5020)

* add template_required column to linkis_ps_configuration_config_key close apache#5018

* Fix Local Debug cannot read application ymal
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.9 to 4.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* flink load default configuration

* fix gc log bug

* code format
…#5026)

Bumps org.apache.avro:avro from 1.11.0 to 1.11.3.

---
updated-dependencies:
- dependency-name: org.apache.avro:avro
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* sql field comment semicolon with escape

* add junit test

* 1.format source code
 2.add code comment
* Fix repl get task result bug

* Fix repl get task result bug
* Fix flink getJobStatus bug

* Fix flink sql kill yarn application and getJobStatus fail
* Fix user conf resuource are not being applied close apache#5040

* Fix datasource module build

* Update entrance ha default switch offf
* upgrade linkis version to 1.5.0

* upgrade docker linkis version to 1.5.0
* [Feature] Add Doris engine to Linkis
* Spark etl supports doris

* Modify known-dependencies.txt

* Optimized code
v-kkhuang and others added 26 commits April 23, 2026 14:11
* #AI commit# 开发阶段: dev 2.0.0 特性文档整理

* #AI commit# 开发阶段: 增加Licensed
…al refresh (#996)

* #AI commit# 开发阶段: 支持hadoop3引擎物料刷新

* #AI commit# 开发阶段: 优化引擎脚本生成逻辑
…vent security leakage (#1003)

* #AI commit# 开发阶段: 加密日志打印用户运行code

* #AI commit# 开发阶段: 加密日志打印用户运行code
…ration files (#1004)

* #AI commit# 开发阶段: 代码格式化

* #AI commit# 开发阶段: 单元测试&配置文件优化
…1011)

Add setJobIdMDC/removeJobIdMDC at key points where task ID is available
but not set to MDC, so that task-related logs include [JobId-xxx] for
cross-service log tracing.

Changes:
- EntranceServer: move setJobIdMDC before first logger.info call
- EntranceRestfulApi: add MDC in submit() and execute() methods
- EntranceJob: override transition() to set MDC for status change logs
- JobHistoryQueryServiceImpl: add MDC in change() method
- TaskExecutionServiceImpl: add MDC in dealRequestTaskKill/Status/Pause/Resume

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
…r cleanup process (#1015)

* #AI commit# 开发阶段: 异常注释修复

* #AI commit# 开发阶段: 修复依赖注入失败

* #AI commit# 开发阶段: 优化2.0.0特性文档

* #AI commit# 开发阶段: 日志打印优化,spark init sql 异常优化

* #AI commit# 开发阶段: 支持hadoop3引擎物料刷新

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程
…ase types (#984)

* update version to 1.9.0

* #AI commit# refactor: 调整 GatewaySpringConfiguration 中 SecurityFilter 设置逻辑

- 添加 userRestful 字段注入
- 将 SecurityFilter.setUserRestful 调用从 createUserRestful 方法移至 @PostConstruct init 方法

* #AI commit# refactor: 升级 Knife4j 和 Springfox 到 3.x 版本

- 在 apache profile 中升级 knife4j.version 从 2.0.9 到 3.0.3
- 在 apache profile 中升级 springfox.version 从 2.10.5 到 3.0.0
- 添加 hbase-shaded-jetty 和 hbase-protocol-shaded 排除依赖,解决 Jetty 冲突
- SwaggerBeanPostProcessor 保持兼容 Springfox 3.x API

修复问题:
- 解决 publicservice 服务启动失败问题
- 解决 DynamicResponseModelReader 依赖 TypeNameExtractor 错误
- 解决 Jetty ServletHolder.setClassFrom IllegalStateException 错误

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# Exclude hbase dependencies from JDBC and Hive engine connectors

Add exclusions for hbase-shaded-jetty and hbase-protocol-shaded to prevent
Jetty class conflicts in JDBC and Hive EngineConn plugins.

Modified files:
- linkis-engineconn-plugins/jdbc/pom.xml
- linkis-engineconn-plugins/hive/pom.xml

* #AI COMMIT# Exclude hbase-shaded-jetty from assembly packaging

Add hbase-shaded-jetty and hbase-protocol-shaded exclusions to distribution.xml
files to prevent Jetty class conflicts at runtime.

Modified files:
- linkis-public-enhancements/distribution.xml
- linkis-engineconn-plugins/hive/src/main/assembly/distribution.xml
- linkis-engineconn-plugins/jdbc/src/main/assembly/distribution.xml

* #AI COMMIT# Use wildcard pattern to exclude all hbase-shaded jars

Change from excluding individual hbase-shaded-* jars to using wildcard
pattern to exclude all hbase-shaded packages at once.

Modified files:
- linkis-public-enhancements/distribution.xml
- linkis-engineconn-plugins/hive/src/main/assembly/distribution.xml
- linkis-engineconn-plugins/jdbc/src/main/assembly/distribution.xml

* #AI COMMIT# Exclude all hbase-shaded jars explicitly

List each hbase-shaded jar explicitly instead of using wildcard pattern
which doesn't work with Maven assembly plugin.

Modified files:
- linkis-public-enhancements/distribution.xml
- linkis-engineconn-plugins/hive/src/main/assembly/distribution.xml
- linkis-engineconn-plugins/jdbc/src/main/assembly/distribution.xml

* #AI COMMIT# Exclude all hbase jars from linkis-public-enhancements assembly

Add comprehensive exclusions for all hbase-related jars to prevent
Jetty class conflicts and reduce unnecessary dependencies.

Modified:
- linkis-public-enhancements/distribution.xml

* # AI COMMIT# Optimize linkis scripts - service alias and status output format

## Changes

### 1. Service Alias Mapping (alias 1-6)
- alias [1] --> mg-eureka
- alias [2] --> mg-gateway
- alias [3] --> ps-publicservice
- alias [4] --> cg-linkismanager
- alias [5] --> cg-entrance
- alias [6] --> cg-engineconnmanager

### 2. Status Output Format
- Unified format: alias->[X]  [service-name]  [OK/FAILED]
- Service names left-aligned in 22-character width
- Green [OK] for running services
- Red [FAILED] for failed services

### 3. Files Modified
- linkis-dist/package/sbin/linkis
- linkis-dist/package/sbin/linkis-start-all.sh

### 4. Help Information
Updated help message to show new alias format

* #AI COMMIT# feat: Add build-time parameter for Python Module feature toggle

- Add PYTHON_MODULE environment variable support in vue.config.js
- Create separate python-module-config virtual module to avoid circular dependency
- Modify router.js to conditionally register pythonModule route
- Update index.vue to control menu visibility based on feature flag
- Default: enabled, use PYTHON_MODULE=false npm run build to disable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# docs: Remove Python Module documentation files

These documentation files are not required by the project and can be removed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# fix: Fix i18n key for add button in datasourceAccess module

- Change 'message.linkis.basedata.add' to 'message.linkis.basedataManagement.add'
- Keep consistent with other modules like datasourceEnv
- Fix Chinese translation not displaying for add button

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# feat: Add build-time parameter for disallow system user login feature

Add compile-time toggle for disallow login feature, similar to python module:
- Default enabled (feature ON)
- Use DISALLOW_LOGIN=false npm run build to disable
- Create virtual module disallow-login-config.js for config injection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# fix: Add DB2 validation query support for JDBC engine connection pool

- Add DB2-specific validation query "SELECT 1 FROM SYSIBM.SYSDUMMY1"
- Same pattern as existing Oracle validation query handling
- Fixes DB2 connection pool validation error when using datasource name

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# fix: Exclude conflicting jars from JDBC plugin assembly

- Exclude Jetty jars to avoid version conflicts with public-module
- Exclude SLF4J bindings to prevent multiple binding errors
- Exclude Hadoop jars to use shared public-module versions

These exclusions prevent class loading conflicts when JDBC engine
starts and uses jars from both plugin lib and public-module.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI COMMIT# refactor: Make validation query configurable for different database types

- Add configuration parameter 'wds.linkis.jdbc.validation.query.mapping'
- Default mapping: oracle:SELECT 1 FROM DUAL,db2:SELECT 1 FROM SYSIBM.SYSDUMMY1
- Remove hardcoded database-specific validation query logic
- To add new database type, just update configuration, no code change needed

Benefits:
- Configuration-driven approach for extensibility
- Easy to add support for new databases without modifying source code
- Default values work for most common databases

Usage example:
  Add to linkis-engineconn.properties:
  wds.linkis.jdbc.validation.query.mapping=oracle:SELECT 1 FROM DUAL,db2:SELECT 1 FROM SYSIBM.SYSDUMMY1,postgresql:SELECT 1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* #AI commit# Remove hbase-server dependency from pom.xml

Removed hbase-server dependency and its exclusions from pom.xml.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Casion <casionone@gmail.com>
…tion handling (#1023)

* #AI commit# 开发阶段: 异常注释修复

* #AI commit# 开发阶段: 修复依赖注入失败

* #AI commit# 开发阶段: 优化2.0.0特性文档

* #AI commit# 开发阶段: 日志打印优化,spark init sql 异常优化

* #AI commit# 开发阶段: 支持hadoop3引擎物料刷新

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复spark/hive引擎执行任务error异常
* #AI commit# 开发阶段: 异常注释修复

* #AI commit# 开发阶段: 修复依赖注入失败

* #AI commit# 开发阶段: 优化2.0.0特性文档

* #AI commit# 开发阶段: 日志打印优化,spark init sql 异常优化

* #AI commit# 开发阶段: 支持hadoop3引擎物料刷新

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复spark/hive引擎执行任务error异常

* #AI commit# 开发阶段: 修复开源代码合并异常
…nce server (#1028)

* #AI commit# 开发阶段: 异常注释修复

* #AI commit# 开发阶段: 修复依赖注入失败

* #AI commit# 开发阶段: 优化2.0.0特性文档

* #AI commit# 开发阶段: 日志打印优化,spark init sql 异常优化

* #AI commit# 开发阶段: 支持hadoop3引擎物料刷新

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复spark/hive引擎执行任务error异常

* #AI commit# 开发阶段: 修复开源代码合并异常

* #AI commit# 开发阶段: 去除日志打印重复代码

* #AI commit# 开发阶段: 适配行内版本
…pt to inline version (#1030)

* #AI commit# 开发阶段: 异常注释修复

* #AI commit# 开发阶段: 修复依赖注入失败

* #AI commit# 开发阶段: 优化2.0.0特性文档

* #AI commit# 开发阶段: 日志打印优化,spark init sql 异常优化

* #AI commit# 开发阶段: 支持hadoop3引擎物料刷新

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复日志打印异常,优化monitor清理流程

* #AI commit# 开发阶段: 修复spark/hive引擎执行任务error异常

* #AI commit# 开发阶段: 修复开源代码合并异常

* #AI commit# 开发阶段: 去除日志打印重复代码

* #AI commit# 开发阶段: 适配行内版本

* #AI commit# 开发阶段: 修复编译报错
- 新增删除按钮UI,仅管理员可见
- 实现删除确认对话框
- 调用现有接口 DELETE /configuration/keyvalue 删除配置值
- 添加前端权限控制

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
在用户配置管理页面添加删除功能,支持管理员删除用户配置行。

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

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

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.