Skip to content

Fix "No data everywhere" when clicking a table cell value

Aiho Tehisaru requested to merge fix/table-adhoc-filter-no-data into trunk

Root cause (confirmed in Grafana source, TableCellActions.tsx / render-hooks.tsx): clicking a table cell's "Filter for value" action uses the field's name as the filter key and creates/updates a dashboard-wide AdHocFiltersVariable bound to our Loki datasource. Ad hoc filters get auto-injected into every query on that datasource - but our table columns (status, country, IP, user_agent, ...) are all JSON-derived fields, not real Loki stream labels, so Loki can't match them at the label-selector level and every panel using ${datasource} comes back empty.

The cell action only renders when field.config.filterable is true (gated by showFilters = Boolean(field.config.filterable && ...)), which we never explicitly set - but explicitly setting it to false on every table panel's fieldConfig.defaults.custom removes the action entirely, so there's nothing left to accidentally trigger it.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01EV6SQsz6pc6saCHMjNtFN9

Merge request reports

Loading