Logs: Feature flag logRowsPopoverMenu removed (#113583)
* logRowsPopoverMenu: remove feature flag * Remove import * Remove feature flag
This commit is contained in:
@@ -44,7 +44,6 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general-
|
||||
| `dashboardSceneSolo` | Enables rendering dashboards using scenes for solo panels | Yes |
|
||||
| `dashboardScene` | Enables dashboard rendering using scenes for all roles | Yes |
|
||||
| `logsInfiniteScrolling` | Enables infinite scrolling for the Logs panel in Explore and Dashboards | Yes |
|
||||
| `logRowsPopoverMenu` | Enable filtering menu displayed when text of a log line is selected | Yes |
|
||||
| `alertingQueryOptimization` | Optimizes eligible queries in order to reduce load on datasources | |
|
||||
| `onPremToCloudMigrations` | Enable the Grafana Migration Assistant, which helps you easily migrate various on-prem resources to your Grafana Cloud stack. | Yes |
|
||||
| `newPDFRendering` | New implementation for the dashboard-to-PDF rendering | Yes |
|
||||
|
||||
+2
-3
@@ -396,10 +396,9 @@ export interface FeatureToggles {
|
||||
*/
|
||||
logsInfiniteScrolling?: boolean;
|
||||
/**
|
||||
* Enable filtering menu displayed when text of a log line is selected
|
||||
* @default true
|
||||
* Disables passing host environment variable to plugin processes
|
||||
*/
|
||||
logRowsPopoverMenu?: boolean;
|
||||
pluginsSkipHostEnvVars?: boolean;
|
||||
/**
|
||||
* Enables shared crosshair in table panel
|
||||
*/
|
||||
|
||||
@@ -664,12 +664,11 @@ var (
|
||||
Owner: grafanaObservabilityLogsSquad,
|
||||
},
|
||||
{
|
||||
Name: "logRowsPopoverMenu",
|
||||
Description: "Enable filtering menu displayed when text of a log line is selected",
|
||||
Stage: FeatureStageGeneralAvailability,
|
||||
FrontendOnly: true,
|
||||
Expression: "true",
|
||||
Owner: grafanaObservabilityLogsSquad,
|
||||
Name: "pluginsSkipHostEnvVars",
|
||||
Description: "Disables passing host environment variable to plugin processes",
|
||||
Stage: FeatureStageExperimental,
|
||||
FrontendOnly: false,
|
||||
Owner: grafanaPluginsPlatformSquad,
|
||||
},
|
||||
{
|
||||
Name: "tableSharedCrosshair",
|
||||
|
||||
Generated
+1
-1
@@ -88,7 +88,7 @@ pdfTables,preview,@grafana/grafana-operator-experience-squad,false,false,false
|
||||
canvasPanelPanZoom,preview,@grafana/dataviz-squad,false,false,true
|
||||
timeComparison,experimental,@grafana/dataviz-squad,false,false,true
|
||||
logsInfiniteScrolling,GA,@grafana/observability-logs,false,false,true
|
||||
logRowsPopoverMenu,GA,@grafana/observability-logs,false,false,true
|
||||
pluginsSkipHostEnvVars,experimental,@grafana/plugins-platform-backend,false,false,false
|
||||
tableSharedCrosshair,experimental,@grafana/dataviz-squad,false,false,true
|
||||
kubernetesFeatureToggles,experimental,@grafana/grafana-operator-experience-squad,false,false,true
|
||||
cloudRBACRoles,preview,@grafana/identity-access-team,false,true,false
|
||||
|
||||
|
Generated
+3
-3
@@ -363,9 +363,9 @@ const (
|
||||
// Enables infinite scrolling for the Logs panel in Explore and Dashboards
|
||||
FlagLogsInfiniteScrolling = "logsInfiniteScrolling"
|
||||
|
||||
// FlagLogRowsPopoverMenu
|
||||
// Enable filtering menu displayed when text of a log line is selected
|
||||
FlagLogRowsPopoverMenu = "logRowsPopoverMenu"
|
||||
// FlagPluginsSkipHostEnvVars
|
||||
// Disables passing host environment variable to plugin processes
|
||||
FlagPluginsSkipHostEnvVars = "pluginsSkipHostEnvVars"
|
||||
|
||||
// FlagTableSharedCrosshair
|
||||
// Enables shared crosshair in table panel
|
||||
|
||||
+2
-1
@@ -2517,7 +2517,8 @@
|
||||
"metadata": {
|
||||
"name": "logRowsPopoverMenu",
|
||||
"resourceVersion": "1753448760331",
|
||||
"creationTimestamp": "2023-11-16T09:48:10Z"
|
||||
"creationTimestamp": "2023-11-16T09:48:10Z",
|
||||
"deletionTimestamp": "2025-11-07T10:57:27Z"
|
||||
},
|
||||
"spec": {
|
||||
"description": "Enable filtering menu displayed when text of a log line is selected",
|
||||
|
||||
@@ -18,13 +18,6 @@ jest.mock('../utils', () => ({
|
||||
|
||||
jest.mock('@grafana/runtime', () => ({
|
||||
...jest.requireActual('@grafana/runtime'),
|
||||
config: {
|
||||
...jest.requireActual('@grafana/runtime').config,
|
||||
featureToggles: {
|
||||
...jest.requireActual('@grafana/runtime').config.featureToggles,
|
||||
logRowsPopoverMenu: true,
|
||||
},
|
||||
},
|
||||
usePluginLinks: jest.fn().mockReturnValue({ links: [] }),
|
||||
}));
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ import {
|
||||
TimeRange,
|
||||
} from '@grafana/data';
|
||||
import { Trans, t } from '@grafana/i18n';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { DataQuery } from '@grafana/schema';
|
||||
import { ConfirmModal, Icon, PopoverContent, useTheme2 } from '@grafana/ui';
|
||||
import { GetFieldLinksFn } from 'app/plugins/panel/logs/types';
|
||||
@@ -169,7 +168,7 @@ export const LogRows = memo(
|
||||
);
|
||||
|
||||
const popoverMenuSupported = useCallback(() => {
|
||||
if (!config.featureToggles.logRowsPopoverMenu || isPopoverMenuDisabled()) {
|
||||
if (isPopoverMenuDisabled()) {
|
||||
return false;
|
||||
}
|
||||
return Boolean(onClickFilterOutString || onClickFilterString);
|
||||
|
||||
@@ -33,13 +33,6 @@ jest.mock('@grafana/runtime', () => {
|
||||
...jest.requireActual('@grafana/runtime'),
|
||||
usePluginLinks: jest.fn().mockReturnValue({ links: [] }),
|
||||
reportInteraction: jest.fn(),
|
||||
config: {
|
||||
...jest.requireActual('@grafana/runtime').config,
|
||||
featureToggles: {
|
||||
...jest.requireActual('@grafana/runtime').config.featureToggles,
|
||||
logRowsPopoverMenu: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import { useCallback, useRef, useState, MouseEvent } from 'react';
|
||||
|
||||
import { config } from '@grafana/runtime';
|
||||
|
||||
import { disablePopoverMenu, enablePopoverMenu, isPopoverMenuDisabled, targetIsElement } from '../../utils';
|
||||
import { PopoverStateType } from '../LogRows';
|
||||
|
||||
@@ -19,7 +17,7 @@ export const usePopoverMenu = (containerElement: HTMLDivElement | null) => {
|
||||
const { onClickFilterOutString, onClickFilterString } = useLogListContext();
|
||||
|
||||
const popoverMenuSupported = useCallback(() => {
|
||||
if (!config.featureToggles.logRowsPopoverMenu || isPopoverMenuDisabled()) {
|
||||
if (isPopoverMenuDisabled()) {
|
||||
return false;
|
||||
}
|
||||
return Boolean(onClickFilterOutString || onClickFilterString);
|
||||
|
||||
Reference in New Issue
Block a user