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

Fix events view when search bar language is lucene #5286

Conversation

yenienserrano
Copy link
Member

Description

This change is only for "OpenSearch dashboards", it changes code that was related to Elasticsearch in the OpenSearch Dashboards branch.

Issues Resolved

Evidence

image

image

image

Test

Preconditions

Navigate to 'Security events'
Click on 'Syntax options from search bar'
Change 'OpenSearch Dashboards Query Language' to 'off'

Test 1

Click on Events without data
The view "no results" has to be rendered

Test 2

Click on Events with data
The table has to be rendered

Test 1

Click on Events and do a search
The table has to be rendered with the search data.

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@yenienserrano yenienserrano requested a review from a team as a code owner March 13, 2023 14:23
@yenienserrano yenienserrano linked an issue Mar 13, 2023 that may be closed by this pull request
@github-actions
Copy link
Contributor

Code coverage (Jest) % values
Statements 8.77% ( 3239 / 36924 )
Branches 4.5% ( 1291 / 28671 )
Functions 7.63% ( 698 / 9148 )
Lines 8.83% ( 3124 / 35359 )

@Desvelao
Copy link
Member

Desvelao commented Mar 13, 2023

Wazuh dashboard

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox
The Modules//Events page should be displayed when the Lucene query language is selected in the search bar 🟢 🟢
When there are no results for query and selecting Lucene as the query language, the message should display OpenSearch 🟢 🟢

Details

🟢 The Modules//Events page should be displayed when the Lucene query language is selected in the search bar

Chrome - 🟢
image

Firefox - 🟢
image

🟢 When there are no results for query and selecting Lucene as the query language, the message should display OpenSearch

Chrome - 🟢
image

Firefox - 🟢
image

ℹ️ I have not tested the mentioned test related to the query in Lucene, because these don't apply to the proposed changes in the pull request.

Copy link
Member

@Desvelao Desvelao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review

🟢 code
🟢 test #5286 (comment)

Copy link
Member

@Machi3mfl Machi3mfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wazuh dashboard

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox
The Modules//Events page should be displayed when the Lucene query language is selected in the search bar 🟢
When there are no results for query and selecting Lucene as the query language, the message should display OpenSearch 🟢

Details

🟢 The Modules//Events page should be displayed when the Lucene query language is selected in the search bar

Chrome - 🟢

🟢 When there are no results for query and selecting Lucene as the query language, the message should display OpenSearch

Chrome - 🟢

image

ℹ️ I have not tested the mentioned test related to the query in Lucene, because these don't apply to the proposed changes in the pull request.

image

@yenienserrano yenienserrano merged commit 7764709 into 4.4-2.4-wzd Mar 13, 2023
@yenienserrano yenienserrano deleted the fix-5284-when-the-search-bar-language-is-lucene-the-events-view-is-broken branch March 13, 2023 15:49
AlexRuiz7 pushed a commit that referenced this pull request Mar 17, 2023
* Change href to opensearch.queryDSL.base

* Change text, elasticsearch to opensearch

* Add changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When the search bar language is Lucene the events view is broken
3 participants