Skip to content
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

Fixed a bug with doc level trigger creation. #513

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

AWSHurneyt
Copy link
Collaborator

@AWSHurneyt AWSHurneyt commented Apr 3, 2023

Description

Fixed a bug with doc level trigger creation.

As illustrated by the screenshot below, users can select whether they want the field value to equal the query value (by selecting is), not equal the query value (by selecting is not), etc. The operator doesn't need to be configured in the trigger because it's already configured in the query itself. Essentially we just want the triggers to evaluate whether the document matches the query; and that query could be checking whether a field value equals or does not equal the query value. Adding the operator to the scriptSourceContents was preventing the backend from determining whether the document matched the query.
Screenshot

Issues Resolved

#448

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov-commenter
Copy link

Codecov Report

Merging #513 (8b78db8) into main (6dc848e) will increase coverage by 0.00%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main     #513   +/-   ##
=======================================
  Coverage   53.39%   53.40%           
=======================================
  Files         209      209           
  Lines        5501     5500    -1     
  Branches      775      774    -1     
=======================================
  Hits         2937     2937           
+ Misses       2562     2561    -1     
  Partials        2        2           

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@AWSHurneyt AWSHurneyt marked this pull request as ready for review April 4, 2023 02:16
@AWSHurneyt AWSHurneyt requested a review from a team April 4, 2023 02:16
@AWSHurneyt AWSHurneyt merged commit 45ea4b9 into opensearch-project:main Apr 17, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 17, 2023
…etails. (#513)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)
AWSHurneyt added a commit that referenced this pull request Apr 17, 2023
…etails. (#513) (#521)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)

Co-authored-by: AWSHurneyt <[email protected]>
AWSHurneyt added a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Apr 18, 2023
AWSHurneyt added a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Apr 18, 2023
AWSHurneyt added a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Apr 18, 2023
AWSHurneyt added a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Apr 18, 2023
AWSHurneyt added a commit to AWSHurneyt/alerting-dashboards-plugin that referenced this pull request Apr 18, 2023
bowenlan-amzn pushed a commit that referenced this pull request Apr 26, 2023
* 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]>

* Updated test workflow dependency references.

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]>

* Adjusted package versions used by tests.

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

---------

Signed-off-by: AWSHurneyt <[email protected]>
bowenlan-amzn pushed a commit that referenced this pull request Apr 26, 2023
* 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]>
bowenlan-amzn pushed a commit that referenced this pull request Apr 26, 2023
…etails. (#513) (#524)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)

Co-authored-by: AWSHurneyt <[email protected]>
bowenlan-amzn pushed a commit that referenced this pull request Apr 26, 2023
* 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]>

* 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]>
bowenlan-amzn pushed a commit that referenced this pull request Apr 26, 2023
…etails. (#513) (#522)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)

Co-authored-by: AWSHurneyt <[email protected]>
bowenlan-amzn pushed a commit that referenced this pull request Apr 26, 2023
…etails. (#513) (#520)

Signed-off-by: AWSHurneyt <[email protected]>
(cherry picked from commit 45ea4b9)

Co-authored-by: AWSHurneyt <[email protected]>
lezzago pushed a commit that referenced this pull request Apr 27, 2023
* 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]>

* Updated test workflow dependency references.

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

* Adjusted package versions used by tests.

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

* Adjusted package versions used by tests.

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

---------

Signed-off-by: AWSHurneyt <[email protected]>
mjsell1234 pushed a commit to mjsell1234/alerting-dashboards-plugin that referenced this pull request Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants