Open
Conversation
Collaborator
renxuehui
commented
Jul 17, 2021
- 蓝绿拓扑图功能
…into feature # Conflicts: # discovery-platform-server/discovery-platform-starter-server/src/main/java/com/nepxion/discovery/platform/server/entity/dto/GrayDto.java # discovery-platform-server/discovery-platform-starter-server/src/main/java/com/nepxion/discovery/platform/server/service/GrayService.java # discovery-platform-server/discovery-platform-starter-server/src/main/java/com/nepxion/discovery/platform/server/service/GrayServiceImpl.java
HaojunRen
reviewed
Jul 17, 2021
| return nodeCache; | ||
| } | ||
|
|
||
| public static GraphDto changeRuleEntityToGraph(RuleEntity ruleEntity) { |
|
|
||
| public class GraphUtils { | ||
| private GraphUtils(){} | ||
| private static final String BEGIN_NODE_ID = "begin"; |
| } | ||
|
|
||
| private String condition; | ||
| private String routeId; |
| private String id; | ||
| private String label; | ||
| private String type; | ||
| private String version; |
|
|
||
| private String source; | ||
| private String target; | ||
| private String version; |
| * @version 1.0 | ||
| */ | ||
|
|
||
| public class GraphEdgeDto { |
| return edges; | ||
| } | ||
|
|
||
| public void setEdges(List<GraphEdgeDto> edges) { |
| var type = target.get('type'); | ||
| if (type === 'circle') { | ||
| alert('你点击的是边上的圆点'); | ||
| } |
| * @version 1.0 | ||
| */ | ||
|
|
||
| import com.nepxion.discovery.common.util.JsonUtil; |
HaojunRen
reviewed
Jul 17, 2021
| import java.util.List; | ||
|
|
||
| public class GraphDto { | ||
|
|
Member
There was a problem hiding this comment.
Dto集成序列化接口,序列化自动通过IDE生成,不要用1L表示
|
|
||
| public void setEdges(List<GraphEdgeDto> edges) { | ||
| this.edges = edges; | ||
| } |
Member
There was a problem hiding this comment.
增加如下方法,在底部
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@Override
public boolean equals(Object object) {
return EqualsBuilder.reflectionEquals(this, object);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
- 代码格式模板导入 - 去掉edgeDto version; NodeDto, version => value - hash、equals、toString; - serialVersionUID;
HaojunRen
reviewed
Jul 18, 2021
| <i class="layui-icon layui-icon-add-1"></i> 查看<b>拓扑</b>图 | ||
| </button> | ||
| </div> | ||
| </@insert> |
| * @author Xuehui Ren | ||
| * @version 1.0 | ||
| */ | ||
|
|
|
|
||
| private static final long serialVersionUID = 3536615004773370039L; | ||
| private String source; | ||
| private String target; |
| * | ||
| * @author Xuehui Ren | ||
| * @version 1.0 | ||
| */ |
|
|
||
| private static final long serialVersionUID = 5728555476871710353L; | ||
| private String id; | ||
| private String label; |
| import com.nepxion.discovery.platform.server.entity.po.BlueGreenPo; | ||
| import com.nepxion.discovery.platform.server.service.base.BasePublishService; | ||
| import java.util.Collection; | ||
| import java.util.List; |
- UI蓝绿颜色交替显示; - 选中记录才能查看拓扑图; - reformat for tab to 4 spaces; - 去掉后台测试代码,改成正式: RuleEntity ruleEntity = platformDiscoveryAdapter.getConfig(portalName)
# Conflicts: # discovery-platform-server/discovery-platform-starter-server/src/main/java/com/nepxion/discovery/platform/server/service/BlueGreenService.java # discovery-platform-server/discovery-platform-starter-server/src/main/java/com/nepxion/discovery/platform/server/service/BlueGreenServiceImpl.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.