wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Implement embeddable dashboard on NIST 800-53
Description
This pull request replaces the Dashboard
tab on NIST 800-53 application.
Issues Resolved
#6514
Evidence
[Provide screenshots or videos to prove this PR solves the issues]
Test
[Provide instructions to test this PR]
Check List
- [ ] All tests pass
- [ ]
yarn test:jest
- [ ]
- [ ] New functionality includes testing.
- [ ] New functionality has been documented.
- [ ] Update CHANGELOG.md
- [x] Commits are signed per the DCO using --signoff
Wazuh Core plugin code coverage (Jest) test | % | values |
---|---|---|
Statements | 45.37% | ( 397 / 875 ) |
Branches | 41.31% | ( 157 / 380 ) |
Functions | 43.83% | ( 135 / 308 ) |
Lines | 45.61% | ( 395 / 866 ) |
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 ) |
Main plugin code coverage (Jest) test | % | values |
---|---|---|
Statements | 10.8% | ( 3751 / 34716 ) |
Branches | 7.27% | ( 1653 / 22731 ) |
Functions | 10.5% | ( 870 / 8282 ) |
Lines | 10.95% | ( 3645 / 33273 ) |
Test
Go to NIST 800-53 > Dashboard:
- [x] Each visualization, if applicable, must have interaction so that it adds the corresponding filter(s) upon clicking.
Details
- [x] The visualizations have to be updated according to the filters applied in the searchbar.
Details
- [x] The visualizations have to be updated when a search is performed in the searchbar.
Details
- [x] If there are no results, the corresponding message must appear that there are no results and the visualizations should not be rendered.
Details
- [x] If there is SampleData, the corresponding SampleData message must appear.
Details
- [x] If an agent is pinned, the views must be updated and changed to the agent view, if applicable.
Details
- [x] Check filter behavior with respect to hide alerts, allow agents and filter order.
Details
Go to NIST 800-53 > Controls
- [x] Check the requirements filters on the on the left side filters the requirements on the right side
Details
- [x] Click on the requirement to open the flyout and interact with the search bar and links, they should work as expected.
Details
- [x] The search should take into account optionally the allowed agents and the hide manager alerts plugin setting if enabled.
Details
- [x] In the details flyout click on the show on dashboard and events links, they should display this tabs with a filter related to the selected requirement
Details
- [x] The link on the flyout table should redirect to Endpoint Summary and Rules respectively
Details
Test
Dashboards
https://github.com/wazuh/wazuh-dashboard-plugins/assets/124377319/647f067c-1ef3-4316-a8d8-827d7b9df29b
Controls
https://github.com/wazuh/wazuh-dashboard-plugins/assets/124377319/f98fbc92-ebb0-4189-8930-79a4baf00fcf