-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
support export import config by env #3947
support export import config by env #3947
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3947 +/- ##
============================================
+ Coverage 51.65% 52.44% +0.79%
- Complexity 2547 2611 +64
============================================
Files 484 484
Lines 14844 15203 +359
Branches 1536 1572 +36
============================================
+ Hits 7667 7973 +306
- Misses 6645 6675 +30
- Partials 532 555 +23
Continue to review full report at Codecov.
|
Is there an example of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great feature!
Will be used by financial company's Operations Engineer widely in the feature.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ConfigsExportService.java
Outdated
Show resolved
Hide resolved
...rtal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConfigsImportController.java
Outdated
Show resolved
Hide resolved
...rtal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConfigsImportController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ConfigsImportService.java
Show resolved
Hide resolved
Please also update the CHANGES.md |
the bug of imported item not exactly same wtih before had fixed , please verify again. |
I will implement export/import by namespace with UI at weekend. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one lint.
I tried to export and import the sample data(access code: c3x4), but many errors occurred during import phase.
It looks like the itemid and namespace id of the exported data is 0, however, they are not 0 in the actual database.
The itemid and namespace id of the exported data is also 0.
|
@nobodyiam |
b995911
to
fd8854c
Compare
@lepdou thanks, it works now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some conficts
...rtal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConfigsImportController.java
Outdated
Show resolved
Hide resolved
...rtal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConfigsImportController.java
Outdated
Show resolved
Hide resolved
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ItemService.java
Outdated
Show resolved
Hide resolved
b9b76fd
to
f709e33
Compare
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ConfigsImportService.java
Outdated
Show resolved
Hide resolved
export/import by namespace is a nice feature, will we implement it via this pr? |
fba2de8
to
ad86f8b
Compare
ad86f8b
to
7d57d1b
Compare
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
Which issue(s) this PR fixes:
Brief changelog
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.