-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 date formatting on server for CSV export #29977
Conversation
Reviewers: Let me know if you need to see a test added in this change. I think adding a new integration test that hits the CSV generation URL and then pulls the completed job out of ES might be the best option for now. |
134f6c5
to
031846a
Compare
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found one stray console.log and a few questions (probably just my lack of understanding)
} | ||
|
||
if (date.isValid()) { | ||
console.log({ date: date.format(this._memoizedPattern) }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stray console?
}); | ||
} | ||
|
||
getParamDefaults() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see this used elsewhere... is it an interface that this class implements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, not sure. I copied most of this file from src/legacy/core_plugins/kibana/common/field_formats/types/date.js. All the format types seem to have that method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speaking of "copied from", there are unrelated differences in the new file: _memoizedConverter
is declared in the constructor instead of in _convert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coolio! Thanks for the clarifaction
💚 Build Succeeded |
@joelgriffith ready for another look |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
Nice, LGTM |
* Fix date formatting on server for CSV export * remove stray console.log * allow async to act in parallel * Log a warning when "Browser" is the timezone
* Fix date formatting on server for CSV export * remove stray console.log * allow async to act in parallel * Log a warning when "Browser" is the timezone
* Fix date formatting on server for CSV export * remove stray console.log * allow async to act in parallel * Log a warning when "Browser" is the timezone
* Fix date formatting on server for CSV export * remove stray console.log * allow async to act in parallel * Log a warning when "Browser" is the timezone
@tsullivan this is PR is failing in 6.6.1 BC1. Here is the regression bug: #31131 |
@bhavyarm Apologies! This incorrectly has the 6.6.1 label. It is not a regression, and is fixed in 7.0+ |
I fixed the version labels. The fix is for 7.0+ |
Summary
Closes #29463
Re-try #29781
Summarize your PR. If it involves visual changes include a screenshot or gif.
Checklist