-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add date histogram step to Create Rollup Job Wizard #22789
Add date histogram step to Create Rollup Job Wizard #22789
Conversation
💔 Build Failed |
38f8d5b
to
cbc8f66
Compare
💔 Build Failed |
<EuiFieldText | ||
value={dateHistogramInterval || ''} | ||
onChange={e => onFieldsChange({ dateHistogramInterval: e.target.value })} | ||
isInvalid={Boolean(areStepErrorsVisible && errorDateHistogramInterval)} |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
<EuiFieldText | ||
value={dateHistogramDelay || ''} | ||
onChange={e => onFieldsChange({ dateHistogramDelay: e.target.value })} | ||
isInvalid={Boolean(areStepErrorsVisible && errorDateHistogramDelay)} |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
description={( | ||
<FormattedMessage | ||
id="xpack.rollupJobs.create.stepDateHistogram.sectionDataStorage.description" | ||
defaultMessage="How should this date histogram data be rolled up?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description can be fleshed out to add something like
How long should we wait before rolling up new documents? By default, the indexer attempts to roll up all data that is available. What time zone should the rollup documents be stored as?
(this is just kind of copied from the rollup docs 😄)
@@ -6,7 +6,7 @@ | |||
|
|||
import React, { Component, Fragment } from 'react'; | |||
import PropTypes from 'prop-types'; | |||
import { mapValues, cloneDeep } from 'lodash'; | |||
import { mapValues, cloneDeep, debounce } from 'lodash'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we import these separately instead of the entire lodash library?
cd48774
to
25aa4bf
Compare
- Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields.
7c80524
to
5365205
Compare
💔 Build Failed |
- Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module.
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
I consider the form group error to be something to be fixed on the EUI side, but it's also possible this design will change and render the issue moot. So I'm going to wait and address that console error later. |
💔 Build Failed |
* Condense app teardown logic. * Fix React form error with null values by substituting empty strings. * Block progression if the form contains errors. * Validate index pattern as you type. - Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields. * Validate that index pattern and rollup index aren't the same. * Add validation for date histogram step. - Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module. * Apply maxWidth to detail panel. * Show success toasts when jobs are deleted.
* Condense app teardown logic. * Fix React form error with null values by substituting empty strings. * Block progression if the form contains errors. * Validate index pattern as you type. - Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields. * Validate that index pattern and rollup index aren't the same. * Add validation for date histogram step. - Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module. * Apply maxWidth to detail panel. * Show success toasts when jobs are deleted.
* Condense app teardown logic. * Fix React form error with null values by substituting empty strings. * Block progression if the form contains errors. * Validate index pattern as you type. - Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields. * Validate that index pattern and rollup index aren't the same. * Add validation for date histogram step. - Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module. * Apply maxWidth to detail panel. * Show success toasts when jobs are deleted.
* Condense app teardown logic. * Fix React form error with null values by substituting empty strings. * Block progression if the form contains errors. * Validate index pattern as you type. - Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields. * Validate that index pattern and rollup index aren't the same. * Add validation for date histogram step. - Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module. * Apply maxWidth to detail panel. * Show success toasts when jobs are deleted.
* Condense app teardown logic. * Fix React form error with null values by substituting empty strings. * Block progression if the form contains errors. * Validate index pattern as you type. - Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields. * Validate that index pattern and rollup index aren't the same. * Add validation for date histogram step. - Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module. * Apply maxWidth to detail panel. * Show success toasts when jobs are deleted.
* Condense app teardown logic. * Fix React form error with null values by substituting empty strings. * Block progression if the form contains errors. * Validate index pattern as you type. - Add /api/rollup/index_pattern_validity/{indexPattern} API endpoint. - Check that the index pattern matches indices, does not match rollup indices, and contains time fields. * Validate that index pattern and rollup index aren't the same. * Add validation for date histogram step. - Require date field and interval. - Parse interval and delay for valid format. - Add ParseEsIntervalInvalidFormatError and ParseEsIntervalInvalidCalendarIntervalError to parseEsInterval module. * Apply maxWidth to detail panel. * Show success toasts when jobs are deleted.
To-do:
select
Date histogram step
Async index pattern validation