opensearch-project / dashboards-observability

Visualize and explore your logs, traces and metrics data in OpenSearch Dashboards
https://opensearch.org/docs/latest/observability-plugin/index/
Apache License 2.0
14 stars 51 forks source link

[BUG] Log Explorer results table columns reordering #2069

Open paulstn opened 3 weeks ago

paulstn commented 3 weeks ago

What is the bug? The extra options popup within the results table of Log Explorer shows the options to move a column left or right, but clicking so doesn't make that change. image

How can one reproduce the bug? Steps to reproduce the behavior:

  1. Navigate to Log Explorer
  2. Run a query that will return results
  3. Through the sidebar, select a couple fields
  4. Click on the field name at the top
  5. Attempt to use the 'Move right' option

What is the expected behavior? There are two possible resolutions:

  1. Implement the move column option
  2. Explicitly disable this move column option
paulstn commented 3 weeks ago

To disable, change this option: https://github.com/opensearch-project/dashboards-observability/blob/main/public/components/event_analytics/explorer/events_views/data_grid.tsx#L301

paulstn commented 3 weeks ago

Implemented here: https://github.com/opensearch-project/dashboards-observability/pull/1221

paulstn commented 1 week ago

Trying to disable the reorder column doesn't seem to grey out the option, along with the allowHide field not greying out the 'hide' option. This might be an issue with Oui DataGrid, but de-prioritizing it for now