OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[BUG] - Controls Visualization throws Cannot read properties of undefined (reading 'toLowerCase')
Describe the bug
This just recently started happening when trying to create or edit a Controls visualization. I'm unable to edit any of my existing controls visualizations or create a new one because a Cannot read properties of undefined (reading 'toLowerCase') error message displays.
It was happening in 2.11, so I deleted the containers and redeployed using docker compose. I'm now up to 2.13 and it's still happening.
To Reproduce Steps to reproduce the behavior:
- Go to Visualize
- Click on Create Visualization
- Select Controls
- Choose Options List or Range Slider
- Click Add
- See error:
Error: Cannot read properties of undefined (reading 'toLowerCase')
at fF (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/[email protected]:609:2446228)
at pF (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/[email protected]:609:2446351)
at http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/[email protected]:609:2446712
at Array.forEach (
) at dF (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/[email protected]:609:2446525) at value (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/[email protected]:609:2467189) at bi (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:48655) at Da (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:68735) at gs (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:105471) at uc (http://10.246.151.248:5601/7550/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js:435:96718)
Expected behavior The dropdown menu creation UI will show.
OpenSearch Version 2.13.0
Dashboards Version 2.13.0
Plugins Logstash
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
- OS: SLES 15 SP4
- Browser and version [e.g. 22]: Edge 124.0.2478.51
Additional context
Add any other context about the problem here.
Hey @nastri83 do you mind sharing your aggregation config which should be in your URL (removing all the sensitive information) or from within the saved objects inspect view.
Sure. This is the url that is displayed when I hit the error.
http://<server IP>:5601/app/visualize#/create?type=input_control_vis&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-7d,to:now))&_a=(filters:!(),linked:!f,query:(language:kuery,query:''),uiState:(),vis:(aggs:!(),params:(controls:!(),pinFilters:!f,updateFiltersOnChange:!f,useTimeFilter:!f),title:'',type:input_control_vis))
@nastri83 I'm unable to reproduce your issue based on the reproduction steps provided. Here is a link to the playground where i followed the steps you mentioned without any issues:
https://playground.opensearch.org/app/visualize#/create?type=input_control_vis&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-7d,to:now))&_a=(filters:!(),linked:!f,query:(language:kuery,query:''),uiState:(),vis:(aggs:!(),params:(controls:!(),pinFilters:!f,updateFiltersOnChange:!f,useTimeFilter:!f),title:'',type:input_control_vis))
If you could attach a video of the issue with the console window open it would help reproducing the error on our end. See a screenshot below of how you can do this.
https://github.com/opensearch-project/OpenSearch-Dashboards/assets/9575538/769e901e-10b5-438a-ba09-093a3c8ed313
Attaching video of bug