wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Fix console error when I have an agent selected and environment change

Open JuanGarriuz opened this issue 1 year ago • 3 comments

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

JuanGarriuz avatar Jan 12 '24 08:01 JuanGarriuz

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 )

github-actions[bot] avatar Mar 22 '24 09:03 github-actions[bot]

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 )

github-actions[bot] avatar Mar 22 '24 09:03 github-actions[bot]

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 )

github-actions[bot] avatar Mar 22 '24 10:03 github-actions[bot]