-
Notifications
You must be signed in to change notification settings - Fork 388
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
feat: 配置文件导入导出功能 (#524) #858
feat: 配置文件导入导出功能 (#524) #858
Conversation
alexwanglei
commented
Dec 9, 2022
- fix issue (【配置中心】配置组或者配置文件的导入导出功能 #524)
2022-12-09 17:34:11: =========TEST START========== |
b032c79
to
f229bf3
Compare
导出的zip包格式,现在是只能用导出来的包吗? 是不是可以支持,用户随意的把本地磁盘的一个目录压缩之后,上传到一个 file group 下吗?这种场景下,tag那些都可以不要。然后把目录转化成 / 的文件名? 比如用户有一个这样的目录: 直接就可以创建出 config/a.txt 和 config/common/b.yml 文件。 支持这种场景,是不是应用更广泛一点?比如用户直接把项目里的resource 目录下整个传上去,初始化迁移就很方便。 |
另外,导入的时候,文件冲突是怎么解决的?直接覆盖还是?可能要考虑一下 |
感觉有很多种?
|
为了避免贡献者太多的代码改的,可以先在相关 issue 再次讨论下,确定下最终导入导出的方案 |
这个确实需要考虑,是不是走页面提示比较好?或者导入的时候用户可以选择导入规则
无论选择哪一种,都需要给出冲突的列表以及冲突的最终处理结果? |
Codecov Report
@@ Coverage Diff @@
## main #858 +/- ##
==========================================
+ Coverage 54.34% 54.42% +0.07%
==========================================
Files 182 182
Lines 33281 33497 +216
==========================================
+ Hits 18086 18230 +144
- Misses 12753 12818 +65
- Partials 2442 2449 +7
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
在同命名空间的同组下导入同名的配置文件,在创建配置文件时会报资源已存在的错误。这块时复用的创建配置文件的逻辑。 |
若要支持各种灵活的导入场景,导入接口可能需要增加比较复杂的参数。目前只有一个zip文件参数,等于约定了按照zip文件目录结构去映射命名空间-组-配置文件的方式去导入。 |
f229bf3
to
19bdc9c
Compare
要不先搞简单一点,先支持跨namespace的导出导入 |
导入的格式呢?是这种让用户按照规则组织一下,还是怎么处理? |
现在应该只能信先导出,再导入。用户不需要自己处理规则把? |
018e1bb
to
bc9c481
Compare
hi,alex. We have move all the proto into https://github.com/polarismesh/specification, pls make your change into this repo |
076f9c6
to
90d2c3e
Compare
1321d47
to
934b785
Compare
* fix issue (polarismesh#524)
934b785
to
086cbe3
Compare
等 1.14.0 分支打出来之后,在进行合并改 PR |