Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
v-kkhuang opened this issue Jul 31, 2023 · 1 comment
Closed
Labels

Comments

@v-kkhuang
Copy link
Contributor

v-kkhuang commented Jul 31, 2023

需求背景

目前用户需要修改引擎配置项时,无法通过界面化操作进行修改,为了方便用户更加便捷操作修改引擎配置,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:

  1. 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
  2. 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
Copy link

😊 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
👉 How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
[email protected] community activity information subscribe unsubscribe archive

peacewong added a commit to WeDataSphere/linkis that referenced this issue Oct 24, 2023
…t console apache#4842

[Feature]New user configuration function added to the management console apache#4841
peacewong added a commit to WeDataSphere/linkis that referenced this issue Oct 26, 2023
…t console apache#4842

[Feature]New user configuration function added to the management console apache#4841
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants