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

Wazuh api usage magement/status #5528

Merged
merged 5 commits into from
Jun 7, 2023
Merged

Conversation

yenienserrano
Copy link
Member

@yenienserrano yenienserrano commented Jun 5, 2023

Description

Unnecessary requests have been eliminated

Issues Resolved

Evidence

Before

image

After

image

Test

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

UI

Test Chrome Firefox Safari
Navigate to management status and do not see the request GET /agents/summary/status
Navigate to management status and do not see the request GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}
In cluster mode do not see the request GET /manager/info
In manager mode see the request GET /manager/info
when you change the node you do not have to see the request GET /agents/summary/status
when you change the node you do not have to see the request GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}

Details

⚫ Navigate to management status and do not see the request `GET /agents/summary/status`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Navigate to management status and do not see the request `GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ In cluster mode do not see the request `GET /manager/info`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ In manager mode see the request `GET /manager/info`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ when you change the node you do not have to see the request `GET /agents/summary/status`

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ when you change the node you do not have to see the request `GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}`

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

@yenienserrano yenienserrano requested a review from a team as a code owner June 5, 2023 15:44
@yenienserrano yenienserrano linked an issue Jun 5, 2023 that may be closed by this pull request
@yenienserrano yenienserrano self-assigned this Jun 5, 2023
Tostti
Tostti previously approved these changes Jun 6, 2023
Copy link
Member

@Tostti Tostti left a comment

Choose a reason for hiding this comment

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

Test

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

UI

Test Chrome Firefox Safari
Navigate to management status and do not see the request GET /agents/summary/status 🟢 🟢
Navigate to management status and do not see the request GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"} 🟢 🟢
In cluster mode do not see the request GET /manager/info 🟢 🟢
In manager mode see the request GET /manager/info 🟢 🟢
when you change the node you do not have to see the request GET /agents/summary/status 🟢 🟢
when you change the node you do not have to see the request GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"} 🟢 🟢

Details

🟢 Navigate to management status and do not see the request `GET /agents/summary/status`

Chrome - 🟢
imagen

Firefox - 🟢
imagen

Safari - ⚫

🟢 Navigate to management status and do not see the request `GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}`

Chrome - 🟢

Firefox - 🟢

Safari - ⚫

🟢 In cluster mode do not see the request `GET /manager/info`

Chrome - 🟢

Firefox - 🟢

Safari - ⚫

🟢 In manager mode see the request `GET /manager/info`

Chrome - 🟢
imagen

Firefox - 🟢
imagen

Safari - ⚫

🟢 when you change the node you do not have to see the request `GET /agents/summary/status`

Chrome - 🟢
imagen

Firefox - 🟢
imagen

Safari - ⚫

🟢when you change the node you do not have to see the request `GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}`

Chrome - 🟢

Firefox - 🟢

Safari - ⚫

TEST:✔️
CR:✔️

LGTM

@github-actions
Copy link
Contributor

github-actions bot commented Jun 6, 2023

Code coverage (Jest) % values
Statements 9.52% ( 3506 / 36820 )
Branches 5.02% ( 1434 / 28525 )
Functions 8.18% ( 747 / 9122 )
Lines 9.6% ( 3386 / 35267 )

@Desvelao
Copy link
Member

Desvelao commented Jun 7, 2023

Test

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

UI

Test Chrome Firefox Safari
Navigate to management status and do not see the request GET /agents/summary/status 🟢
Navigate to management status and do not see the request GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"} 🟢
In cluster mode do not see the request GET /manager/info 🟢
In manager mode see the request GET /manager/info 🟢
when you change the node you do not have to see the request GET /agents/summary/status 🟢
when you change the node you do not have to see the request GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"} 🟢

Details

🟢 Navigate to management status and do not see the request `GET /agents/summary/status`

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 Navigate to management status and do not see the request `GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}`

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 In cluster mode do not see the request `GET /manager/info`

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 In manager mode see the request `GET /manager/info`

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 when you change the node you do not have to see the request `GET /agents/summary/status`

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 when you change the node you do not have to see the request `GET /agents" with parameters {"limit": "1", "sort": "-dateAdd", "q": "id!=000"}`

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

Copy link
Member

@Desvelao Desvelao left a comment

Choose a reason for hiding this comment

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

review:

code 🟢
test 🟢 #5528 (comment)

@AlexRuiz7 AlexRuiz7 merged commit db2cce4 into 4.5 Jun 7, 2023
@AlexRuiz7 AlexRuiz7 deleted the 5243-wazuh-api-usage-magementstatus branch June 7, 2023 11:29
github-actions bot pushed a commit that referenced this pull request Jun 7, 2023
* Add imposter

* Changes when clicking on the status section

* Changes when changing to another node to see its status

* Add changelog

* Check is NaN

(cherry picked from commit db2cce4)
github-actions bot pushed a commit that referenced this pull request Jun 7, 2023
* Add imposter

* Changes when clicking on the status section

* Changes when changing to another node to see its status

* Add changelog

* Check is NaN

(cherry picked from commit db2cce4)
asteriscos pushed a commit that referenced this pull request Jun 9, 2023
Wazuh api usage magement/status (#5528)

* Add imposter

* Changes when clicking on the status section

* Changes when changing to another node to see its status

* Add changelog

* Check is NaN

(cherry picked from commit db2cce4)

Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
asteriscos pushed a commit that referenced this pull request Jun 9, 2023
Wazuh api usage magement/status (#5528)

* Add imposter

* Changes when clicking on the status section

* Changes when changing to another node to see its status

* Add changelog

* Check is NaN

(cherry picked from commit db2cce4)

Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wazuh API usage - Magement/Status
4 participants