mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[8.7] [Defend Workflows] Fix: proper regexp test for dynamic parameters presence (#150696) (#150749)
# Backport This will backport the following commits from `main` to `8.7`: - [[Defend Workflows] Fix: proper regexp test for dynamic parameters presence (#150696)](https://github.com/elastic/kibana/pull/150696) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Konrad Szwarc","email":"konrad.szwarc@elastic.co"},"sourceCommit":{"committedDate":"2023-02-09T17:02:53Z","message":"[Defend Workflows] Fix: proper regexp test for dynamic parameters presence (#150696)","sha":"b5dde1fcf5f54479906542a178cb87c616c7cb4f","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Defend Workflows","v8.7.0","v8.6.2","v8.8.0"],"number":150696,"url":"https://github.com/elastic/kibana/pull/150696","mergeCommit":{"message":"[Defend Workflows] Fix: proper regexp test for dynamic parameters presence (#150696)","sha":"b5dde1fcf5f54479906542a178cb87c616c7cb4f"}},"sourceBranch":"main","suggestedTargetBranches":["8.7","8.6"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.6","label":"v8.6.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150696","number":150696,"mergeCommit":{"message":"[Defend Workflows] Fix: proper regexp test for dynamic parameters presence (#150696)","sha":"b5dde1fcf5f54479906542a178cb87c616c7cb4f"}}]}] BACKPORT--> Co-authored-by: Konrad Szwarc <konrad.szwarc@elastic.co>
This commit is contained in:
parent
02a5c394ac
commit
4f4f92ff2c
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ export const scheduleNotificationResponseActions = (
|
|||
? responseAction.params.queries
|
||||
: [{ query: responseAction.params.query }];
|
||||
const containsDynamicQueries = some(temporaryQueries, (query) => {
|
||||
return query.query ? CONTAINS_DYNAMIC_PARAMETER_REGEX.test(query.query) : false;
|
||||
return query.query ? new RegExp(CONTAINS_DYNAMIC_PARAMETER_REGEX).test(query.query) : false;
|
||||
});
|
||||
const { savedQueryId, packId, queries, ecsMapping, ...rest } = responseAction.params;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue