-
Notifications
You must be signed in to change notification settings - Fork 186
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
Make checks inside Pattern check services #5384
Merged
asteriscos
merged 4 commits into
4.5
from
enhance/move-settings-checks-to-alerts-index-checks-5310
Apr 18, 2023
Merged
Make checks inside Pattern check services #5384
asteriscos
merged 4 commits into
4.5
from
enhance/move-settings-checks-to-alerts-index-checks-5310
Apr 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
Desvelao
reviewed
Apr 18, 2023
public/components/health-check/services/check-index-pattern/check-index-pattern.service.ts
Outdated
Show resolved
Hide resolved
Wazuh dashboardLegend: UI
Details 🟢 With the `checks.pattern` enabled, enable the `checks.maxBuckets`, `checks.metaFields` and `checks.timeFilter`, the platform setting checks should run and update the change if needed🟢 With the `checks.pattern` disabled, enable the `checks.maxBuckets`, `checks.metaFields` and `checks.timeFilter`, the platform setting checks should run and update the change if needed |
Desvelao
approved these changes
Apr 18, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review
🟢 code
🟢 tests #5384 (comment)
Wazuh dashboardLegend: UI
Details 🟢 With the `checks.pattern` enabled, enable the `checks.maxBuckets`, `checks.metaFields` and `checks.timeFilter`, the platform setting checks should run and update the change if needed🟢 With the `checks.pattern` disabled, enable the `checks.maxBuckets`, `checks.metaFields` and `checks.timeFilter`, the platform setting checks should run and update the change if neededChrome - 🟢 |
yenienserrano
approved these changes
Apr 18, 2023
asteriscos
deleted the
enhance/move-settings-checks-to-alerts-index-checks-5310
branch
April 18, 2023 14:51
github-actions bot
pushed a commit
that referenced
this pull request
Apr 18, 2023
* Make checks inside Pattern check services * Add changelog * refactor checkPluginPlatformSettings and code cleaning (cherry picked from commit 41d9a3f)
github-actions bot
pushed a commit
that referenced
this pull request
Apr 18, 2023
* Make checks inside Pattern check services * Add changelog * refactor checkPluginPlatformSettings and code cleaning (cherry picked from commit 41d9a3f)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Hi team,
This PR migrates the
timeFilter
,metaFields
,maxBuckets
checks inside thepattern
check.Issues Resolved
Closes #5310
Evidence
Test
To test this pull request enable or disable health-check configuration in
wazuh.yml
.Pattern enabled
wazuh.yml entries to change:
checks.pattern:
truechecks.metaFields:
falsechecks.timeFilter:
falsechecks.maxBuckets:
falseThe pattern check log should look like this:
Pattern disabled
wazuh.yml entries to change:
checks.pattern:
falsechecks.metaFields:
truechecks.timeFilter:
truechecks.maxBuckets:
trueThe pattern check log should look like this:
Check List
yarn test:jest