Skip to content

Commit

Permalink
EPMRPP-87537 || Launch number not indexing (#945)
Browse files Browse the repository at this point in the history
* EPMRPP-87537 || Launch number not indexing
  • Loading branch information
APiankouski authored Nov 9, 2023
1 parent 3be9b8a commit 86177cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencies {
} else {
compile 'com.github.reportportal:commons:ce2166b5'
compile 'com.github.reportportal:commons-rules:5.10.0'
compile 'com.github.reportportal:commons-model:cd4791d'
compile 'com.github.reportportal:commons-model:67c5f50'
}

//https://nvd.nist.gov/vuln/detail/CVE-2020-10683 (dom4j 2.1.3 version dependency) AND https://nvd.nist.gov/vuln/detail/CVE-2019-14900
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public boolean hasItemsWithLogsWithLogLevel(Long launchId,

@Override
public List<IndexLaunch> findIndexLaunchByIds(List<Long> ids) {
return dsl.select(LAUNCH.ID, LAUNCH.NAME, LAUNCH.PROJECT_ID, LAUNCH.START_TIME)
return dsl.select(LAUNCH.ID, LAUNCH.NAME, LAUNCH.PROJECT_ID, LAUNCH.START_TIME, LAUNCH.NUMBER)
.from(LAUNCH)
.where(LAUNCH.ID.in(ids))
.orderBy(LAUNCH.ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.logging.log4j.util.Strings;
import org.jooq.Field;
import org.jooq.Record;
Expand Down Expand Up @@ -351,6 +352,8 @@ public class RecordMappers {
indexLaunch.setLaunchName(record.get(LAUNCH.NAME));
indexLaunch.setLaunchStartTime(record.get(LAUNCH.START_TIME).toLocalDateTime());
indexLaunch.setProjectId(record.get(LAUNCH.PROJECT_ID));
indexLaunch.setLaunchNumber(
(record.get(LAUNCH.NUMBER) != null) ? record.get(LAUNCH.NUMBER).longValue() : null);
return indexLaunch;
};

Expand Down

0 comments on commit 86177cf

Please sign in to comment.