-
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
[Reporting/CSV-Panel-Action] Allow state params sent in POST payload to customize the search #34670
Conversation
💔 Build Failed |
💔 Build Failed |
80b5ffb
to
97a41ea
Compare
97a41ea
to
5b21113
Compare
const docValueFields = indexPatternTimeField ? [indexPatternTimeField] : undefined; | ||
const buildCsvParams: [IndexPatternSavedObject, SearchSourceQuery, Filter[], ESQueryConfig] = [ |
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.
Decided to do this since buildEsQuery takes complicated structures for params, but isn't in Typescript
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
* These filter types are stub types to help ensure things get passed to | ||
* non-Typescript functions in the right order. An actual structure is not | ||
* needed because the code doesn't look into the properties; just combines them | ||
* and passes them through to other non-TS modules. |
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.
A better way to do this might be to define a module for the function I'm using that doesn't have a module definition. I don't know how to do that in TS for Kibana though :\
range: { | ||
[indexPatternTimeField]: { | ||
format: 'epoch_millis', | ||
gte: moment(timerange.min).valueOf(), |
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.
Are we suspect of getting that negative value here? Not sure if ES gracefully handles this at this level
…/reporting/csv-export-panel-action-use-state
💚 Build Succeeded |
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
Summary
The UI control passes a
state
parameter in the POST payload, intended to layer on customizations to the search: