Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import { cloneDeep, get, pick } from 'lodash';

import { WEEK } from '../../../../../../../../src/plugins/es_ui_shared/public';

import { validateId } from './validate_id';
import { validateIndexPattern } from './validate_index_pattern';
import { validateRollupIndex } from './validate_rollup_index';
Expand Down Expand Up @@ -66,7 +64,7 @@ export const stepIdToStepConfigMap = {
// a few hours as they're being restarted. A delay of 1d would allow them that period to reboot
// and the "expense" is pretty negligible in most cases: 1 day of extra non-rolled-up data.
rollupDelay: '1d',
cronFrequency: WEEK,
cronFrequency: 'WEEK',
fieldToPreferredValueMap: {},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ describe('Create Rollup Job, step 1: Logistics', () => {
expect(options).toEqual(['minute', 'hour', 'day', 'week', 'month', 'year']);
});

it('should default to "WEEK"', () => {
const frequencySelect = find('cronFrequencySelect');
expect(frequencySelect.props().value).toBe('WEEK');
});

describe('every minute', () => {
it('should not have any additional configuration', () => {
changeFrequency('MINUTE');
Expand Down