From 9b336944a42aa2287bd26d0a94cba89983d56bcc Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Thu, 17 Aug 2023 16:37:12 -0600 Subject: [PATCH] fix 'Download CSV' returns no data when panel has custom time range outside timerange of global time picker (#163887) Closes https://github.com/elastic/kibana/issues/163614 PR resolves issue by only adding global time filter to CSV export body when saved search embeddable does not have time range. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 53e803e42c5c9de73e60ae95cff13d17bab09f26) --- .../embeddable/saved_search_embeddable.tsx | 4 + .../discover/public/embeddable/types.ts | 1 + .../public/utils/get_sharing_data.test.ts | 6 +- .../discover/public/utils/get_sharing_data.ts | 43 +++--- .../get_csv_panel_action.test.ts | 1 + .../panel_actions/get_csv_panel_action.tsx | 9 +- .../register_csv_reporting.tsx | 16 +- .../reporting/__snapshots__/download_csv.snap | 145 ++++++++++++++++++ .../group3/reporting/download_csv.ts | 21 ++- .../kbn_archiver/reporting/ecommerce.json | 38 +++++ 10 files changed, 249 insertions(+), 35 deletions(-) diff --git a/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx b/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx index eb6788f9bfe7..cf7dfbafd1e5 100644 --- a/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx +++ b/src/plugins/discover/public/embeddable/saved_search_embeddable.tsx @@ -644,4 +644,8 @@ export class SavedSearchEmbeddable if (this.abortController) this.abortController.abort(); } + + public hasTimeRange() { + return this.getTimeRange() !== undefined; + } } diff --git a/src/plugins/discover/public/embeddable/types.ts b/src/plugins/discover/public/embeddable/types.ts index 4dd049c8de9a..31c23b3904f3 100644 --- a/src/plugins/discover/public/embeddable/types.ts +++ b/src/plugins/discover/public/embeddable/types.ts @@ -37,6 +37,7 @@ export interface SearchOutput extends EmbeddableOutput { export interface ISearchEmbeddable extends IEmbeddable { getSavedSearch(): SavedSearch; + hasTimeRange(): boolean; } export interface SearchEmbeddable extends Embeddable { diff --git a/src/plugins/discover/public/utils/get_sharing_data.test.ts b/src/plugins/discover/public/utils/get_sharing_data.test.ts index ef707d70d951..5f3d6023eeeb 100644 --- a/src/plugins/discover/public/utils/get_sharing_data.test.ts +++ b/src/plugins/discover/public/utils/get_sharing_data.test.ts @@ -76,7 +76,7 @@ describe('getSharingData', () => { index.timeFieldName = 'cool-timefield'; const searchSourceMock = createSearchSourceMock({ index }); const { getSearchSource } = await getSharingData(searchSourceMock, {}, services); - expect(getSearchSource()).toMatchInlineSnapshot(` + expect(getSearchSource({})).toMatchInlineSnapshot(` Object { "fields": Array [ Object { @@ -121,7 +121,7 @@ describe('getSharingData', () => { }, services ); - expect(getSearchSource()).toMatchInlineSnapshot(` + expect(getSearchSource({})).toMatchInlineSnapshot(` Object { "index": "the-data-view-id", "sort": Array [ @@ -151,7 +151,7 @@ describe('getSharingData', () => { }, services ); - expect(getSearchSource().fields).toStrictEqual([ + expect(getSearchSource({}).fields).toStrictEqual([ { field: 'cool-timefield', include_unmapped: 'true' }, { field: 'cool-field-1', include_unmapped: 'true' }, { field: 'cool-field-2', include_unmapped: 'true' }, diff --git a/src/plugins/discover/public/utils/get_sharing_data.ts b/src/plugins/discover/public/utils/get_sharing_data.ts index 0cc407a82216..f23dcbd520f2 100644 --- a/src/plugins/discover/public/utils/get_sharing_data.ts +++ b/src/plugins/discover/public/utils/get_sharing_data.ts @@ -69,28 +69,35 @@ export async function getSharingData( const absoluteTimeFilter = data.query.timefilter.timefilter.createFilter(index); const relativeTimeFilter = data.query.timefilter.timefilter.createRelativeFilter(index); return { - getSearchSource: (absoluteTime?: boolean): SerializedSearchSourceFields => { + getSearchSource: ({ + addGlobalTimeFilter, + absoluteTime, + }: { + addGlobalTimeFilter?: boolean; + absoluteTime?: boolean; + }): SerializedSearchSourceFields => { const timeFilter = absoluteTime ? absoluteTimeFilter : relativeTimeFilter; + if (addGlobalTimeFilter && timeFilter) { + // remove timeFilter from existing filter + if (Array.isArray(existingFilter)) { + existingFilter = existingFilter.filter( + (current) => !isEqualFilters(current, absoluteTimeFilter) + ); + } else if (isEqualFilters(existingFilter, absoluteTimeFilter)) { + existingFilter = undefined; + } - // remove timeFilter from existing filter - if (Array.isArray(existingFilter)) { - existingFilter = existingFilter.filter( - (current) => !isEqualFilters(current, absoluteTimeFilter) - ); - } else if (isEqualFilters(existingFilter, absoluteTimeFilter)) { - existingFilter = undefined; + if (existingFilter) { + existingFilter = Array.isArray(existingFilter) + ? [timeFilter, ...existingFilter] + : ([timeFilter, existingFilter] as Filter[]); + } else { + existingFilter = timeFilter; + } } - if (existingFilter && timeFilter) { - searchSource.setField( - 'filter', - Array.isArray(existingFilter) - ? [timeFilter, ...existingFilter] - : ([timeFilter, existingFilter] as Filter[]) - ); - } else { - const filter = timeFilter || existingFilter; - searchSource.setField('filter', filter); + if (existingFilter) { + searchSource.setField('filter', existingFilter); } /* diff --git a/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts b/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts index d723c359a96b..ab5be8a06def 100644 --- a/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts +++ b/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.test.ts @@ -92,6 +92,7 @@ describe('GetCsvReportPanelAction', () => { from: 'now-7d', }, }), + hasTimeRange: () => true, }, } as unknown as ActionContext; }); diff --git a/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx b/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx index 87181aa315f3..900fbf0994a3 100644 --- a/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx +++ b/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx @@ -68,7 +68,7 @@ export class ReportingCsvPanelAction implements ActionDefinition }); } - public async getSearchSource(savedSearch: SavedSearch, _embeddable: ISearchEmbeddable) { + public async getSharingData(savedSearch: SavedSearch) { const [{ uiSettings }, { data }] = await Rx.firstValueFrom(this.startServices$); const { getSharingData } = await loadSharingDataHelpers(); return await getSharingData(savedSearch.searchSource, savedSearch, { uiSettings, data }); @@ -126,10 +126,13 @@ export class ReportingCsvPanelAction implements ActionDefinition } const savedSearch = embeddable.getSavedSearch(); - const { columns, getSearchSource } = await this.getSearchSource(savedSearch, embeddable); + const { columns, getSearchSource } = await this.getSharingData(savedSearch); const immediateJobParams = this.apiClient.getDecoratedJobParams({ - searchSource: getSearchSource(true), + searchSource: getSearchSource({ + addGlobalTimeFilter: !embeddable.hasTimeRange(), + absoluteTime: true, + }), columns, title: savedSearch.title || '', objectType: 'downloadCsv', // FIXME: added for typescript, but immediate download job does not need objectType diff --git a/x-pack/plugins/reporting/public/share_context_menu/register_csv_reporting.tsx b/x-pack/plugins/reporting/public/share_context_menu/register_csv_reporting.tsx index 1116652ab05f..363eedfafa17 100644 --- a/x-pack/plugins/reporting/public/share_context_menu/register_csv_reporting.tsx +++ b/x-pack/plugins/reporting/public/share_context_menu/register_csv_reporting.tsx @@ -28,9 +28,13 @@ export const reportingCsvShareProvider = ({ return []; } - const getSearchSource = sharingData.getSearchSource as ( - absoluteTime?: boolean - ) => SearchSourceFields; + const getSearchSource = sharingData.getSearchSource as ({ + addGlobalTimeFilter, + absoluteTime, + }: { + addGlobalTimeFilter?: boolean; + absoluteTime?: boolean; + }) => SearchSourceFields; const jobParams = { title: sharingData.title as string, @@ -39,10 +43,12 @@ export const reportingCsvShareProvider = ({ }; const getJobParams = (forShareUrl?: boolean) => { - const absoluteTime = !forShareUrl; return { ...jobParams, - searchSource: getSearchSource(absoluteTime), + searchSource: getSearchSource({ + addGlobalTimeFilter: true, + absoluteTime: !forShareUrl, + }), }; }; diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap b/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap index e6b31be13861..1415ad5c55ef 100644 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap +++ b/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap @@ -562,6 +562,151 @@ exports[`dashboard Reporting Download CSV Default Saved Search Data Downloads a " `; +exports[`dashboard Reporting Download CSV Default Saved Search Data Downloads a saved search panel with a custom time range that does not intersect with dashboard time range 1`] = ` +"\\"order_date\\",category,currency,\\"customer_id\\",\\"order_id\\",\\"day_of_week_i\\",\\"products.created_on\\",sku +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Accessories\\",EUR,23,555236,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0297702977, ZO0316103161\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,13,555286,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0291602916, ZO0457904579\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,12,555773,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0032200322, ZO0374303743\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Accessories\\",EUR,13,555784,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0622306223, ZO0596605966\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Shoes\\",EUR,42,555739,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0307203072, ZO0373403734\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Accessories, Women's Clothing\\",EUR,27,723426,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0374103741, ZO0196301963, ZO0383703837, ZO0070400704\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,7,555414,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0469904699, ZO0562505625\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,11,555248,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0597405974, ZO0613506135\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,49,554479,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0549405494, ZO0542605426\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Accessories\\",EUR,22,554568,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0035900359, ZO0097000970\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,18,554603,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0159501595, ZO0027800278\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes\\",EUR,5,555173,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0135101351, ZO0675206752\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Accessories\\",EUR,46,555201,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0665306653, ZO0093300933\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,52,555359,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0293402934, ZO0403504035\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Clothing\\",EUR,27,726526,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0010200102, ZO0177601776, ZO0057400574, ZO0222102221\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,6,554916,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0495804958, ZO0038100381\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,41,554771,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0470104701, ZO0528605286\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes\\",EUR,27,554812,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0240302403, ZO0236402364\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,12,554655,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0502005020, ZO0364303643\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,12,554698,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0650006500, ZO0373003730\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,8,555018,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0564505645, ZO0590505905\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,33,555075,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0111001110, ZO0534205342\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Accessories\\",EUR,44,554819,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0145701457, ZO0198301983\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes\\",EUR,27,554874,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0215902159, ZO0359703597\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,44,554939,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0042000420, ZO0227402274\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,46,554979,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0232202322, ZO0059100591\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,24,555619,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0180301803, ZO0343003430\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,5,555673,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0179201792, ZO0032700327\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,22,555222,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0059900599, ZO0381103811\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes\\",EUR,27,555282,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0132901329, ZO0370903709\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,11,555528,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0585105851, ZO0547205472\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Clothing\\",EUR,26,555562,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0695606956, ZO0217502175\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,26,554929,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0337003370, ZO0174001740\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,25,554981,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0475604756, ZO0403504035\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,15,555627,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0310203102, ZO0561105611\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,49,554904,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0389003890, ZO0296602966\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,37,554788,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0567205672, ZO0571205712\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,29,554813,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0128701287, ZO0424904249\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,6,554662,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0329003290, ZO0325503255\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,27,554705,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0501505015, ZO0057700577\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,46,555139,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0650606506, ZO0491604916\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Men's Clothing\\",EUR,52,555067,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0606006060, ZO0530805308\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Clothing\\",EUR,28,555091,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0199701997, ZO0335403354\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,52,719731,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0426704267, ZO0570805708, ZO0579905799, ZO0276102761\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,50,555544,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0621806218, ZO0611806118\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,12,555607,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0347103471, ZO0021400214\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,8,554489,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0523105231, ZO0534205342\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,23,554579,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0477804778, ZO0420304203\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,18,554745,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0330003300, ZO0109301093\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Accessories\\",EUR,22,554774,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0174001740, ZO0094300943\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Accessories\\",EUR,7,554653,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0505805058, ZO0126501265\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Clothing\\",EUR,26,554696,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0078600786, ZO0051700517\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,43,555136,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0648706487, ZO0133101331\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,30,555035,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0395703957, ZO0555105551\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,7,555078,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0402504025, ZO0117301173\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,43,555113,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0160801608, ZO0499304993\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,32,554856,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0429404294, ZO0611606116\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Women's Accessories\\",EUR,13,554891,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0555605556, ZO0318303183\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,25,555529,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0694606946, ZO0296102961\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,4,555572,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0457204572, ZO0577305773\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories\\",EUR,19,555609,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0465404654, ZO0701007010\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,51,554503,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0469504695, ZO0278102781\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,11,554533,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0526705267, ZO0427104271\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,15,554571,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0625306253, ZO0577405774\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,45,554521,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0163101631, ZO0492204922\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,19,555763,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0438604386, ZO0527305273\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,34,554953,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0311803118, ZO0542705427\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,29,554995,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0426704267, ZO0298802988\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,19,555638,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0111701117, ZO0391103911\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,12,555671,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0212502125, ZO0000900009\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,25,555713,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0447504475, ZO0694706947\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,24,554895,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0230802308, ZO0371403714\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,31,555430,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0603506035, ZO0627306273\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Men's Clothing\\",EUR,50,555488,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0318903189, ZO0457904579\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,25,719405,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0402004020, ZO0483404834, ZO0459504595, ZO0422904229\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes\\",EUR,38,554493,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0514005140, ZO0386003860\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,27,554573,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0098800988, ZO0372303723\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,44,555422,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0156301563, ZO0139401394\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes\\",EUR,37,555479,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0387003870, ZO0405304053\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Clothing\\",EUR,46,554725,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0011700117, ZO0100201002\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,14,554777,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0515205152, ZO0568605686\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,14,554637,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0625106251, ZO0418304183\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,46,554690,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0228302283, ZO0144901449\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,20,555153,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0167801678, ZO0041400414\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,48,555044,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0125301253, ZO0130701307\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,19,555083,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0465504655, ZO0610306103\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,6,554878,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0637906379, ZO0675906759\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,27,732985,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0048100481, ZO0133401334, ZO0153201532, ZO0381603816\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,37,555192,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0525105251, ZO0475304753\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,44,555335,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0494304943, ZO0670006700\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Women's Accessories\\",EUR,7,554987,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0397503975, ZO0318403184\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,18,555634,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0223702237, ZO0027900279\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,51,555670,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0130301303, ZO0546005460\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Men's Clothing\\",EUR,16,554501,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0318403184, ZO0415204152\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,16,554556,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0295002950, ZO0403504035\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Clothing\\",EUR,18,555446,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0307703077, ZO0226302263\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,12,555501,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0660606606, ZO0032900329\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,48,555372,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0483704837, ZO0588805888\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,33,555546,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0110901109, ZO0537905379\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing\\",EUR,16,555584,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0469804698, ZO0559905599\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,45,555757,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0218402184, ZO0711707117\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,19,554937,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0113001130, ZO0423104231\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes\\",EUR,51,555013,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0692706927, ZO0521805218\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Accessories\\",EUR,21,555681,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0511705117, ZO0606906069\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Clothing\\",EUR,28,555701,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0079500795, ZO0105501055\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,19,554447,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0557405574, ZO0662606626\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes, Men's Accessories\\",EUR,52,717279,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0581305813, ZO0511105111, ZO0576005760, ZO0466304663\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,28,555570,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0184001840, ZO0503205032\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,36,555610,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0587805878, ZO0578705787\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Accessories\\",EUR,43,555158,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0035400354, ZO0698006980\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes\\",EUR,28,555203,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0326303263, ZO0372503725\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes\\",EUR,42,555355,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0243202432, ZO0247202472\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,49,555764,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0447804478, ZO0683906839\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,4,555441,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0538205382, ZO0445104451\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,26,555483,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0330203302, ZO0654006540\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Accessories\\",EUR,28,554442,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0656906569, ZO0090300903\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,34,555019,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0583905839, ZO0525705257\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories\\",EUR,28,555062,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0087300873, ZO0695406954\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Clothing\\",EUR,42,554822,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0029600296, ZO0229902299\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Accessories\\",EUR,49,554851,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0538505385, ZO0468404684\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,15,555719,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0446504465, ZO0553605536\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,11,554901,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0592705927, ZO0398703987\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Shoes, Men's Clothing\\",EUR,41,554732,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0401304013, ZO0576505765\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,52,554773,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0113401134, ZO0456004560\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,16,554617,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0297502975, ZO0442404424\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Clothing\\",EUR,26,554678,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0030600306, ZO0641406414\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,31,555149,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0621706217, ZO0690106901\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,20,555765,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0635506355, ZO0150901509\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Clothing\\",EUR,27,555254,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0677406774, ZO0659906599\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Shoes, Women's Accessories\\",EUR,20,555297,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0325303253, ZO0089500895\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Accessories, Men's Clothing, Men's Shoes\\",EUR,52,722202,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0470904709, ZO0283602836, ZO0406104061, ZO0689206892\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,33,555418,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0475904759, ZO0296402964\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Accessories\\",EUR,12,555458,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0105201052, ZO0208102081\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing\\",EUR,43,555491,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0150701507, ZO0223602236\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,52,716815,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0559905599, ZO0591305913, ZO0446404464, ZO0550105501\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing, Men's Shoes\\",EUR,37,555728,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0536705367, ZO0403504035\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes\\",EUR,27,555699,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0262502625, ZO0028400284\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Accessories, Women's Clothing, Women's Shoes\\",EUR,5,731613,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0203502035, ZO0706807068, ZO0072000720, ZO0011200112\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Men's Clothing\\",EUR,49,555416,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0542305423, ZO0612606126\\" +\\"Jun 15, 2019 @ 00:00:00.000\\",\\"Women's Clothing, Women's Shoes, Women's Accessories\\",EUR,5,731534,6,\\"Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000, Dec 4, 2016 @ 00:00:00.000\\",\\"ZO0032800328, ZO0026900269, ZO0220602206, ZO0209802098\\" +" +`; + exports[`dashboard Reporting Download CSV Field Formatters and Scripted Fields Download CSV export of a saved search panel 1`] = ` "date,\\"_id\\",name,gender,value,year,\\"years_ago\\",\\"date_informal\\" \\"Jan 1, 1982 @ 00:00:00.000\\",\\"1982-Fethany-F\\",Fethany,F,780,1982,\\"37.00000000000000000000\\",\\"Jan 1st 82\\" diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts b/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts index 766e7ecd882f..c8808e179d70 100644 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts +++ b/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts @@ -82,9 +82,6 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); describe('Default Saved Search Data', () => { - const dashboardAllDataHiddenTitles = 'Ecom Dashboard Hidden Panel Titles'; - const dashboardPeriodOf2DaysData = 'Ecom Dashboard - 3 Day Period'; - before(async () => { await reporting.initEcommerce(); await navigateToDashboardApp(); @@ -95,7 +92,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); it('Download CSV export of a saved search panel', async function () { - await PageObjects.dashboard.loadSavedDashboard(dashboardPeriodOf2DaysData); + await PageObjects.dashboard.loadSavedDashboard('Ecom Dashboard - 3 Day Period'); await clickActionsMenu('EcommerceData'); await clickDownloadCsv(); @@ -104,7 +101,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); it('Downloads a filtered CSV export of a saved search panel', async function () { - await PageObjects.dashboard.loadSavedDashboard(dashboardPeriodOf2DaysData); + await PageObjects.dashboard.loadSavedDashboard('Ecom Dashboard - 3 Day Period'); // add a filter await filterBar.addFilter({ field: 'category', operation: 'is', value: `Men's Shoes` }); @@ -116,8 +113,20 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { expectSnapshot(csvFile).toMatch(); }); + it('Downloads a saved search panel with a custom time range that does not intersect with dashboard time range', async function () { + await PageObjects.dashboard.loadSavedDashboard( + 'Ecom Dashboard - 3 Day Period - custom time range' + ); + + await clickActionsMenu('EcommerceData'); + await clickDownloadCsv(); + + const csvFile = await getDownload(getCsvPath('Ecommerce Data')); + expectSnapshot(csvFile).toMatch(); + }); + it('Gets the correct filename if panel titles are hidden', async () => { - await PageObjects.dashboard.loadSavedDashboard(dashboardAllDataHiddenTitles); + await PageObjects.dashboard.loadSavedDashboard('Ecom Dashboard Hidden Panel Titles'); const savedSearchPanel = await find.byCssSelector( '[data-test-embeddable-id="94eab06f-60ac-4a85-b771-3a8ed475c9bb"]' ); // panel title is hidden diff --git a/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json b/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json index 3d6b78d0ae10..f46f1ef31871 100644 --- a/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json +++ b/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json @@ -323,6 +323,44 @@ "version": "WzE2MiwxXQ==" } +{ + "id": "6a331b00-3ae5-11ee-9cce-f5072c4752b5", + "type": "dashboard", + "namespaces": [ + "default" + ], + "updated_at": "2023-08-14T20:59:09.872Z", + "created_at": "2023-08-14T20:59:09.872Z", + "version": "WzM0LDFd", + "attributes": { + "kibanaSavedObjectMeta": { + "searchSourceJSON": "{\"query\":{\"language\":\"kuery\",\"query\":\"\"},\"filter\":[]}" + }, + "description": "saved search panel with custom time range that does not intersect with dashboard time range", + "refreshInterval": { + "pause": true, + "value": 0 + }, + "timeRestore": true, + "optionsJSON": "{\"useMargins\":true,\"syncColors\":false,\"syncCursor\":true,\"syncTooltips\":false,\"hidePanelTitles\":false}", + "panelsJSON": "[{\"version\":\"8.10.0\",\"type\":\"search\",\"gridData\":{\"x\":0,\"y\":0,\"w\":41,\"h\":20,\"i\":\"e80a3ff4-cb4a-479e-971d-438eeedd8b29\"},\"panelIndex\":\"e80a3ff4-cb4a-479e-971d-438eeedd8b29\",\"embeddableConfig\":{\"enhancements\":{},\"hidePanelTitles\":false,\"timeRange\":{\"from\":\"2019-06-15T00:00:00.000Z\",\"to\":\"2019-06-15T01:00:00.000Z\"}},\"panelRefName\":\"panel_e80a3ff4-cb4a-479e-971d-438eeedd8b29\"}]", + "timeFrom": "2019-06-19T07:00:00.000Z", + "title": "Ecom Dashboard - 3 Day Period - custom time range", + "timeTo": "2019-06-22T07:00:00.000Z", + "version": 1 + }, + "references": [ + { + "name": "e80a3ff4-cb4a-479e-971d-438eeedd8b29:panel_e80a3ff4-cb4a-479e-971d-438eeedd8b29", + "type": "search", + "id": "6091ead0-1c6d-11ea-a100-8589bb9d7c6b" + } + ], + "managed": false, + "coreMigrationVersion": "8.8.0", + "typeMigrationVersion": "8.9.0" +} + { "attributes": { "description": "",