Skip to content
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

Read-only table of rollup jobs #21900

Merged
merged 12 commits into from
Aug 17, 2018

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented Aug 11, 2018

image

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cjcenizal cjcenizal mentioned this pull request Aug 12, 2018
52 tasks
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@yaronp68
Copy link

image
@cjcenizal I think you are missing the groupings definitions in the flyout. In this case I have defined a date_histomgram

@cjcenizal
Copy link
Contributor Author

@yaronp68 Date histogram is a required grouping for rollup jobs. I left it out of the "Groups" column in the table because I figured it'd be repetitive and redundant. I'm a little on the fence about surfacing it as its own grouping in the detail panel. It's currently visible in the Summary tab. What do you think? Do you think there's a better way to present this information?

Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!!! So nice having a GUI to see my job configs now instead of having to use Dev Tools.

See comments for Histogram info issues. The other comments are mostly suggestions.


import {
TabSummary,
TabTerms,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Histogram tab is missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From looking at the docs, I think the "histogram" group is represented by the terms field (https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html). What do you think of referring to this Histogram in the UI (instead of Terms as it currently is), and add a note that it's represented by terms in the API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind! My mistake. You're right. I'll add Histogram in addition to the existing Terms.

time_zone: dateHistogramTimeZone,
field: dateHistogramField,
},
terms = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

histogram is missing here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, done!

groups: {
date_histogram: {
interval: rollupInterval,
delay: rollupDelay,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delay config is optional, so it's possible that this is empty, which looks kinda weird in UI. maybe we can default to None either right here or in the table and flyout with {{rollupDelay || 'None'}}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

</EuiDescriptionListTitle>

<EuiDescriptionListDescription>
{rollupIndex}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long values break to next line, maybe we can just increase the flyout size, especially since Histogram tab is needed

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed:

image

</EuiDescriptionListDescription>

<EuiDescriptionListTitle>
<strong>Cron</strong>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may be helpful to include tooltip(s) about the distinction between Cron (how often the job runs) and Interval (date histogram bucket interval)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

{rollupCron}
</EuiDescriptionListDescription>

<EuiDescriptionListTitle>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider putting Delay, Interval, Time field, and Timezone under a Date Histogram title, I think that will correlate this info with the user's configuration more strongly. I think Time field should also be the first piece of info in this block since it's the most important

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea, done.


esSection.register('index_rollup_jobs', {
visible: true,
display: 'Index Rollup Jobs',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this just be called Rollup Jobs? I haven't seen rollups prepended with Index in any docs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cjcenizal
Copy link
Contributor Author

@yaronp68 Cell content is now truncated:

image

@cjcenizal
Copy link
Contributor Author

@jen-huang All comments addressed, ready for your 👀 again.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and reviewed code.

One small comment, but LGTM!!

Thanks for the revisions!

fieldName: 'rollupIndex',
}, {
name: 'Delay',
fieldName: 'rollupDelay',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could use a custom render to show None for no value like in the flyout:
render(rollupDelay) => <Fragment>{rollupDelay || 'None'}</Fragment>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@cjcenizal cjcenizal merged commit 5df82d7 into elastic:feature/rollups Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants