Skip to content

Commit

Permalink
[Maps] convert map redux reducer to typescript (#91955) (#92331)
Browse files Browse the repository at this point in the history
* [Maps] convert map redux reducer to typescript

* fix jest test

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
nreese and kibanamachine authored Feb 23, 2021
1 parent 5cbf215 commit 8bc7fff
Show file tree
Hide file tree
Showing 17 changed files with 668 additions and 290 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/maps/public/actions/data_request_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ function onDataLoadError(
dispatch(cleanTooltipStateForLayer(layerId));
dispatch({
type: LAYER_DATA_LOAD_ERROR,
data: null,
layerId,
dataId,
requestToken,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/classes/layers/layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
SOURCE_TYPES,
STYLE_TYPE,
} from '../../../common/constants';
import { copyPersistentState } from '../../reducers/util';
import { copyPersistentState } from '../../reducers/copy_persistent_state';
import {
AggDescriptor,
ESTermSourceDescriptor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
getSearchService,
} from '../../../kibana_services';
import { createExtentFilter } from '../../../../common/elasticsearch_util';
import { copyPersistentState } from '../../../reducers/util';
import { copyPersistentState } from '../../../reducers/copy_persistent_state';
import { DataRequestAbortError } from '../../util/data_request';
import { expandToTileBoundaries } from '../../../../common/geo_tile_utils';
import { search } from '../../../../../../../src/plugins/data/public';
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/classes/sources/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ReactElement } from 'react';

import { Adapters } from 'src/plugins/inspector/public';
import { GeoJsonProperties } from 'geojson';
import { copyPersistentState } from '../../reducers/util';
import { copyPersistentState } from '../../reducers/copy_persistent_state';

import { IField } from '../fields/field';
import { FieldFormatter, MAX_ZOOM, MIN_ZOOM } from '../../../common/constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import React from 'react';
import { shallow } from 'enzyme';

import { NavigationPanel } from './navigation_panel';
import { getDefaultMapSettings } from '../../reducers/default_map_settings';
import { getDefaultMapSettings } from '../../reducers/map/default_map_settings';
import { INITIAL_LOCATION } from '../../../common/constants';

const defaultProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { copyPersistentState } from './util';
import { copyPersistentState } from './copy_persistent_state';

describe('reducers/util', () => {
describe('copyPersistentState', () => {
Expand Down
File renamed without changes.
57 changes: 0 additions & 57 deletions x-pack/plugins/maps/public/reducers/map.test.js

This file was deleted.

Loading

0 comments on commit 8bc7fff

Please sign in to comment.