From 4e8e9b6cb2749d0af0cdf8af99e16516b0d38d8b Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Wed, 11 Oct 2017 15:45:04 -0500 Subject: [PATCH] Update reducers to reflect new field helper location --- ui/spec/shared/reducers/helpers/fieldSpec.js | 2 +- ui/src/data_explorer/components/FieldListItem.js | 6 +++++- ui/src/shared/components/FieldList.js | 2 +- ui/src/utils/queryTransitions.js | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/spec/shared/reducers/helpers/fieldSpec.js b/ui/spec/shared/reducers/helpers/fieldSpec.js index 32c99809df..b801aa953c 100644 --- a/ui/spec/shared/reducers/helpers/fieldSpec.js +++ b/ui/spec/shared/reducers/helpers/fieldSpec.js @@ -1,4 +1,4 @@ -import {numFunctions} from 'utils/fields' +import {numFunctions} from 'shared/reducers/helpers/field' describe('Formatting helpers', () => { describe('formatBytes', () => { diff --git a/ui/src/data_explorer/components/FieldListItem.js b/ui/src/data_explorer/components/FieldListItem.js index ce49e39d61..7f193ca42f 100644 --- a/ui/src/data_explorer/components/FieldListItem.js +++ b/ui/src/data_explorer/components/FieldListItem.js @@ -2,7 +2,11 @@ import React, {PropTypes, Component} from 'react' import classnames from 'classnames' import FunctionSelector from 'shared/components/FunctionSelector' -import {numFunctions, firstFieldName, functionNames} from 'utils/fields' +import { + numFunctions, + firstFieldName, + functionNames, +} from 'shared/reducers/helpers/field' class FieldListItem extends Component { constructor(props) { diff --git a/ui/src/shared/components/FieldList.js b/ui/src/shared/components/FieldList.js index 2abf50da68..d0407d65ea 100644 --- a/ui/src/shared/components/FieldList.js +++ b/ui/src/shared/components/FieldList.js @@ -8,7 +8,7 @@ import FancyScrollbar from 'shared/components/FancyScrollbar' import {showFieldKeys} from 'shared/apis/metaQuery' import showFieldKeysParser from 'shared/parsing/showFieldKeys' -import {numFunctions} from 'utils/fields' +import {numFunctions} from 'shared/reducers/helpers/field' class FieldList extends Component { constructor(props) { diff --git a/ui/src/utils/queryTransitions.js b/ui/src/utils/queryTransitions.js index f6dc243f83..d707b8dab3 100644 --- a/ui/src/utils/queryTransitions.js +++ b/ui/src/utils/queryTransitions.js @@ -1,7 +1,7 @@ import defaultQueryConfig from 'utils/defaultQueryConfig' import {DEFAULT_DASHBOARD_GROUP_BY_INTERVAL} from 'shared/constants' import {DEFAULT_DATA_EXPLORER_GROUP_BY_INTERVAL} from 'src/data_explorer/constants' -import {hasField, removeField} from 'utils/fields' +import {hasField, removeField} from 'shared/reducers/helpers/fields' import _ from 'lodash' export function editRawText(query, rawText) {