Closed v-kkhuang closed 11 months ago
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.
WeChat Assistant | WeChat Public Account |
---|---|
Name | Description | Subscribe | Unsubscribe | Archive |
---|---|---|---|---|
dev@linkis.apache.org | community activity information | subscribe | unsubscribe | archive |
需求背景
目前用户需要修改引擎配置项时,无法通过界面化操作进行修改,为了方便用户更加便捷操作修改引擎配置,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
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: