opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 893 forks source link

[BUG][Visualizations] Disabling Vega visualization seems to be disable other visualization types too. #5566

Open bandinib-amzn opened 11 months ago

bandinib-amzn commented 11 months ago

Describe the bug When I disable Vega visualization type by configuring vis_type_vega.enabled: false in opensearch_dashboards.yml, it disables other visualizations type as well such as line, bar, area, pie etc.

To Reproduce Steps to reproduce the behavior:

  1. Go to opensearch_dashboards.yml
  2. Add vis_type_vega.enabled: false
  3. Start OpenSearch Dashboards
  4. Open Visualization, and click on Create visualization
  5. If sample data has been already added, see visualization list or dashboards.

Expected behavior Only Vega visualization type should be hidden.

OpenSearch Version Please list the version of OpenSearch being used.

Dashboards Version It was definitely working in 2.7. I found this bug in 2.11.

Plugins

N/A

Screenshots

Before setting After setting
Screenshot 2023-12-01 at 2 11 56 PM Screenshot 2023-12-01 at 2 14 48 PM
Screenshot 2023-12-01 at 2 12 14 PM Screenshot 2023-12-01 at 2 14 34 PM
Screenshot 2023-12-01 at 2 12 42 PM Screenshot 2023-12-01 at 2 15 11 PM

Host/Environment (please complete the following information):

Additional context

Add any other context about the problem here.

abbyhu2000 commented 11 months ago

Verified the bugs, disabling vega visualizations will indeed disable other visualization types too. @ohltyler Could you take a look at this bug?