sermant-io / Sermant

CNCF sandbox project, a Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.25k stars 164 forks source link

Optimize configuration management services #1623

Closed hanbingleixue closed 1 month ago

hanbingleixue commented 1 month ago

What type of PR is this?

Enhancement

What this PR does / why we need it?

  1. Modify configuration query interface

  2. Modify the configuration details page and render according to the configuration template image image

  3. Add a configuration template query interface

Which issue(s) this PR fixes?

Fixes #1622

Does this PR introduce a user-facing change?

No

Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 33.33333% with 144 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...java/io/sermant/backend/service/ConfigService.java 51.42% 22 Missing and 12 partials :warning:
...o/sermant/backend/service/PageTemplateService.java 0.00% 29 Missing :warning:
.../sermant/backend/yaml/FieldMappingConstructor.java 0.00% 18 Missing :warning:
.../java/io/sermant/backend/yaml/YamlRepresenter.java 0.00% 10 Missing :warning:
...va/io/sermant/backend/entity/template/Element.java 0.00% 9 Missing :warning:
...rvice/dynamicconfig/zookeeper/ZooKeeperClient.java 12.50% 7 Missing :warning:
...a/io/sermant/backend/entity/config/ConfigInfo.java 77.77% 3 Missing and 3 partials :warning:
...ervice/dynamicconfig/kie/client/kie/KieClient.java 0.00% 5 Missing :warning:
...mant/backend/entity/template/PageTemplateInfo.java 28.57% 5 Missing :warning:
...ermant/backend/entity/template/ConfigTemplate.java 0.00% 4 Missing :warning:
... and 6 more
Flag Coverage Δ Complexity Δ
unittests 43.79% <33.33%> (-0.37%) 182.00 <0.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ Complexity Δ
...va/io/sermant/backend/common/conf/CommonConst.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
.../java/io/sermant/backend/entity/config/Result.java 95.65% <100.00%> (+1.20%) 0.00 <0.00> (ø)
.../io/sermant/backend/common/conf/DynamicConfig.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...ant/backend/controller/PageTemplateController.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...o/sermant/backend/controller/ConfigController.java 44.11% <70.00%> (-1.83%) 0.00 <0.00> (ø)
...ava/io/sermant/backend/entity/template/Option.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ermant/backend/entity/template/ConfigTemplate.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...o/sermant/backend/entity/template/Description.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../java/io/sermant/backend/entity/template/Name.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...ervice/dynamicconfig/kie/client/kie/KieClient.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
... and 8 more

... and 91 files with indirect coverage changes