-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
"View raw data" action #63710
"View raw data" action #63710
Conversation
@elasticmachine merge upstream |
💔 Build Failed
Failed CI StepsTest FailuresKibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard_mode/dashboard_view_mode·js.dashboard mode Dashboard View Mode Dashboard viewer can filter on a visualizationStandard Out
Stack Trace
Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard_mode/dashboard_view_mode·js.dashboard mode Dashboard View Mode Dashboard viewer can filter on a visualizationStandard Out
Stack Trace
Kibana Pipeline / kibana-intake-agent / Jest Integration Tests.src/core/server/http/integration_tests.http service elasticsearch passes request authorization header to Elasticsearch if registerAuth was not setStandard Out
Stack Trace
History
To update your PR or re-run it, just comment with: |
const queryState: QueryState = {}; | ||
|
||
if (timeRange) queryState.time = timeRange; | ||
if (refreshInterval) queryState.filters = filters?.filter(f => esFilters.isFilterPinned(f)); |
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.
Should be filters
😱
let { timeRange, query, filters } = embeddable.getInput(); | ||
const indexPatternId = this.getIndexPattern(embeddable); | ||
let filtersFromEvent = await (async () => { | ||
try { | ||
if (isRangeSelectTriggerContext(context)) | ||
return await createFiltersFromRangeSelectAction(context.data); | ||
if (isValueClickTriggerContext(context)) | ||
return await createFiltersFromValueClickAction(context.data); | ||
|
||
// eslint-disable-next-line no-console | ||
console.warn( | ||
` | ||
DashboardToDashboard drilldown: can't extract filters from action. | ||
Is it not supported action?`, | ||
context | ||
); | ||
|
||
return []; | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
` | ||
DashboardToDashboard drilldown: error extracting filters from action. | ||
Continuing without applying filters from event`, | ||
e | ||
); | ||
return []; | ||
} | ||
})(); |
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.
This block is used in many places, maybe put it in a function.
Hey, I played with the PR a bit, |
@AlonaNadler I like "View raw data", also could be "View documents" or "View raw documents". I used here "View in Discover" because "View raw logs" felt incorrect, and @alexh97 had the same feelings. To make it work in TSVB somebody needs to be assigned to #60611 And to make it work in Lens, somebody needs to implement what Tim describes in this comment #62214 (comment) Also would be nice to do the same for Timelion #60613 BTW, if those issues are implemented, not only "View raw data" action will work with those visualizations, but also drilldowns. |
@alex-fedotyev following our slack conversation "unguided troubleshooting/analysis workflow for APM, the easiest way to explain it would be to imagine combining together Lens + Discover together." checkout this PR |
Summary
Closes #62652
Checklist
Delete any items that are not applicable to this PR.
For maintainers