Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,7 @@ export const getShareAppMenuItem = ({
},
sharingData: {
isTextBased: isEsqlMode,
locatorParams: [
{
id: locator.id,
params: isEsqlMode
? {
...params,
timeRange: timefilter.getAbsoluteTime(), // Will be used when generating CSV on server. See `filtersFromLocator`.
}
: params,
},
],
locatorParams: [{ id: locator.id, params }],
...searchSourceSharingData,
// CSV reports can be generated without a saved search so we provide a fallback title
title:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion x-pack/test/functional/apps/discover/group1/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
expectSnapshot(csvFile).toMatch();
});

it('generate a report using ES|QL for relative time range as absolute dates and time params', async () => {
// TODO: Adjust and unskip when we have full support for toggling relative/absolute time ranges through the export UI
// https://github.com/elastic/kibana/issues/223171
it.skip('generate a report using ES|QL for relative time range as absolute dates and time params', async () => {
const RECENT_DATA_INDEX_NAME = 'test_recent_data';
const RECENT_DOC_COUNT = 500;
const RECENT_DOC_END_DATE = moment().toISOString();
Expand Down