From 129b39c6f5bbc05bf8f2e4840fbfa7f9fcff7f4e Mon Sep 17 00:00:00 2001 From: Andrei Piankouski Date: Thu, 9 Nov 2023 17:09:15 +0300 Subject: [PATCH] EPMRPP-87537 || Update SuggestInfo --- .../core/analyzer/auto/client/model/SuggestInfo.java | 10 ++++++++++ .../core/analyzer/auto/client/model/SuggestRq.java | 10 ++++++++++ .../core/analyzer/auto/impl/SuggestItemService.java | 1 + 3 files changed, 21 insertions(+) diff --git a/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestInfo.java b/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestInfo.java index 3ccc587e95..355b491798 100644 --- a/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestInfo.java +++ b/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestInfo.java @@ -33,6 +33,8 @@ public class SuggestInfo { private String launchName; + private Long launchNumber; + private String issueType; private Long relevantItem; @@ -242,4 +244,12 @@ public Long getClusterId() { public void setClusterId(Long clusterId) { this.clusterId = clusterId; } + + public Long getLaunchNumber() { + return launchNumber; + } + + public void setLaunchNumber(Long launchNumber) { + this.launchNumber = launchNumber; + } } diff --git a/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestRq.java b/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestRq.java index 7bbe819a0c..c8576dc275 100644 --- a/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestRq.java +++ b/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/client/model/SuggestRq.java @@ -38,6 +38,8 @@ public class SuggestRq { private String launchName; + private Long launchNumber; + private Long project; private AnalyzerConfig analyzerConfig; @@ -118,4 +120,12 @@ public Set getLogs() { public void setLogs(Set logs) { this.logs = logs; } + + public Long getLaunchNumber() { + return launchNumber; + } + + public void setLaunchNumber(Long launchNumber) { + this.launchNumber = launchNumber; + } } diff --git a/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/impl/SuggestItemService.java b/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/impl/SuggestItemService.java index e7152d7e99..5547e2e220 100644 --- a/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/impl/SuggestItemService.java +++ b/src/main/java/com/epam/ta/reportportal/core/analyzer/auto/impl/SuggestItemService.java @@ -151,6 +151,7 @@ private SuggestRq prepareSuggestRq(Launch launch, Project project) { suggestRq.setLaunchName(launch.getName()); suggestRq.setProject(project.getId()); suggestRq.setAnalyzerConfig(getAnalyzerConfig(project)); + suggestRq.setLaunchNumber(launch.getNumber()); return suggestRq; }