-
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.
Split out the legacy kpi bookmark and folder into their own resource …
…files
- Loading branch information
Showing
3 changed files
with
30 additions
and
21 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/4.3_to_5.0/__test_resources__/legacyKpiWithInvalidTitle.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,16 @@ | ||
/** | ||
* The content entry for a legacy bookmark representing a KPI widget | ||
*/ | ||
export const legacyKpiWithInvalidTitle = { | ||
entry: { | ||
content: | ||
'{"description": "A KPI containing a custom title with an empty tupleKey","name":"KPI","type":"container","value": {"style": {},"showTitleBar": true,"body": {"serverUrl": "","mdx": "SELECT NON EMPTY Hierarchize(AddCalculatedMembers(Descendants({[Geography].[City].[ALL].[AllMember]},1,SELF_AND_BEFORE))) ON ROWS,NON EMPTY {[Measures].[contributors.COUNT]} ON COLUMNS FROM (SELECT[Geography].[City].[ALL].[AllMember].[New York] ON COLUMNS FROM [EquityDerivativesCube])","contextValues": {},"updateMode": "once","ranges": {"row": {},"column": {}},"configuration": {"featuredValues": {"locations":{"":{"title": "Title with empty tupleKey"},"[Measures].[contributors.COUNT]": {"title": "Custom title for contributors.COUNT"}}}}},"containerKey":"featured-values"},"writable": true}', | ||
isDirectory: false, | ||
owners: ["admin"], | ||
readers: ["admin"], | ||
timestamp: 1607879735685, | ||
lastEditor: "admin", | ||
canRead: true, | ||
canWrite: true, | ||
}, | ||
}; |
13 changes: 13 additions & 0 deletions
13
src/4.3_to_5.0/__test_resources__/legacyUIFolderWithInvalidKpi.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,13 @@ | ||
import { addLegacyBookmarkToUIFolder } from "./addLegacyBookmarkToUIFolder"; | ||
import { emptyLegacyUIFolder } from "./emptyLegacyUIFolder"; | ||
import { legacyKpiWithInvalidTitle } from "./legacyKpiWithInvalidTitle"; | ||
|
||
/** | ||
* Legacy UI folder containing a single kpi bookmark with an invalid kpi title | ||
*/ | ||
export const legacyUIFolderWithInvalidKpiTitle = addLegacyBookmarkToUIFolder( | ||
emptyLegacyUIFolder, | ||
{ | ||
kpi: legacyKpiWithInvalidTitle, | ||
}, | ||
); |
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