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 repeated and unnecessary requests in security section #5500

Merged
merged 5 commits into from
May 30, 2023

Conversation

yenienserrano
Copy link
Member

@yenienserrano yenienserrano commented May 29, 2023

Description

Remove repeated and unnecessary requests in security section, that was being caused by the way in which it was controlled which view was rendered, (by the url and a state).

Issues Resolved

Evidence

Screenshots

Users

image

image

Roles

image

image

Policies

image

Create policies

image

image

Roles mapping

image

image

Test

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

UI

Test Chrome Firefox Safari
Check that there are no repeated requests in the user tab
Check that there are no repeated requests in the roles tab
Check that there are no repeated requests in the policies tab
Check that there are no repeated requests in the roles mapping tab
the request /security/actions in the policies should not be done
the request /security/resources in the policies should not be done
the request /security/policies in create policies should not be done

Details

⚫ Check that there are no repeated requests in the `user` tab

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Check that there are no repeated requests in the `roles` tab

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Check that there are no repeated requests in the `policies` tab

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ Check that there are no repeated requests in the `roles mapping` tab

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ the request `/security/actions` in the `policies` should not be done

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ the request `/security/resources` in the `policies` should not be done

Chrome - ⚫

Firefox - ⚫

Safari - ⚫

⚫ the request `/security/policies` in `create policies` should not be done

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 linked an issue May 29, 2023 that may be closed by this pull request
@yenienserrano yenienserrano changed the title 5246 wazuh api usage security Remove repeated and unnecessary requests in security section May 29, 2023
@github-actions
Copy link
Contributor

Code coverage (Jest) % values
Statements 9.52% ( 3506 / 36817 )
Branches 5.02% ( 1434 / 28532 )
Functions 8.18% ( 747 / 9123 )
Lines 9.6% ( 3386 / 35264 )

@Desvelao
Copy link
Member

Test

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

UI

Test Chrome Firefox Safari
Check that there are no repeated requests in the user tab 🟢
Check that there are no repeated requests in the roles tab 🟢
Check that there are no repeated requests in the policies tab 🟢
Check that there are no repeated requests in the roles mapping tab 🟢
the request /security/actions in the policies should not be done 🟢
the request /security/resources in the policies should not be done 🟢
the request /security/policies in create policies should not be done 🟢

Details

🟢 Check that there are no repeated requests in the `user` tab

Chrome - 🟢
image
image

Firefox - ⚫

Safari - ⚫

🟢 Check that there are no repeated requests in the `roles` tab

Chrome - 🟢
image
image

Firefox - ⚫

Safari - ⚫

🟢 Check that there are no repeated requests in the `policies` tab

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 Check that there are no repeated requests in the `roles mapping` tab

Chrome - 🟢
image
image

Firefox - ⚫

Safari - ⚫

🟢 the request `/security/actions` in the `policies` should not be done

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 the request `/security/resources` in the `policies` should not be done

Chrome - 🟢
image

Firefox - ⚫

Safari - ⚫

🟢 the request `/security/policies` in `create policies` should not be done

Chrome - 🟢
image
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 🟢 #5500 (comment)

@AlexRuiz7 AlexRuiz7 merged commit 9fcea14 into 4.5 May 30, 2023
@AlexRuiz7 AlexRuiz7 deleted the 5246-wazuh-api-usage-security branch May 30, 2023 12:19
github-actions bot pushed a commit that referenced this pull request May 30, 2023
* Remove repeated request

* Remove deprecated code and request

* Remove deprecated code and request in create-policy

* Add changelog

(cherry picked from commit 9fcea14)
github-actions bot pushed a commit that referenced this pull request May 30, 2023
* Remove repeated request

* Remove deprecated code and request

* Remove deprecated code and request in create-policy

* Add changelog

(cherry picked from commit 9fcea14)
AlexRuiz7 pushed a commit that referenced this pull request May 30, 2023
…ity section (#5511)

Remove repeated and unnecessary requests in security section (#5500)

* Remove repeated request

* Remove deprecated code and request

* Remove deprecated code and request in create-policy

* Add changelog

(cherry picked from commit 9fcea14)

Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
AlexRuiz7 pushed a commit that referenced this pull request May 30, 2023
…ity section (#5510)

Remove repeated and unnecessary requests in security section (#5500)

* Remove repeated request

* Remove deprecated code and request

* Remove deprecated code and request in create-policy

* Add changelog

(cherry picked from commit 9fcea14)

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 - Security
3 participants