Skip to content

[Uptime] Implement EuiSuperDatePicker#28217

Merged
justinkambic merged 15 commits intoelastic:masterfrom
justinkambic:uptime_super-date-picker
Jan 18, 2019
Merged

[Uptime] Implement EuiSuperDatePicker#28217
justinkambic merged 15 commits intoelastic:masterfrom
justinkambic:uptime_super-date-picker

Conversation

@justinkambic
Copy link
Copy Markdown
Contributor

@justinkambic justinkambic commented Jan 7, 2019

Summary

Implementation of EuiSuperDatePicker and comprehensive refactoring of how the plugin handles date ranges.

Testing this PR

  • Edit the date range on both the Overview and Monitor pages, ensure the views are updated

Note to reviewers

@justinkambic justinkambic added WIP Work in progress v7.0.0 refactoring Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v6.7.0 labels Jan 7, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/uptime

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@justinkambic justinkambic removed the WIP Work in progress label Jan 8, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@justinkambic justinkambic mentioned this pull request Jan 9, 2019
31 tasks
@justinkambic justinkambic force-pushed the uptime_super-date-picker branch from ddc24f1 to 6b0bc8a Compare January 10, 2019 19:22
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@justinkambic justinkambic force-pushed the uptime_super-date-picker branch from 6b0bc8a to 613a76c Compare January 10, 2019 21:06
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@justinkambic justinkambic force-pushed the uptime_super-date-picker branch from 699fc59 to 4af93e3 Compare January 11, 2019 17:19
@justinkambic justinkambic requested a review from andrewvc January 11, 2019 17:59
@justinkambic justinkambic added the WIP Work in progress label Jan 11, 2019
@justinkambic
Copy link
Copy Markdown
Contributor Author

jenkins test this

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@justinkambic justinkambic added review and removed WIP Work in progress labels Jan 16, 2019
@justinkambic justinkambic force-pushed the uptime_super-date-picker branch from 3e43147 to 409811c Compare January 16, 2019 15:19
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@justinkambic justinkambic force-pushed the uptime_super-date-picker branch from ee211fc to adee7a3 Compare January 16, 2019 22:21
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@andrewvc
Copy link
Copy Markdown
Contributor

SDP should have a seconds interval as well. This is the default, set to 5000.

image

The refresh button doesn't work either, but that's a separate issue from SDP right @justinkambic ?

minDuration,
status,
}: any) => {
maxRtt.push({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What does this do exactly? This could possibly use a comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 60c613c.

Copy link
Copy Markdown
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

I left some comments about adding additional comments. I'm going to LGTM this conditional to those comments being added.

Great work, I see the code looks much nicer in a number of ways with this PR.

}
);

const checksDomain = upSeries.concat(downSeries).map(({ y }) => y);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This could probably also use a plain english explanatory comment block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 9392894.

$dateRangeStart: String!
$dateRangeEnd: String!
$downCount: Int!
$windowSize: Int!
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like the stricter reqs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍

@andrewvc
Copy link
Copy Markdown
Contributor

Feel free to merge now. You can address the minutes/seconds issue in a follow-up PR if need be.

@justinkambic
Copy link
Copy Markdown
Contributor Author

SDP should have a seconds interval as well. This is the default, set to 5000.

Addressed in 28a1d4a.

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

Tested the functionality and seems to work fine!

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@justinkambic justinkambic merged commit 0cb9932 into elastic:master Jan 18, 2019
justinkambic added a commit to justinkambic/kibana that referenced this pull request Jan 22, 2019
* Implement EuiSuperDatePicker, update components to use new state props.

* Update backend to accept values from EuiSuperDatePicker.

* Fix issues with implementation of super date picker.

* Fix bug in autorefresh enablement.

* Delete obsolete code.

* Fix broken types.

* Add comment to remind to delete code once it's obsolete.

* Fix types.

* Remove unused import.

* Add polling for ErrorList component.

* Update broken unit tests.

* Change default autorefresh interval.

* Add comments based on PR feedback.

* Add comment based on PR feedback.
justinkambic added a commit that referenced this pull request Jan 23, 2019
* Implement EuiSuperDatePicker, update components to use new state props.

* Update backend to accept values from EuiSuperDatePicker.

* Fix issues with implementation of super date picker.

* Fix bug in autorefresh enablement.

* Delete obsolete code.

* Fix broken types.

* Add comment to remind to delete code once it's obsolete.

* Fix types.

* Remove unused import.

* Add polling for ErrorList component.

* Update broken unit tests.

* Change default autorefresh interval.

* Add comments based on PR feedback.

* Add comment based on PR feedback.
@justinkambic
Copy link
Copy Markdown
Contributor Author

Backported to:
6.x/6.7.0 9990165
#29136

@justinkambic justinkambic deleted the uptime_super-date-picker branch January 23, 2019 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring review Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v6.7.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants