Skip to content

Commit

Permalink
[Backport 2.6] Fixed a bug with doc level trigger creation. (#537)
Browse files Browse the repository at this point in the history
* Fixed a bug with doc level trigger creation. See issue 448 for more details. (#513)

Signed-off-by: AWSHurneyt <[email protected]>

* Updated test workflow dependency references.

Signed-off-by: AWSHurneyt <[email protected]>

* Adjusted package versions used by tests.

Signed-off-by: AWSHurneyt <[email protected]>

---------

Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt authored Apr 26, 2023
1 parent 8bd0c73 commit 1e92e30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
OPENSEARCH_DASHBOARDS_VERSION: '2.6.0'
OPENSEARCH_VERSION: '2.6.0-SNAPSHOT'
ALERTING_PLUGIN_BRANCH: '2.x'
ALERTING_PLUGIN_BRANCH: '2.6.0.0'
jobs:
tests:
name: Run Cypress E2E tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- "*"
env:
OPENSEARCH_DASHBOARDS_VERSION: '2.x'
OPENSEARCH_DASHBOARDS_VERSION: '2.6.0'
jobs:
tests:
name: Run unit tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ export function getDocumentLevelScriptSource(conditions) {
}
if (!_.isEmpty(query) && !_.isEmpty(query.queryName)) {
const queryExpression = _.get(query, 'expression');
const operator = query.operator === '!=' ? '!' : '';
scriptSourceContents.push(`${operator}query[${queryExpression}]`);
scriptSourceContents.push(`query[${queryExpression}]`);
}
});
return scriptSourceContents.join(' ');
Expand Down

0 comments on commit 1e92e30

Please sign in to comment.