apache / dubbo-admin

Compare bc280e5 ... +0 ... df24d39

Coverage Reach
model/domain/Override.java model/domain/Route.java model/domain/Provider.java model/domain/Consumer.java model/domain/TypeDefinition.java model/domain/ServiceDefinition.java model/domain/Entity.java model/domain/MethodDefinition.java model/domain/MockRule.java model/domain/LoadBalance.java model/domain/Weight.java model/domain/MethodMetadata.java model/domain/Tag.java model/domain/FullServiceDefinition.java model/domain/RegistrySource.java model/store/mesh/virtualservice/match/DubboMethodMatch.java model/store/mesh/virtualservice/match/StringMatch.java model/store/mesh/virtualservice/match/DubboAttachmentMatch.java model/store/mesh/virtualservice/match/DubboMethodArg.java model/store/mesh/virtualservice/match/DoubleMatch.java model/store/mesh/virtualservice/match/DoubleRangeMatch.java model/store/mesh/virtualservice/match/ListStringMatch.java model/store/mesh/virtualservice/match/ListDoubleMatch.java model/store/mesh/virtualservice/match/BoolMatch.java model/store/mesh/virtualservice/match/ListBoolMatch.java model/store/mesh/virtualservice/DubboMatchRequest.java model/store/mesh/virtualservice/destination/DubboDestination.java model/store/mesh/virtualservice/destination/DubboRouteDestination.java model/store/mesh/virtualservice/DubboRoute.java model/store/mesh/virtualservice/DubboRouteDetail.java model/store/mesh/virtualservice/VirtualServiceSpec.java model/store/mesh/virtualservice/VirtualServiceRule.java model/store/mesh/destination/loadbalance/LoadBalancerSettings.java model/store/mesh/destination/loadbalance/SimpleLB.java model/store/mesh/destination/loadbalance/ConsistentHashLB.java model/store/mesh/destination/DestinationRuleSpec.java model/store/mesh/destination/Subset.java model/store/mesh/destination/DestinationRule.java model/store/mesh/destination/TrafficPolicy.java model/store/mesh/destination/ConnectionPoolSettings.java model/store/mesh/destination/TcpKeepalive.java model/store/mesh/destination/TCPSettings.java model/store/mesh/VsDestinationGroup.java model/store/mesh/BaseRule.java model/store/OverrideConfig.java model/store/RoutingRule.java model/store/TagRoute.java model/store/OverrideDTO.java model/dto/RelationDTO.java model/dto/docs/CallDubboServiceRequest.java model/dto/docs/ApiInfoRequest.java model/dto/docs/CallDubboServiceRequestInterfaceParam.java model/dto/ServiceDTO.java model/dto/MetricDTO.java model/dto/MockRuleDTO.java model/dto/ServiceDetailDTO.java model/dto/BaseDTO.java model/dto/ServiceTestDTO.java model/dto/ConfigDTO.java model/dto/RouteDTO.java model/dto/AccessDTO.java model/dto/DynamicConfigDTO.java model/dto/BalancingDTO.java model/dto/WeightDTO.java model/dto/ConditionRouteDTO.java model/dto/MeshRouteDTO.java model/dto/TagRouteDTO.java model/adapter/LoadBalance2OverrideAdapter.java model/adapter/BalancingDTO2OverrideConfigAdapter.java model/adapter/DynamicConfigDTO2OverrideDTOAdapter.java model/adapter/WeightToOverrideAdapter.java common/util/RouteUtils.java common/util/ParseUtils.java common/util/ServiceTestV3Util.java common/util/ServiceTestUtil.java common/util/SyncUtils.java common/util/OverrideUtils.java common/util/ConvertUtil.java common/util/Pair.java common/util/CoderUtil.java common/util/UrlUtils.java common/util/Tool.java common/util/YamlParser.java common/util/Constants.java common/exception/ServiceException.java common/exception/SystemException.java common/exception/ResourceNotFoundException.java common/exception/PermissionDeniedException.java common/exception/ParamValidationException.java common/exception/VersionValidationException.java common/exception/ConfigurationException.java common/CommonResponse.java service/impl/OverrideServiceImpl.java service/impl/RouteServiceImpl.java service/impl/ProviderServiceImpl.java service/impl/InstanceRegistryQueryHelper.java service/impl/MetricsServiceImpl.java service/impl/MockRuleServiceImpl.java service/impl/GenericServiceImpl.java service/impl/MeshRouteServiceImpl.java service/impl/ConsumerServiceImpl.java service/impl/ManagementServiceImpl.java service/impl/MetrcisCollectServiceImpl.java service/impl/InstanceRegistryCache.java service/impl/InterfaceRegistryCache.java service/impl/AbstractService.java service/RegistryServerSync.java service/RegistryCache.java controller/ApiDocsController.java controller/ServiceController.java controller/TagRoutesController.java controller/MetricsCollectController.java controller/ConditionRoutesController.java controller/OverridesController.java controller/AccessesController.java controller/LoadBalanceController.java controller/WeightController.java controller/ManagementController.java controller/ServiceTestController.java controller/MeshRouteController.java controller/beans/DubboApiDocsParamInfoBean.java controller/UserController.java controller/editors/CustomLocalDateTimeEditor.java controller/editors/CustomLocalDateEditor.java controller/MockRuleController.java registry/mapping/impl/NacosServiceMapping.java registry/mapping/impl/ZookeeperServiceMapping.java registry/mapping/impl/NoOpServiceMapping.java registry/mapping/AdminMappingListener.java registry/mapping/AdminServiceInstancesChangedListener.java registry/metadata/impl/NacosMetaDataCollector.java registry/metadata/impl/RedisMetaDataCollector.java registry/metadata/impl/ZookeeperMetaDataCollector.java registry/metadata/impl/ConsulMetaDataCollector.java registry/metadata/impl/NoOpMetadataCollector.java registry/config/impl/MultiDynamicConfiguration.java registry/config/impl/NoOpConfiguration.java utils/ApiDocsDubboGenericUtil.java utils/JwtTokenUtil.java utils/LocalDateTimeUtil.java utils/SpringBeanUtils.java config/ConfigCenter.java config/SwaggerConfiguration.java config/WebMvcConfiguration.java interceptor/AuthInterceptor.java authentication/impl/DefaultPreHandle.java handler/CustomExceptionHandler.java DubboAdminApplication.java provider/MockServiceProvider.java

Flags

Flags have been temporarily removed from this view while the flagging feature is refactored for better performance and user experience.

You can still use flags when viewing individual files. Flag-level thresholds will also remain on pull and merge requests in your repository provider.

More information can be found in our documentation.


@@ -77,6 +77,7 @@
Loading
77 77
        //for 2.6
78 78
        if (StringUtils.isNotEmpty(newConditionRoute.getService())) {
79 79
            for (Route old : convertRouteToOldRoute(oldConditionRoute)) {
80 +
                old.setService(id);
80 81
            	registry.unregister(old.toUrl().addParameter(Constants.COMPATIBLE_CONFIG, true));
81 82
            }
82 83
            for (Route updated : convertRouteToOldRoute(newConditionRoute)) {
@@ -101,6 +102,7 @@
Loading
101 102
            RoutingRule originRule = YamlParser.loadObject(config, RoutingRule.class);
102 103
            ConditionRouteDTO conditionRouteDTO = RouteUtils.createConditionRouteFromRule(originRule);
103 104
            for (Route old : convertRouteToOldRoute(conditionRouteDTO)) {
105 +
                old.setService(id);
104 106
                URL oldUrl = old.toUrl();
105 107
                if(oldUrl.getParameter("rule").contains("host") && oldUrl.getParameter("rule").contains("false")) {
106 108
                    registry.unregister(oldUrl);

Learn more Showing 1 files with coverage changes found.

Changes in dubbo-admin-server/src/main/java/org/apache/dubbo/admin/service/RegistryServerSync.java
-1
-1
+2
Loading file...
Files Complexity Coverage
dubbo-admin-server/src/main/java/org/apache/dubbo/admin 19.06% 0.08% 21.58%
Project Totals (149 files) 19.06% 21.58%
Loading