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

Remove total outdated agents statistic from Endpoint Summary #6737

Conversation

lucianogorza
Copy link
Contributor

@lucianogorza lucianogorza commented Jun 3, 2024

Description

This PR addresses the following changes:

  1. Removed outdated agents' statistic from the Endpoints Summary page:

    • The outdated agents' statistic has been removed to streamline the information displayed on the Endpoints Summary page.
  2. Moved state management to table component:

    • The state management for the total number of outdated agents has been shifted from the Endpoints Summary page to the table component. This ensures that the table component independently manages and reflects the accurate count of outdated agents.

Issues Resolved

#6736

Evidence

image
image
image
image

Test

Important

Test with a real 4.9.0 manager and at least one outdated agent.

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

Test Chrome Firefox Safari
Verified that the Endpoints Summary page no longer displays the outdated agents' statistic.
If there are outdated agents, then the agents table must display the total.
If there are outdated agents, turning on the switch should make the table display only those agents.
If there are no outdated agents, then the agents table should disable the switch.
Verified that the Agent Welcome page (with data) adapts the components correctly por 850px screen width.
Check Endpoint Summary statistic titles: Must be "Top 5 OS" and "Top 5 groups".

Details

⚫ Verified that the Endpoints Summary page no longer displays the outdated agents' statistic.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ If there are outdated agents, then the agents table must display the total.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ If there are outdated agents, turning on the switch should make the table display only those agents.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ If there are no outdated agents, then the agents table should disable the switch.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Verified that the Agent Welcome page (with data) adapts the components correctly por 850px screen width.

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Check Endpoint Summary statistic titles: Must be "Top 5 OS" and "Top 5 groups".

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

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

@lucianogorza lucianogorza self-assigned this Jun 3, 2024
@lucianogorza lucianogorza linked an issue Jun 3, 2024 that may be closed by this pull request
7 tasks
@lucianogorza lucianogorza marked this pull request as ready for review June 3, 2024 16:03
@lucianogorza lucianogorza marked this pull request as draft June 3, 2024 17:42
@lucianogorza lucianogorza marked this pull request as ready for review June 3, 2024 20:51
@JuanGarriuz JuanGarriuz self-requested a review June 4, 2024 07:46
@JuanGarriuz
Copy link
Member

JuanGarriuz commented Jun 4, 2024

Test

Important

Test with a real 4.9.0 manager and at least one outdated agent.

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

Test Chrome Firefox Safari
Verified that the Endpoints Summary page no longer displays the outdated agents' statistic. 🟢
If there are outdated agents, then the agents table must display the total. 🟢
If there are outdated agents, turning on the switch should make the table display only those agents. 🟢
If there are no outdated agents, then the agents table should disable the switch. 🟢
Verified that the Agent Welcome page (with data) adapts the components correctly por 850px screen width. 🟢
Check Endpoint Summary statistic titles: Must be "Top 5 OS" and "Top 5 groups". 🟢
🟢 Verified that the Endpoints Summary page no longer displays the outdated agents' statistic.

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 If there are outdated agents, then the agents table must display the total.

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 If there are outdated agents, turning on the switch should make the table display only those agents.

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 If there are no outdated agents, then the agents table should disable the switch.

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 Verified that the Agent Welcome page (with data) adapts the components correctly por 850px screen width.

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

🟢 Check Endpoint Summary statistic titles: Must be "Top 5 OS" and "Top 5 groups".

Chrome - 🟢

image

Firefox - ⚫

Safari - ⚫

JuanGarriuz
JuanGarriuz previously approved these changes Jun 4, 2024
Copy link
Member

@JuanGarriuz JuanGarriuz left a comment

Choose a reason for hiding this comment

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

LGTM!!!

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

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

Test: 🔴

The total amount of outdated agents doesn't consider the filters applied to the table, such as a particular group selected.
To make the outdated agents value consistent with the table results, it should include all pre-applied filters to the query.

Peek 2024-06-04 18-04

@lucianogorza
Copy link
Contributor Author

Test: 🔴

The total amount of outdated agents doesn't consider the filters applied to the table, such as a particular group selected. To make the outdated agents value consistent with the table results, it should include all pre-applied filters to the query.

Peek 2024-06-04 18-04 Peek 2024-06-04 18-04

Fixed in this commit

Copy link
Contributor

github-actions bot commented Jun 4, 2024

Wazuh Core plugin code coverage (Jest) test % values
Statements 45.96% ( 399 / 868 )
Branches 41.97% ( 157 / 374 )
Functions 44.01% ( 136 / 309 )
Lines 46.16% ( 397 / 860 )

Copy link
Contributor

github-actions bot commented Jun 4, 2024

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.44% ( 172 / 225 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.44% ( 172 / 225 )

Copy link
Contributor

github-actions bot commented Jun 4, 2024

Main plugin code coverage (Jest) test % values
Statements 11.33% ( 3879 / 34234 )
Branches 7.53% ( 1698 / 22536 )
Functions 10.62% ( 890 / 8376 )
Lines 11.49% ( 3776 / 32862 )

@asteriscos
Copy link
Member

Test Firefox
Verified that the Endpoints Summary page no longer displays the outdated agents' statistic. 🟢
If there are outdated agents, then the agents table must display the total. 🟢
If there are outdated agents, turning on the switch should make the table display only those agents. 🟢
If there are no outdated agents, then the agents table should disable the switch. 🟢
Verified that the Agent Welcome page (with data) adapts the components correctly por 850px screen width. 🟢
Check Endpoint Summary statistic titles: Must be "Top 5 OS" and "Top 5 groups". 🟢

Details

🟢 Verified that the Endpoints Summary page no longer displays the outdated agents' statistics.

Firefox - 🟢

image

🟢 If there are outdated agents, then the agent's table must display the total.

Firefox - 🟢

image

🟢 If there are outdated agents, turning on the switch should make the table display only those agents.

Firefox - 🟢

image

🟢 If there are no outdated agents, then the agents table should disable the switch.

Firefox - 🟢

image

🟢 Verified that the Agent Welcome page (with data) adapts the components correctly por 850px screen width.

Firefox - 🟢

image

🟢 Check Endpoint Summary statistic titles: Must be "Top 5 OS" and "Top 5 groups".

Firefox - 🟢

image

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

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

CR: 🟢
Test: 🟢

@asteriscos asteriscos merged commit 1c73ab3 into 4.9.0 Jun 5, 2024
4 checks passed
@asteriscos asteriscos deleted the enhancenment/6736-remove-total-outdated-agents-statistic-from-endpoint-summary branch June 5, 2024 15:10
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.

Remove total outdated agents statistic from Endpoint Summary
3 participants