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

Per panel time range #39937

Conversation

stacey-gammon
Copy link
Contributor

@stacey-gammon stacey-gammon commented Jun 28, 2019

Summary

Each panel on a dashboard can now be configured to show a custom time range, independent from the global one. Just go to the menu options and select Customize time range. If the panel's time range is different than what is showing in the global time picker, it will contain a visible badge showing the date.

Screen Shot 2019-07-24 at 10 57 51 AM

Screen Shot 2019-07-24 at 10 58 01 AM

Screen Shot 2019-07-24 at 10 52 11 AM

fixes #17776 and #3578

@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2019-06-28-time-range-per-panel branch from 3497eed to 68c3519 Compare July 8, 2019 19:16
@elasticmachine
Copy link
Contributor

💔 Build Failed

@Conky5
Copy link
Contributor

Conky5 commented Jul 8, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2019-06-28-time-range-per-panel branch 4 times, most recently from be93ca1 to 264c904 Compare July 12, 2019 19:52
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2019-06-28-time-range-per-panel branch from 264c904 to 615669e Compare July 12, 2019 23:47
@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2019-06-28-time-range-per-panel branch from 615669e to 09ee01f Compare July 13, 2019 13:46
@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2019-06-28-time-range-per-panel branch from 09ee01f to 1460884 Compare July 13, 2019 15:18
@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2019-06-28-time-range-per-panel branch from 1460884 to 1a7f7f0 Compare July 15, 2019 20:36
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@stacey-gammon
Copy link
Contributor Author

Just need the pretty print functionality from EUI and this is ready to GO! woot!

@elasticmachine
Copy link
Contributor

💔 Build Failed

@stacey-gammon
Copy link
Contributor Author

failed on maps app documents source search hits filter by extent should handle geo_shape filtering with extents that cross antimeridian

going to pull in master and retry.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks for making those changes, though I'm still seeing an issue with the flex group layout of the modal buttons.

</EuiModalHeader>

<EuiModalBody>
{' '}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there an empty space 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.

I do not know, I remove all the weird spaces in this file.

)}
</EuiButtonEmpty>

<EuiButton
Copy link
Contributor

Choose a reason for hiding this comment

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

This flex group stuff still needs to be cleaned up. There's too many nested FlexGroups. You can use the code above for the layout.

@stacey-gammon
Copy link
Contributor Author

@AlonaNadler - good call, I missed that the recent time ranges were different. It's now pulling from advanced settings so they should match.

Screen Shot 2019-07-29 at 10 09 45 AM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cchaos
Copy link
Contributor

cchaos commented Jul 29, 2019

I'm noticing that if the panels get really skinny, the time range badge can become completely invisible.

Screen Shot 2019-07-29 at 11 42 35 AM

I'll have to give you a PR that will allow the panel title to wrap its contents.


Another quick question, should user's be able to customize time ranges when not in edit mode?

@stacey-gammon
Copy link
Contributor Author

Ah, awesome, good catch re: the wrapping.

Another quick question, should user's be able to customize time ranges when not in edit mode?

Yep, that is intentional, so a user who doesn't have edit rights can still temporarily see the different time range, it just won't be saved with the panel like it would in edit mode. If that seems too confusing we can talk about removing it, but I'm pretty sure @AlonaNadler thinks users will find that functionality useful.

@cchaos
Copy link
Contributor

cchaos commented Jul 29, 2019

PR4U: stacey-gammon#10

Yep, that is intentional

I think it's fine to allow this in non-edit mode, I just think it's currently unclear that this won't be saved with the dashboard. But I'm not really sure how to mitigate that.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@stacey-gammon
Copy link
Contributor Author

Ping @ppisljar or @streamich for review. :) (I promise @streamich I'm going to review your inspector -> NP today!)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

very nice! i have some small comments but mostly LGTM
tested on chrome linux

* you may not use this file except in compliance with the Elastic License.
*/

import { PluginInitializerContext, CoreStart } from 'src/core/public';
Copy link
Member

Choose a reason for hiding this comment

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

this is not shim and should be moved one level up i think @streamich ?

x-pack/legacy/plugins/advanced_ui_actions/public/index.ts Outdated Show resolved Hide resolved
@cchaos
Copy link
Contributor

cchaos commented Aug 5, 2019

Hey @stacey-gammon Did you see my PR I made for you that will fix the wrapping header? stacey-gammon#10

@elasticmachine
Copy link
Contributor

💔 Build Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Meta: Custom time ranges per panel
6 participants