-
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
Improve alerts summary performance #4376
Improve alerts summary performance #4376
Conversation
…ules without selected agent
server/lib/reporting/summary-tables-definitions/agents/index.ts
Outdated
Show resolved
Hide resolved
width: 40 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
fim: { |
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.
nitpick: This file could be deprecated. We should check and remove it if it is not necessary anymore.
issue: There are some hidden visualizations in the dashboards, we should remove them. |
Needs performance comparative |
TR: ✔️ |
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.
* Reduced alerts summary bucket size * Added Alerts Summary table class * Added Alerts Summary table class * Added base configuration tables * feat: add structures for aggregation queries of summary tables of modules without selected agent * Split extended information and added agents tables * Code cleaning * Added optional chaining to conditionals * Added missing alerts summary definitions * Delete hidden vis and fix merge conflicts * Fix merge * Add changelog Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> (cherry picked from commit 395fb8a)
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.4-1.2-wzd 4.4-1.2-wzd
# Navigate to the new working tree
cd .worktrees/backport-4.4-1.2-wzd
# Create a new branch
git switch --create backport-4376-to-4.4-1.2-wzd
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 395fb8a485e8bcac6f96a4fbc8dd07100f7dc2c7
# Push it to GitHub
git push --set-upstream origin backport-4376-to-4.4-1.2-wzd
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.4-1.2-wzd Then, create a pull request where the |
Improve alerts summary performance (#4376) * Reduced alerts summary bucket size * Added Alerts Summary table class * Added Alerts Summary table class * Added base configuration tables * feat: add structures for aggregation queries of summary tables of modules without selected agent * Split extended information and added agents tables * Code cleaning * Added optional chaining to conditionals * Added missing alerts summary definitions * Delete hidden vis and fix merge conflicts * Fix merge * Add changelog Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> (cherry picked from commit 395fb8a) Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
* Reduced alerts summary bucket size * Added Alerts Summary table class * Added Alerts Summary table class * Added base configuration tables * feat: add structures for aggregation queries of summary tables of modules without selected agent * Split extended information and added agents tables * Code cleaning * Added optional chaining to conditionals * Added missing alerts summary definitions * Delete hidden vis and fix merge conflicts * Fix merge * Add changelog Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> (cherry picked from commit 395fb8a)
Improve alerts summary performance (#4376) * Reduced alerts summary bucket size * Added Alerts Summary table class * Added Alerts Summary table class * Added base configuration tables * feat: add structures for aggregation queries of summary tables of modules without selected agent * Split extended information and added agents tables * Code cleaning * Added optional chaining to conditionals * Added missing alerts summary definitions * Delete hidden vis and fix merge conflicts * Fix merge * Add changelog Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com> (cherry picked from commit 395fb8a) Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Description
This PR changes the way the Alerts Summary tables are created in PDF reports to improve the dashboards loading time. Now the tables configuration is the PDF report folder segregated by modules and the request to obtain the data is made by the backend of the app instead of the frontend.
This avoids unnecessary loading times when the user does not use the reporting feature.
Closes #3812
Comparative
Before
After