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

Fix formatdate not allowing strings #37301

Merged
merged 2 commits into from
May 29, 2019

Conversation

clintandrewhall
Copy link
Contributor

Summary

@alexfrancoeur noticed that formatdate was claiming a GMT date string wasn't a valid date. It turns out, while formatdate is using moment under the hood, the function spec wasn't allowing a string as an input.

This PR fixes that issue.

Before

Screen Shot 2019-05-17 at 2 56 38 PM

After

Screen Shot 2019-05-17 at 2 55 51 PM

@clintandrewhall clintandrewhall added review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas loe:small Small Level of Effort v8.0.0 v7.3.0 impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels May 29, 2019
@clintandrewhall clintandrewhall requested a review from a team as a code owner May 29, 2019 03:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@clintandrewhall clintandrewhall added the release_note:skip Skip the PR/issue when compiling release notes label May 29, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

Simple enough change 👍 . Can you update the help text for the function to reflect that date strings can be formatted as well? It currently says Output a ms since epoch number as a formatted string.

@clintandrewhall
Copy link
Contributor Author

@ryankeairns Could you approve the new help copy?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

LGTM, nice fix

@clintandrewhall clintandrewhall added the bug Fixes for quality problems that affect the customer experience label May 29, 2019
@clintandrewhall clintandrewhall merged commit 5519056 into elastic:master May 29, 2019
clintandrewhall added a commit to clintandrewhall/kibana that referenced this pull request May 29, 2019
* Fix formatdate not allowing strings

* Addressing Feedback
clintandrewhall added a commit that referenced this pull request May 29, 2019
* Fix formatdate not allowing strings

* Addressing Feedback
jkakavas pushed a commit to jkakavas/kibana that referenced this pull request May 30, 2019
* Fix formatdate not allowing strings

* Addressing Feedback
clintandrewhall added a commit to clintandrewhall/kibana that referenced this pull request Jun 6, 2019
* Fix formatdate not allowing strings

* Addressing Feedback
clintandrewhall added a commit that referenced this pull request Jun 6, 2019
* Fix formatdate not allowing strings

* Addressing Feedback
@clintandrewhall clintandrewhall deleted the formatdate-fix branch August 30, 2019 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.2.0 v7.3.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants