Skip to content

Commit

Permalink
UI-8532 - Add test resources for legacy tables with hidden columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Nouzbe committed Sep 14, 2023
1 parent 804dc01 commit 23e22ef
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* The state of a legacy pivot table with Dates, LegalEntities, pnl.FOREX and pnl.SUM on columns and one column is hidden.
*/
export const legacyPivotTableWithCrossjoinOnColumnsAndHiddenColumns = {
name: "Untitled Pivot Table",
type: "container",
value: {
body: {
mdx: "SELECT NON EMPTY Crossjoin([Time].[HistoricalDates].[AsOfDate].Members, Hierarchize(DrilldownLevel([Booking].[Desk].[ALL].[AllMember])), {[Measures].[pnl.FOREX], [Measures].[pnl.SUM]}) ON COLUMNS, NON EMPTY Hierarchize(DrilldownLevel([Currency].[Currency].[ALL].[AllMember])) ON ROWS FROM [EquityDerivativesCube] CELL PROPERTIES VALUE, FORMATTED_VALUE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",
configuration: {
tabular: {
columns: [
{
key: "([Time].[HistoricalDates].[AsOfDate].[2023-09-05],[Booking].[Desk].[ALL].[AllMember].[LegalEntityA],[Measures].[pnl.FOREX])",
hide: true,
},
],
},
},
},
containerKey: "pivot-table",
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* The state of a legacy pivot table with dates on columns and one column is hidden.
*/
export const legacyPivotTableWithHiddenColumns = {
name: "Untitled Pivot Table",
type: "container",
value: {
body: {
mdx: "SELECT NON EMPTY [Time].[HistoricalDates].[AsOfDate].Members ON COLUMNS, NON EMPTY Hierarchize(DrilldownLevel([Currency].[Currency].[ALL].[AllMember])) ON ROWS FROM [EquityDerivativesCube] CELL PROPERTIES VALUE, FORMATTED_VALUE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",
configuration: {
tabular: {
columns: [
{
key: "[Time].[HistoricalDates].[AsOfDate].[2023-09-05]",
hide: true,
},
],
},
},
},
containerKey: "pivot-table",
},
};
24 changes: 24 additions & 0 deletions src/4.3_to_5.0/__test_resources__/legacyTableWithHiddenColumns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* The state of a legacy table with Currency and City on rows and contributors.COUNT on columns.
* The "City" column is hidden.
*/
export const legacyTableWithHiddenColumns = {
type: "container",
name: "Untitled Tabular View",
value: {
body: {
mdx: "SELECT NON EMPTY Crossjoin([Currency].[Currency].[Currency].Members, [Geography].[City].[City].Members) ON ROWS, [Measures].[contributors.COUNT] ON COLUMNS FROM [EquityDerivativesCube] CELL PROPERTIES VALUE, FORMATTED_VALUE, BACK_COLOR, FORE_COLOR, FONT_FLAGS",
configuration: {
tabular: {
columns: [
{
key: "[Geography].[City].[City]",
hide: true,
},
],
},
},
},
containerKey: "tabular-view",
},
};

0 comments on commit 23e22ef

Please sign in to comment.