Skip to content

Commit

Permalink
change default filter to time based fields (#1030)
Browse files Browse the repository at this point in the history
Signed-off-by: Subhobrata Dey <[email protected]>
(cherry picked from commit 3793f5c)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed May 21, 2024
1 parent c47d0c0 commit 5a10d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient cli
String severityLevel = request.param("severityLevel", "ALL");
String alertState = request.param("alertState", "ALL");
// Table params
String sortString = request.param("sortString", "id");
String sortString = request.param("sortString", "start_time");

Check warning on line 41 in src/main/java/org/opensearch/securityanalytics/resthandler/RestGetAlertsAction.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/opensearch/securityanalytics/resthandler/RestGetAlertsAction.java#L41

Added line #L41 was not covered by tests
String sortOrder = request.param("sortOrder", "asc");
String missing = request.param("missing");
int size = request.paramAsInt("size", 20);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient cli
String detectorId = request.param("detector_id", null);
String detectorType = request.param("detectorType", null);
// Table params
String sortString = request.param("sortString", "id");
String sortString = request.param("sortString", "timestamp");

Check warning on line 41 in src/main/java/org/opensearch/securityanalytics/resthandler/RestGetFindingsAction.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/org/opensearch/securityanalytics/resthandler/RestGetFindingsAction.java#L41

Added line #L41 was not covered by tests
String sortOrder = request.param("sortOrder", "asc");
String missing = request.param("missing");
int size = request.paramAsInt("size", 20);
Expand Down

0 comments on commit 5a10d5f

Please sign in to comment.