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

配置回滚操作后,进入配置编辑页面,无法显示具体的配置类型,统一变成了text类型 #8799

Open
chenhao26-nineteen opened this issue Jul 26, 2022 · 4 comments
Labels
kind/bug Category issues or prs related to bug. status/need discuss

Comments

@chenhao26-nineteen
Copy link
Collaborator

Describe the bug
After configuring the rollback operation, enter the configuration editing page. The specific configuration type cannot be displayed, and it is unified into text type
操作步骤:
1.nacos控制台新建配置,选择配置类型,此处先不要选text类型
2.编辑修改配置
3.回滚配置
4.进入编辑页面,查看,此时配置的类型都是text,无法显示原有类型

Operation steps:

  1. Create a new configuration on the Nacos console and select the configuration type. Do not select the text type here first
  2. Edit and modify configuration
  3. Rollback configuration
  4. Enter the editing page and check. At this time, the configured types are all text, and the original types cannot be displayed

Expected behavior
A clear and concise description of what you expected to happen.

Actually behavior
A clear and concise description of what you actually to happen.

How to Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See errors

Desktop (please complete the following information):

  • OS: [e.g. Centos]
  • Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1]
  • Module [e.g. naming/config]
  • SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context
Add any other context about the problem here.

@wuchubuzai2018
Copy link
Contributor

个人不建议使用Type作为字段名称,这个字段是某些数据库的关键字

@chenhao26-nineteen
Copy link
Collaborator Author

个人不建议使用Type作为字段名称,这个字段是某些数据库的关键字

是不建议,但是之前是这样设计的🤔,这里只能用飘点``转义了!

@KomachiSion
Copy link
Collaborator

回滚配置是不是不需要回滚type,保留原来的type就好了

@chenhao26-nineteen
Copy link
Collaborator Author

回滚配置是不是不需要回滚type,保留原来的type就好了

回滚操作后、无论以前的type是什么、最后都会变成text、在回滚操作后、config_info的type会被置为text、因为history表里面没有存type类型、所以回滚操作完、type是空的、但会被置为默认的text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug. status/need discuss
Projects
None yet
Development

No branches or pull requests

3 participants