-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI-8532 - Add test resources for legacy tables with hidden columns
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/4.3_to_5.0/__test_resources__/legacyPivotTableWithCrossjoinOnColumnsAndHiddenColumns.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}; |
23 changes: 23 additions & 0 deletions
23
src/4.3_to_5.0/__test_resources__/legacyPivotTableWithHiddenColumns.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
24
src/4.3_to_5.0/__test_resources__/legacyTableWithHiddenColumns.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}; |