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 getListOfIndexPatterns() when required patterns are not on 1st page #2711

Closed

Conversation

harduino
Copy link
Contributor

Wazuh UI retrieves index patterns and checks that at least one from list with required fields exists. By default in getListOfIndexPatterns() there is no "per page" parameter sending, so only first 20 index patterns are returning even if there are more than 20 index patterns. So in situation with >20 index patterns and when required index patterns are not on 1st page, Wazuh UI shows error "Sorry but no valid index patterns were found" even if valid index patterns are exist.
image
image
image
This PR changes getListOfIndexPatterns() method to retrieve 9999 index-patterns, so required index patterns will be always returned on check by Web UI.

@Desvelao Desvelao added reporter/community Issue reported by the community type/enhancement Enhancement issue labels Dec 31, 2020
@gabiwassan
Copy link
Contributor

Close: #3223

@gabiwassan gabiwassan closed this May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reporter/community Issue reported by the community type/enhancement Enhancement issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants