wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Agent table, error adding or deleting new fields
Description
When you add a new column to the agent table, to take that new column you have to delete from the localstorage the field columnsSelectedTableAgent
so that when you load the table it creates it with the new values, and if you remove any column the table breaks because it does not find that value, to make it work you have to delete the same field from the localstorage and reload the table to create it again.
Preconditions For the case of adding a field
- Have version 4.3.x and navigate to
agents
to create thecolumnsSelectedTableAgent
field in localstorage
For the case of deleting a field
- Have development version 4.4 and navigate to the
agents
to create the fieldcolumnsSelectedTableAgent
in localstorage
Steps to reproduce
For the case of adding a field
- Change the version to the development version of 4.4
- Navigate to 'Agents'
- See that the Synced column does not appear in the table
- Remove the
columnsSelectedTableAgent
field from localstorage and reload the page. - See that the Synced column appear in the table
For the case of deleting a field
- Change the version to the version of 4.3.x
- Navigate to 'Agents'
- See the board break
- Remove the
columnsSelectedTableAgent
field from localstorage and reload the page. - See that the table appears and the synced field is no longer there.
Expected Result
1.
For the case of adding a field
For the case of deleting a field
Actual Result
1.
For the case of adding a field
For the case of deleting a field