-
-
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
fix get the openapi interface that contains namespace information for deleted items #4596
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4596 +/- ##
============================================
+ Coverage 46.32% 46.48% +0.16%
- Complexity 1559 1568 +9
============================================
Files 331 331
Lines 10356 10360 +4
Branches 1042 1043 +1
============================================
+ Hits 4797 4816 +19
+ Misses 5261 5246 -15
Partials 298 298
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There are many places that consume the result of One way to fix the issue is to filter the deleted items in places that we don't need them, or we may add a flag and let the caller decide whether to include the deleted items or not, e.g. |
I agree with your opinion, but I found that the export namespace config file contains deleted items, this' right? |
I think the export namespace config file should not contain deleted items, which means we also need to add the |
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.
Please add some unit test in NamespaceServiceTest.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/NamespaceService.java
Outdated
Show resolved
Hide resolved
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/NamespaceServiceTest.java
Outdated
Show resolved
Hide resolved
I think |
apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/NamespaceServiceTest.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.
LGTM
What's the purpose of this PR
fix get the openapi interface that contains namespace information for deleted items.
Which issue(s) this PR fixes:
Fixes #4593
Brief changelog
fix get the openapi interface that contains namespace information for deleted items
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.