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

[Montiroing] Add monitoring toolbar with date picker #110612

Merged
merged 7 commits into from
Sep 1, 2021

Conversation

phillipb
Copy link
Contributor

Summary

Add date picker with context to the new react app. Still needs some styling, but code is ready to be used.

@phillipb phillipb added v8.0.0 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services release_note:skip Skip the PR/issue when compiling release notes Feature:Stack Monitoring v7.16.0 Epic: Stack Monitoring de-angularization labels Aug 31, 2021
@phillipb phillipb requested a review from a team as a code owner August 31, 2021 13:26
@phillipb phillipb requested review from a team August 31, 2021 13:26
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@@ -11,7 +11,6 @@ import { MonitoringStartPluginDependencies } from '../types';
interface GlobalStateProviderProps {
query: MonitoringStartPluginDependencies['data']['query'];
toasts: MonitoringStartPluginDependencies['core']['notifications']['toasts'];
children: React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

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

I knew that this had to be wrong 😅 thanks for fixing it!

import React, { useContext, useCallback } from 'react';
import { MonitoringTimeContainer } from '../../application/pages/use_monitoring_time';

export const MonitoringToolbar = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This component should probably be used in the page template

Copy link
Contributor

@estermv estermv left a comment

Choose a reason for hiding this comment

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

LGTM 🚀
Looking forward to seeing it all working together!

to: 'now',
interval: DEFAULT_TIMERANGE.interval,
};
const [refreshInterval, setRefreshInterval] = useState(5000);
Copy link
Contributor

Choose a reason for hiding this comment

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

This value should be 10000.


return (
<EuiFlexGroup gutterSize={'xl'} justifyContent={'spaceBetween'}>
<EuiFlexItem>Setup Button</EuiFlexItem>
Copy link
Contributor

Choose a reason for hiding this comment

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

For later, but looks like the NoData screen doesn't show the setup button. Guessing we'll need a flag to hide it.

Copy link
Contributor

Choose a reason for hiding this comment

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

@matschaffer the setup button should not be rendered from the template. It's rendered from the setup lib.
In the page template, we only need the container that is used from that method, so the only thing we need to do is some cleanup here.

@matschaffer
Copy link
Contributor

@elasticmachine update branch

@matschaffer
Copy link
Contributor

Test failure is on alerting_api_integration so updated branch to see if master contains a fix (or maybe flakey).

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
monitoring 577 580 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
monitoring 758.8KB 762.6KB +3.8KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@phillipb phillipb merged commit a386dfe into elastic:master Sep 1, 2021
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 110612 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Sep 3, 2021
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 110612 or prevent reminders by adding the backport:skip label.

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 110612 or prevent reminders by adding the backport:skip label.

estermv pushed a commit to estermv/kibana that referenced this pull request Sep 7, 2021
estermv added a commit that referenced this pull request Sep 7, 2021
Co-authored-by: Phillip Burch <phillip.burch@live.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic: Stack Monitoring de-angularization Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants