Skip to content

[BUG] Toggle Column button not working in surrounding documents View #609

Open
@ccMatze

Description

@ccMatze

Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to
    Any Event in to the "View surrounding documents"-View
  2. Click on
    "Toggle column in Table", "Remove Column", "Move Column to the left" or "Move Column to the right"
  3. See error
    Nothing happens. All Other Buttons like "Filter for value" functionlike expected. In Browser console nothing happens after clicking the bugged buttons.

When editing the columns-area of the URL manually the columns appear like expected:
https:///app/discover#/context/1f568f20-08b3-11f0-8fc5-91743bc731e1/jgQMD5YBIXU5hdNA-juL?_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:'1f568f20-08b3-11f0-8fc5-91743bc731e1',key:cluster.name,negate:!f,params:(query:wazuh),type:phrase),query:(match_phrase:(cluster.name:(query:wazuh)))),('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:'1f568f20-08b3-11f0-8fc5-91743bc731e1',key:rule.level,negate:!f,params:(gte:7,lte:11),type:range),range:(rule.level:(gte:7,lte:11)))))&_a=(columns:!('@timestamp',rule.description,data.win.eventdata.description,agent.name),filters:!(),predecessorCount:5,sort:!('@timestamp',desc),successorCount:780)
to
https:///app/discover#/context/1f568f20-08b3-11f0-8fc5-91743bc731e1/jgQMD5YBIXU5hdNA-juL?_g=(filters:!(('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:'1f568f20-08b3-11f0-8fc5-91743bc731e1',key:cluster.name,negate:!f,params:(query:wazuh),type:phrase),query:(match_phrase:(cluster.name:(query:wazuh)))),('$state':(store:globalState),meta:(alias:!n,disabled:!f,index:'1f568f20-08b3-11f0-8fc5-91743bc731e1',key:rule.level,negate:!f,params:(gte:7,lte:11),type:range),range:(rule.level:(gte:7,lte:11)))))&_a=(columns:!('@timestamp',rule.description,data.win.eventdata.description,agent.name,agent.ip),filters:!(),predecessorCount:5,sort:!('@timestamp',desc),successorCount:780)

But clicking on the button results in no change.

Expected behavior:
The selected column is toggled in the table.

Wazuh Version
4.11.0

Wazuh Dashboards Version
4.11.0
Plugins

Please list all plugins currently enabled.

Host/Environment (please complete the following information):
Kubernetes/Docker Deployment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions