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

[Logs UI] Use react-intl FormattedRelative instead of a custom component #33146

Merged

Conversation

weltenwort
Copy link
Member

@weltenwort weltenwort commented Mar 13, 2019

Summary

This replaces the custom relative time component in the Logs UI live streaming inline loading indicator with the one from react-intl. This was not done at the time of the initial i18n introduction (#25213), because of #26237, which apparently has since been resolved via #26468. Visual changes should be limited to now being shown instead of 0s ago.

preview

Checklist

For maintainers

@weltenwort weltenwort added v8.0.0 Feature:Logs UI Logs UI feature Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.2.0 labels Mar 13, 2019
@weltenwort weltenwort self-assigned this Mar 13, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/infrastructure-ui

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@weltenwort weltenwort changed the title Use react-intl relative time component instead [Logs UI] Use react-intl FormattedRelative instead of a custom component Mar 13, 2019
@weltenwort weltenwort marked this pull request as ready for review March 13, 2019 16:35
@weltenwort weltenwort requested a review from Kerry350 March 13, 2019 16:35
@weltenwort
Copy link
Member Author

@Kerry350 this should eliminate the state update race condition you noticed while reviewing #31834

Copy link
Contributor

@Kerry350 Kerry350 left a comment

Choose a reason for hiding this comment

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

this should eliminate the state update race condition you noticed

Nice 👍

LGTM!

@weltenwort weltenwort merged commit 5208470 into elastic:master Mar 18, 2019
weltenwort added a commit to weltenwort/kibana that referenced this pull request Mar 18, 2019
…ent (elastic#33146)

This replaces the custom relative time component in the Logs UI live streaming inline loading indicator with the one from `react-intl`. This was not done at the time of the initial i18n introduction (elastic#25213), because of elastic#26237, which apparently has since been resolved via elastic#26468. Visual changes should be limited to `now` being shown instead of `0s ago`.
weltenwort added a commit that referenced this pull request Mar 18, 2019
…component (#33146) (#33398)

Backports the following commits to 7.x:
 - [Logs UI] Use react-intl FormattedRelative instead of a custom component  (#33146)
@weltenwort weltenwort added the non-issue Indicates to automation that a pull request should not appear in the release notes label May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Logs UI Logs UI feature non-issue Indicates to automation that a pull request should not appear in the release notes review Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants