apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.31k stars 1.17k forks source link

[Feature]New user configuration function added to the management console #4841

Closed v-kkhuang closed 11 months ago

v-kkhuang commented 1 year ago

需求背景

目前用户需要修改引擎配置项时,无法通过界面化操作进行修改,为了方便用户更加便捷操作修改引擎配置,linkis新增运维工具,用户配置管理页面,页面可对用户引擎配置项进行修改

目标

1.完成用户配置项修改界面化操作 2.用户配置页面支持搜索:用户名,应用名,引擎类型,配置项(模糊搜索) 3.支持新增、修改功能 4.不支持删除 5.修改功能只支持修改配置值

处理方案

前端: 页面输入框参数: 用户名,应用名,引擎类型,配置项(模糊搜索) 页面展示参数: 用户名,应用名,引擎类型,引擎版本,配置项(模糊搜索),配置名称,配置项默认值,配置值 新增页面: 引擎类型:下拉框选择,数据来源:configuration/engineType 引擎版本:下拉选择,数据来源:engineplugin/getTypeVersionList 配置项:下拉选择,数据来源:configuration/getItemList 后端: 1.新增查询接口,用户配置的配置值保存在linkis_ps_configuration_config_value 表中,但想展示其他数据必须将关联表一起带上,关联关系在数据结构展示,关联的表有:linkis_ps_configuration_config_key、linkis_cg_manager_label,该接口支持用户名,应用名,引擎类型,配置项(模糊搜索)参数筛选 2.复用configration\keyvalue 接口完成新增、修改逻辑 修改:只支持修改配置值,修改时接口会根据校验类型,对配置值进行校验,不满足参数校验,将会返回错误提示 新增:接口根据用户输入的用户名、应用名、引擎类型、引擎版本、组装成label,通过label查询linkis_cg_manager_label表中label是否存在,不存在则新增,存在则直接修改配置值


Requirement background

At present, when users need to modify engine configuration items, they cannot modify them through interface operations. In order to make it more convenient for users to operate and modify engine configurations, Linkis has added an operation and maintenance tool, a user configuration management page, which can modify user engine configuration items

Goal

  1. Complete the user configuration item modification interface operation
  2. The user configuration page supports search: username, application name, engine type, configuration items (fuzzy search)
  3. Support for adding and modifying functions
  4. Deletion is not supported
  5. The modification function only supports modifying configuration values

    Processing plan

    Front end: Page input box parameters: User name, application name, engine type, configuration item (fuzzy search) Page display parameters: User name, application name, engine type, engine version, configuration item (fuzzy search), configuration name, default value of configuration item, configuration value New page: Engine type: drop-down box selection, data source: configuration/engineType Engine version: dropdown selection, data source: engine plugin/getTypeVersionList Configuration item: dropdown selection, data source: configuration/getItemList Backend:

  6. Add a new query interface, and save the user configured configuration values in linkis Ps Configuration Config In the value table, but if you want to display other data, you must bring the association table together. The association relationship is displayed in the data structure, and the associated tables include: linkis Ps Configuration Config Key, linkis Cg Manager_ Label, this interface supports filtering of user name, application name, engine type, configuration item (fuzzy search) parameters
  7. Reuse the configuration keyvalue interface to complete adding and modifying logic Modification: Only configuration values can be modified. During modification, the interface will verify the configuration values based on the verification type. If the parameter verification is not met, an error prompt will be returned New: The interface is assembled into a label based on the user's input username, application name, engine type, engine version, and can be used to query linkis through the label Cg Manager_ Does the label exist in the label table? If it does not exist, add it. If it does exist, directly modify the configuration value
github-actions[bot] commented 1 year ago

:blush: Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive