rename logs_model.ts->logsModel.ts; update references (#51468)

This commit is contained in:
user10x
2022-06-29 12:04:30 -07:00
committed by GitHub
parent 1f939f64e9
commit 39bd3e2fe3
10 changed files with 16 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ import {
LIMIT_LABEL,
logSeriesToLogsModel,
queryLogsVolume,
} from './logs_model';
} from './logsModel';
describe('dedupLogRows()', () => {
test('should return rows as is when dedup is set to none', () => {

View File

@@ -35,7 +35,7 @@ import {
Themeable2,
} from '@grafana/ui';
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
import { dedupLogRows, filterLogLevels } from 'app/core/logs_model';
import { dedupLogRows, filterLogLevels } from 'app/core/logsModel';
import store from 'app/core/store';
import { ExploreId } from 'app/types/explore';

View File

@@ -14,7 +14,7 @@ import {
} from '@grafana/data';
import { config } from '@grafana/runtime';
import { dataFrameToLogsModel } from '../../../core/logs_model';
import { dataFrameToLogsModel } from '../../../core/logsModel';
import { refreshIntervalToSortOrder } from '../../../core/utils/explore';
import { ExplorePanelData } from '../../../types';
import { preProcessPanelData } from '../../query/state/runRequest';

View File

@@ -22,7 +22,7 @@ import { selectors } from '@grafana/e2e-selectors';
import { reportInteraction } from '@grafana/runtime';
import { Button, Spinner, Table } from '@grafana/ui';
import { config } from 'app/core/config';
import { dataFrameToLogsModel } from 'app/core/logs_model';
import { dataFrameToLogsModel } from 'app/core/logsModel';
import { PanelModel } from 'app/features/dashboard/state';
import { GetDataOptions } from 'app/features/query/state/PanelQueryRunner';
import { transformToJaeger } from 'app/plugins/datasource/jaeger/responseTransform';

View File

@@ -28,7 +28,7 @@ import {
} from '@grafana/data';
import { BackendSrvRequest, getBackendSrv, getDataSourceSrv } from '@grafana/runtime';
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
import { queryLogsVolume } from 'app/core/logs_model';
import { queryLogsVolume } from 'app/core/logsModel';
import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_srv';
import { ElasticsearchAnnotationsQueryEditor } from './components/QueryEditor/AnnotationQueryEditor';

View File

@@ -28,7 +28,7 @@ function processStreamFrame(
): DataFrame {
const custom: Record<string, string> = {
...frame.meta?.custom, // keep the original meta.custom
// used by logs_model
// used by logsModel
lokiQueryStatKey: 'Summary: total bytes processed',
};

View File

@@ -36,7 +36,7 @@ import {
} from '@grafana/data';
import { FetchError, config, DataSourceWithBackend } from '@grafana/runtime';
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
import { queryLogsVolume } from 'app/core/logs_model';
import { queryLogsVolume } from 'app/core/logsModel';
import { convertToWebSocketUrl } from 'app/core/utils/explore';
import { getTimeSrv, TimeSrv } from 'app/features/dashboard/services/TimeSrv';
import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_srv';

View File

@@ -12,12 +12,10 @@ import {
DataHoverEvent,
} from '@grafana/data';
import { LogRows, CustomScrollbar, LogLabels, useStyles2, usePanelContext } from '@grafana/ui';
import { dataFrameToLogsModel, dedupLogRows } from 'app/core/logs_model';
import { dataFrameToLogsModel, dedupLogRows, COMMON_LABELS } from 'app/core/logsModel';
import { getFieldLinksForExplore } from 'app/features/explore/utils/links';
import { PanelDataErrorView } from 'app/features/panel/components/PanelDataErrorView';
import { COMMON_LABELS } from '../../../core/logs_model';
import { Options } from './types';
interface LogsPanelProps extends PanelProps<Options> {}