- The files 'server.xml' and index.jsp are embedded inside the UI docker image during build stage
### Removed
+
+## [0.4.6-SNAPSHOT] - 02 December 2019
+### Added
+
+### Changed
+- Validation results are ignored when there are no robot test results associated with them
+
+### Removed
<groupId>org.akraino.validation</groupId>
<artifactId>ui</artifactId>
- <version>0.4.5-SNAPSHOT</version>
+ <version>0.4.6-SNAPSHOT</version>
<name>Bluval UI Maven Webapp</name>
<packaging>war</packaging>
vDbResult.setTimestamp(timestamp);
vDbResults.add(vDbResult);
}
- } catch (IllegalArgumentException | HttpException | NullPointerException | NoSuchElementException ex) {
+ } catch (HttpException | RuntimeException ex) {
LOGGER.warn(EELFLoggerDelegate.auditLogger, "Exception occured while retrieving timestamp : "
+ timestamp + " result." + UserUtils.getStackTrace(ex));
continue;
timestamp = timestamp.substring(0, timestamp.length() - 1);
ValidationDbTestResult vDbResult = this.getResult(name, version, siloText, timestamp);
vDbResults.add(vDbResult);
- } catch (IllegalArgumentException | HttpException | NullPointerException ex) {
+ } catch (HttpException | RuntimeException ex) {
LOGGER.warn(EELFLoggerDelegate.auditLogger,
"Exception occured while retrieving timestamp results. " + UserUtils.getStackTrace(ex));
continue;
}
}
return vDbResult;
- } catch (IllegalArgumentException | HttpException | NullPointerException ex) {
+ } catch (HttpException | RuntimeException ex) {
LOGGER.warn(EELFLoggerDelegate.auditLogger,
"Error when trying to retrieve results. " + UserUtils.getStackTrace(ex));
continue;
continue;
}
return vDbResult;
- } catch (IllegalArgumentException | HttpException | NullPointerException ex) {
+ } catch (HttpException | RuntimeException ex) {
LOGGER.warn(EELFLoggerDelegate.auditLogger,
"Error when trying to retrieve results. " + UserUtils.getStackTrace(ex));
continue;
continue;
}
List<RobotTestResult> robotTestResults = getRobotTestResults(nexusUrl + "/" + layer);
+ if (robotTestResults.size() < 1) {
+ continue;
+ }
WRobotNexusTestResult wrapper = new WRobotNexusTestResult();
wrapper.setLayer(layer);
wrapper.setRobotNexusTestResults(robotTestResults);
}
List<ValidationDbTestResult> vNexusResults = new ArrayList<ValidationDbTestResult>();
List<ValidationDbTestResult> vResults = nexusService.getResults(name, version, labInfo.getSilo(), date);
- if (vResults != null && vResults.size() > 1) {
+ if (vResults != null && vResults.size() >= 1) {
for (ValidationDbTestResult vNexusResult : vResults) {
if (dbAdapter.checkValidityOfNexusResult(vNexusResult)) {
vNexusResult.setLab(labInfo);
}
svc.filterWithResult = function(validationDbTestResults,
filterResult) {
+ var validationDbTestResultsWithNoErrors = [];
+ angular
+ .forEach(
+ validationDbTestResults,
+ function(validationDbTestResult) {
+ if (validationDbTestResult.submission || (validationDbTestResult.wrobotDbTestResults && validationDbTestResult.wrobotDbTestResults.length > 0)) {
+ validationDbTestResultsWithNoErrors.push(validationDbTestResult);
+ }
+ });
if (filterResult === undefined || filterResult === '') {
- return validationDbTestResults;
+ return validationDbTestResultsWithNoErrors;
}
var filteredResults = [];
- angular.forEach(validationDbTestResults, function(
+ angular.forEach(validationDbTestResultsWithNoErrors, function(
validationDbTestResult) {
if (validationDbTestResult.result === true
&& 'success'.includes(filterResult