Skip to content

Commit

Permalink
EPMRPP-89281 || Fix class cast issue (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbortnik authored Jan 29, 2024
1 parent bad64b9 commit 0979d44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
SCRIPTS_VERSION: 5.11.0
BOM_VERSION: 5.11.1
MIGRATIONS_VERSION: 5.11.0
RELEASE_VERSION: 5.11.2
RELEASE_VERSION: 5.11.3

jobs:
release:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private List<Long> searchTestItemIdsByConditions(Long projectId, JSONObject sear
if (org.apache.commons.collections.CollectionUtils.isNotEmpty(hits)) {
for (LinkedHashMap<String, Object> hit : hits) {
Map<String, Object> source = (Map<String, Object>) hit.get("_source");
Long testItemId = ((Integer) source.get("itemId")).longValue();
Long testItemId = (Long) source.get("itemId");
testItemIds.add(testItemId);
}

Expand Down Expand Up @@ -250,10 +250,10 @@ private LogMessage convertElasticDataToLogMessage(Long projectId, Map<String, Ob
timestampString += "." + "0".repeat(6);
}

return new LogMessage(((Integer) source.get("id")).longValue(),
return new LogMessage((Long) source.get("id"),
LocalDateTime.parse(timestampString, DateTimeFormatter.ofPattern(ELASTIC_DATETIME_FORMAT)),
(String) source.get("message"), ((Integer) source.get("itemId")).longValue(),
((Integer) source.get("launchId")).longValue(), projectId
(String) source.get("message"), (Long) source.get("itemId"),
(Long) source.get("launchId"), projectId
);
}

Expand Down

0 comments on commit 0979d44

Please sign in to comment.