wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Fix console error when I have an agent selected and environment change
Description
Adds functionality to unpinned an agent, which is now used when the environment changes
Issues Resolved
Console error when I have an agent selected and environment change
Evidence
https://github.com/wazuh/wazuh-dashboard-plugins/assets/124377319/51285648-45aa-4fd2-87df-6aeec902b8df
Test
Test | Chrome | Firefox | Safari |
---|---|---|---|
The agent should be unpinned after changing environments | :black_circle: | :black_circle: | :black_circle: |
- The agent should be unpinned after changing environments
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
Wazuh Core plugin code coverage (Jest) test | % | values |
---|---|---|
Statements | 28.94% | ( 286 / 988 ) |
Branches | 26.22% | ( 107 / 408 ) |
Functions | 26.87% | ( 86 / 320 ) |
Lines | 28.68% | ( 278 / 969 ) |
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 | 12.07% | ( 4200 / 34795 ) |
Branches | 7.73% | ( 1760 / 22748 ) |
Functions | 10.71% | ( 885 / 8259 ) |
Lines | 12.26% | ( 4090 / 33354 ) |