Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed May 3, 2021
1 parent 328edc4 commit bf17be8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
*/

import { getStats } from './get_usage_collector';
import { createCollectorFetchContextMock } from 'src/plugins/usage_collection/server/mocks';
import { createCollectorFetchContextMock } from '../../../usage_collection/server/mocks';
import { TIME_RANGE_DATA_MODES } from '../../common/timerange_data_modes';
import { SavedObjectsClientContract, SavedObjectsFindResponse } from 'kibana/server';
import type { SavedObjectsClientContract, SavedObjectsFindResponse } from '../../../../core/server';

const mockedSavedObject = {
saved_objects: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
* Side Public License, v 1.
*/

import {
import { TIME_RANGE_DATA_MODES } from '../../common/timerange_data_modes';
import { findByValueEmbeddables } from '../../../dashboard/server';

import type {
SavedObjectsClientContract,
ISavedObjectsRepository,
SavedObjectsFindResult,
} from 'kibana/server';
import { TIME_RANGE_DATA_MODES } from '../../common/timerange_data_modes';
import { findByValueEmbeddables } from '../../../dashboard/server';
import { SavedVisState } from '../../../visualizations/common';
} from '../../../../core/server';
import type { SavedVisState } from '../../../visualizations/common';

export interface TimeseriesUsage {
timeseries_use_last_value_mode_total: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

import { mockStats, mockGetStats } from './get_usage_collector.mock';
import { createUsageCollectionSetupMock } from 'src/plugins/usage_collection/server/mocks';
import { createCollectorFetchContextMock } from 'src/plugins/usage_collection/server/mocks';
import { createUsageCollectionSetupMock } from '../../../usage_collection/server/mocks';
import { createCollectorFetchContextMock } from '../../../usage_collection/server/mocks';
import { registerTimeseriesUsageCollector } from './register_timeseries_collector';

describe('registerTimeseriesUsageCollector', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* Side Public License, v 1.
*/

import { UsageCollectionSetup } from 'src/plugins/usage_collection/server';
import { getStats, TimeseriesUsage } from './get_usage_collector';
import type { UsageCollectionSetup } from '../../../usage_collection/server';

export function registerTimeseriesUsageCollector(collectorSet: UsageCollectionSetup) {
const collector = collectorSet.makeUsageCollector<TimeseriesUsage | undefined>({
Expand Down

0 comments on commit bf17be8

Please sign in to comment.