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

Agent table, error adding or deleting new fields

Open yenienserrano opened this issue 2 years ago • 0 comments

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

  1. Have version 4.3.x and navigate to agents to create the columnsSelectedTableAgent field in localstorage

For the case of deleting a field

  1. Have development version 4.4 and navigate to the agents to create the field columnsSelectedTableAgent in localstorage

Steps to reproduce

For the case of adding a field

  1. Change the version to the development version of 4.4
  2. Navigate to 'Agents'
  3. See that the Synced column does not appear in the table
  4. Remove the columnsSelectedTableAgent field from localstorage and reload the page.
  5. See that the Synced column appear in the table

For the case of deleting a field

  1. Change the version to the version of 4.3.x
  2. Navigate to 'Agents'
  3. See the board break
  4. Remove the columnsSelectedTableAgent field from localstorage and reload the page.
  5. See that the table appears and the synced field is no longer there.

Expected Result 1. For the case of adding a field image

For the case of deleting a field image

Actual Result 1. For the case of adding a field image

For the case of deleting a field image

yenienserrano avatar Sep 21 '22 10:09 yenienserrano