478320 commented on code in PR #5685:
URL: https://github.com/apache/shenyu/pull/5685#discussion_r1792720081
##########
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ApiServiceImpl.java:
##########
@@ -126,11 +126,6 @@ private String update(final ApiDTO apiDTO) {
tagRelationMapper.deleteByApiId(apiDO.getId());
tagRelationMapper.batchInsert(tags);
}
- if (ApiStateEnum.PUBLISHED.getState() == apiDO.getState()) {
Review Comment:
Hello, in order to realize that the user can directly use the api document
after adding it in the visual operation interface, shenyu Gateway creates the
default selector and rule when calling to create the api document, so the user
can directly use the document for testing. But this also causes the api
document to be coupled with selector and rule. To delete this part, users need
to manually create the api document and test the need to manually add selector,
rule, metadate, but solve the coupling problem of api and selector and rule.
Users who use annotations such as @ShenyuGetMapping, as well as those who use
swagger, will not be affected by the automatic creation of selectors and so on
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]