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

kv collection should not refer to label collection #75

Open
tianxiaoliang opened this issue Jan 20, 2020 · 0 comments
Open

kv collection should not refer to label collection #75

tianxiaoliang opened this issue Jan 20, 2020 · 0 comments
Assignees

Comments

@tianxiaoliang
Copy link
Contributor

tianxiaoliang commented Jan 20, 2020

kv记录应当能支持更新label内容
场景:
创建一个key为timeout。 label内容是集群为A,服务名为购物车。但事后希望给这个配置进行变更新增一个label version。

已有功能依然保留:

  • 创建kv时根据label内容生成唯一的label id并记录到label collection
  • 更新kv时支持不传入key id,根据key name和label内容查到唯一记录并更新

后台改造点:

  • 更新kv时,允许传入key id,根据key id,查出已存在key记录,并对label进行覆盖。还需要对这个新的label判断是否需要create一个新的label doc并生成新的label id并更新kv的label id
@tianxiaoliang tianxiaoliang changed the title kv collection should not refet to label collection kv collection should not refer to label collection Jan 20, 2020
@tianxiaoliang tianxiaoliang self-assigned this Jan 21, 2020
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

No branches or pull requests

1 participant