-
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
Removes unnecessary requests in config, inventory data or statistics #5460
Removes unnecessary requests in config, inventory data or statistics #5460
Conversation
Test
Legend: UI
Details |
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 🟢
test 🟢 #5460 (comment)
…ecessary-query-while-accessing
…ecessary-query-while-accessing
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.
Test
- Navigate to
an agent
- Click on
Inventory data | Stats | Configuration
- Check that the request is not made:
GET /agents" with parameters {"agents_list": "002", "select": "status"}
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Test | Chrome | Firefox | Safari |
---|---|---|---|
Check that the request is not made in "Stats" | 🟢 | 🟢 | ⚫ |
Check that the request is not made in "Inventory data" | 🟢 | 🟢 | ⚫ |
Check that the request is not made in "Configuration" | 🟢 | 🟢 | ⚫ |
Details
🟢 Check that the request is not made in "Inventory data"
![imagen](https://github.com/wazuh/wazuh-kibana-app/assets/42900763/0716c6f2-ec7e-48bf-8519-6344e9ed92a3)Safari - ⚫
TEST:✔️
CR:✔️
LGTM
|
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.5-7.10 4.5-7.10
# Navigate to the new working tree
cd .worktrees/backport-4.5-7.10
# Create a new branch
git switch --create backport-5460-to-4.5-7.10
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f5be86d213db79fb42c8af9098660c961a3e1732
# Push it to GitHub
git push --set-upstream origin backport-5460-to-4.5-7.10
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.5-7.10 Then, create a pull request where the |
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.5-7.16 4.5-7.16
# Navigate to the new working tree
cd .worktrees/backport-4.5-7.16
# Create a new branch
git switch --create backport-5460-to-4.5-7.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f5be86d213db79fb42c8af9098660c961a3e1732
# Push it to GitHub
git push --set-upstream origin backport-5460-to-4.5-7.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.5-7.16 Then, create a pull request where the |
… data or statistics (#5508) Removes unnecessary requests in config, inventory data or statistics (#5460) * Add dont make the queries in config or inventory * Update changelog * Fix stats request --------- Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com> (cherry picked from commit f5be86d)
… data or statistics (#5507) Removes unnecessary requests in config, inventory data or statistics (#5460) * Add dont make the queries in config or inventory * Update changelog * Fix stats request --------- Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com> (cherry picked from commit f5be86d)
Description
Add to the buttons the parameter that controls if the request has to be made, and we delete a variable that was not used anywhere.
Issues Resolved
Evidence
Details
Inventory data
Configuration
Stats
Test
an agent
Inventory data | Stats | Configuration
GET /agents" with parameters {"agents_list": "002", "select": "status"}
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
UI
Details
⚫ Check that the request is not made in "Stats"
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Check that the request is not made in "Inventory data"
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Check that the request is not made in "Configuration"
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List
yarn test:jest