-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results #199248
[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results #199248
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore) |
456a48e
to
1a5a72f
Compare
c5f4423
to
611e05f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add the test, just noticed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
const { startDate, endDate } = request.query; | ||
|
||
let resultingIndices: string[] = []; | ||
|
||
if (startDate && endDate) { | ||
resultingIndices = resultingIndices.concat( | ||
await getRangeFilteredIndices({ | ||
client, | ||
authorizedIndexNames, | ||
startDate, | ||
endDate, | ||
logger, | ||
pattern, | ||
}) | ||
); | ||
} else { | ||
resultingIndices = authorizedIndexNames; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add the test, just noticed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
bcf9539
to
21273b0
Compare
… time support for latest_results addresses elastic#191053 - Introduce `defaultStartTime` and `defaultEndTime` props across data quality context and panels for fetching latest_results and align them with serverless default time range of last week - Update hooks to handle new time parameters and include them in storage results queries. - Modify server-side helpers and routes to process and filter indices based on the provided time range. - Update related tests to accommodate the new time parameters.
21273b0
to
f732192
Compare
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @kapral18 |
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Starting backport for target branches: 8.x |
… time support for latest_results (elastic#199248) addresses elastic#191053 - Introduce `defaultStartTime` and `defaultEndTime` props across data quality context and panels for fetching latest_results and align them with serverless default time range of last week - Update hooks to handle new time parameters and include them in storage results queries. - Modify server-side helpers and routes to process and filter indices based on the provided time range. - Update related tests to accommodate the new time parameters. (cherry picked from commit 1df04ae)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…rt/end time support for latest_results (#199248) (#199385) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)](#199248) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Karen Grigoryan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-07T17:42:31Z","message":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)\n\naddresses #191053\r\n\r\n- Introduce `defaultStartTime` and `defaultEndTime` props across data\r\nquality context and panels for fetching latest_results and align them\r\nwith serverless default time range of last week\r\n- Update hooks to handle new time parameters and include them in storage\r\nresults queries.\r\n- Modify server-side helpers and routes to process and filter indices\r\nbased on the provided time range.\r\n- Update related tests to accommodate the new time parameters.","sha":"1df04aef8d5859507c85a2ad37594075e9054b70","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat Hunting","Team:Threat Hunting:Explore","backport:prev-minor","ci:cloud-deploy","ci:project-deploy-security"],"title":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results","number":199248,"url":"https://github.com/elastic/kibana/pull/199248","mergeCommit":{"message":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)\n\naddresses #191053\r\n\r\n- Introduce `defaultStartTime` and `defaultEndTime` props across data\r\nquality context and panels for fetching latest_results and align them\r\nwith serverless default time range of last week\r\n- Update hooks to handle new time parameters and include them in storage\r\nresults queries.\r\n- Modify server-side helpers and routes to process and filter indices\r\nbased on the provided time range.\r\n- Update related tests to accommodate the new time parameters.","sha":"1df04aef8d5859507c85a2ad37594075e9054b70"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199248","number":199248,"mergeCommit":{"message":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)\n\naddresses #191053\r\n\r\n- Introduce `defaultStartTime` and `defaultEndTime` props across data\r\nquality context and panels for fetching latest_results and align them\r\nwith serverless default time range of last week\r\n- Update hooks to handle new time parameters and include them in storage\r\nresults queries.\r\n- Modify server-side helpers and routes to process and filter indices\r\nbased on the provided time range.\r\n- Update related tests to accommodate the new time parameters.","sha":"1df04aef8d5859507c85a2ad37594075e9054b70"}}]}] BACKPORT--> Co-authored-by: Karen Grigoryan <[email protected]>
… time support for latest_results (elastic#199248) addresses elastic#191053 - Introduce `defaultStartTime` and `defaultEndTime` props across data quality context and panels for fetching latest_results and align them with serverless default time range of last week - Update hooks to handle new time parameters and include them in storage results queries. - Modify server-side helpers and routes to process and filter indices based on the provided time range. - Update related tests to accommodate the new time parameters.
… time support for latest_results (elastic#199248) addresses elastic#191053 - Introduce `defaultStartTime` and `defaultEndTime` props across data quality context and panels for fetching latest_results and align them with serverless default time range of last week - Update hooks to handle new time parameters and include them in storage results queries. - Modify server-side helpers and routes to process and filter indices based on the provided time range. - Update related tests to accommodate the new time parameters.
… time support for latest_results (elastic#199248) addresses elastic#191053 - Introduce `defaultStartTime` and `defaultEndTime` props across data quality context and panels for fetching latest_results and align them with serverless default time range of last week - Update hooks to handle new time parameters and include them in storage results queries. - Modify server-side helpers and routes to process and filter indices based on the provided time range. - Update related tests to accommodate the new time parameters. (cherry picked from commit 1df04ae)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…art/end time support for latest_results (#199248) (#200635) # Backport This will backport the following commits from `main` to `8.16`: - [[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)](#199248) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Karen Grigoryan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-07T17:42:31Z","message":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)\n\naddresses #191053\r\n\r\n- Introduce `defaultStartTime` and `defaultEndTime` props across data\r\nquality context and panels for fetching latest_results and align them\r\nwith serverless default time range of last week\r\n- Update hooks to handle new time parameters and include them in storage\r\nresults queries.\r\n- Modify server-side helpers and routes to process and filter indices\r\nbased on the provided time range.\r\n- Update related tests to accommodate the new time parameters.","sha":"1df04aef8d5859507c85a2ad37594075e9054b70","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat Hunting","Team:Threat Hunting:Explore","backport:prev-minor","ci:cloud-deploy","ci:project-deploy-security","v8.17.0"],"number":199248,"url":"https://github.com/elastic/kibana/pull/199248","mergeCommit":{"message":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)\n\naddresses #191053\r\n\r\n- Introduce `defaultStartTime` and `defaultEndTime` props across data\r\nquality context and panels for fetching latest_results and align them\r\nwith serverless default time range of last week\r\n- Update hooks to handle new time parameters and include them in storage\r\nresults queries.\r\n- Modify server-side helpers and routes to process and filter indices\r\nbased on the provided time range.\r\n- Update related tests to accommodate the new time parameters.","sha":"1df04aef8d5859507c85a2ad37594075e9054b70"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199248","number":199248,"mergeCommit":{"message":"[Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248)\n\naddresses #191053\r\n\r\n- Introduce `defaultStartTime` and `defaultEndTime` props across data\r\nquality context and panels for fetching latest_results and align them\r\nwith serverless default time range of last week\r\n- Update hooks to handle new time parameters and include them in storage\r\nresults queries.\r\n- Modify server-side helpers and routes to process and filter indices\r\nbased on the provided time range.\r\n- Update related tests to accommodate the new time parameters.","sha":"1df04aef8d5859507c85a2ad37594075e9054b70"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/199385","number":199385,"state":"MERGED","mergeCommit":{"sha":"de09e3af76d4bd1ce029830bd866e20b46e3aa9e","message":"[8.x] [Security Solution][Data Quality Dashboard][Serverless] add start/end time support for latest_results (#199248) (#199385)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.x`:\n- [[Security Solution][Data Quality Dashboard][Serverless] add start/end\ntime support for latest_results\n(#199248)](https://github.com/elastic/kibana/pull/199248)\n\n<!--- Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT [{\"author\":{\"name\":\"Karen\nGrigoryan\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-11-07T17:42:31Z\",\"message\":\"[Security\nSolution][Data Quality Dashboard][Serverless] add start/end time support\nfor latest_results (#199248)\\n\\naddresses #191053\\r\\n\\r\\n- Introduce\n`defaultStartTime` and `defaultEndTime` props across data\\r\\nquality\ncontext and panels for fetching latest_results and align them\\r\\nwith\nserverless default time range of last week\\r\\n- Update hooks to handle\nnew time parameters and include them in storage\\r\\nresults queries.\\r\\n-\nModify server-side helpers and routes to process and filter\nindices\\r\\nbased on the provided time range.\\r\\n- Update related tests\nto accommodate the new time\nparameters.\",\"sha\":\"1df04aef8d5859507c85a2ad37594075e9054b70\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.17.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"v9.0.0\",\"Team:Threat\nHunting\",\"Team:Threat\nHunting:Explore\",\"backport:prev-minor\",\"ci:cloud-deploy\",\"ci:project-deploy-security\"],\"title\":\"[Security\nSolution][Data Quality Dashboard][Serverless] add start/end time support\nfor\nlatest_results\",\"number\":199248,\"url\":\"https://github.com/elastic/kibana/pull/199248\",\"mergeCommit\":{\"message\":\"[Security\nSolution][Data Quality Dashboard][Serverless] add start/end time support\nfor latest_results (#199248)\\n\\naddresses #191053\\r\\n\\r\\n- Introduce\n`defaultStartTime` and `defaultEndTime` props across data\\r\\nquality\ncontext and panels for fetching latest_results and align them\\r\\nwith\nserverless default time range of last week\\r\\n- Update hooks to handle\nnew time parameters and include them in storage\\r\\nresults queries.\\r\\n-\nModify server-side helpers and routes to process and filter\nindices\\r\\nbased on the provided time range.\\r\\n- Update related tests\nto accommodate the new time\nparameters.\",\"sha\":\"1df04aef8d5859507c85a2ad37594075e9054b70\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/199248\",\"number\":199248,\"mergeCommit\":{\"message\":\"[Security\nSolution][Data Quality Dashboard][Serverless] add start/end time support\nfor latest_results (#199248)\\n\\naddresses #191053\\r\\n\\r\\n- Introduce\n`defaultStartTime` and `defaultEndTime` props across data\\r\\nquality\ncontext and panels for fetching latest_results and align them\\r\\nwith\nserverless default time range of last week\\r\\n- Update hooks to handle\nnew time parameters and include them in storage\\r\\nresults queries.\\r\\n-\nModify server-side helpers and routes to process and filter\nindices\\r\\nbased on the provided time range.\\r\\n- Update related tests\nto accommodate the new time\nparameters.\",\"sha\":\"1df04aef8d5859507c85a2ad37594075e9054b70\"}}]}]\nBACKPORT-->\n\nCo-authored-by: Karen Grigoryan <[email protected]>"}}]}] BACKPORT-->
This PR didn't make it into the latest BC of v8.16.1. Updating the labels. |
addresses #191053
defaultStartTime
anddefaultEndTime
props across data quality context and panels for fetching latest_results and align them with serverless default time range of last week