-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api-gateway): Meta - expose aliasMember for members in View (#8945)
Motivation for change: While working on the new layer for MDX, I discovered that all members in views are defined as View's members. This leads to a problem: I am not able to separate them by cubes to align our model with Analysis Services.
- Loading branch information
Showing
9 changed files
with
447 additions
and
50 deletions.
There are no files selected for viewing
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
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
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
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,26 @@ | ||
const path = require('path'); | ||
|
||
function resolveSnapshotPath(testPath, snapshotExtension) { | ||
const testSourcePath = testPath.replace('dist/', ''); | ||
const testDirectory = path.dirname(testSourcePath); | ||
const testFilename = path.basename(testSourcePath).replace('.js', '.ts'); | ||
|
||
return `${testDirectory}/__snapshots__/${testFilename}${snapshotExtension}`; | ||
} | ||
|
||
function resolveTestPath(snapshotFilePath, snapshotExtension) { | ||
const testSourceFile = snapshotFilePath | ||
.replace('test/unit/__snapshots__', 'dist/test/unit') | ||
.replace('test/integration/__snapshots__', 'dist/test/integration') | ||
.replace('.ts', '.js') | ||
.replace(snapshotExtension, ''); | ||
|
||
return testSourceFile; | ||
} | ||
|
||
module.exports = { | ||
resolveSnapshotPath, | ||
resolveTestPath, | ||
|
||
testPathForConsistencyCheck: 'dist/test/unit/Test.spec.js' | ||
}; |
Oops, something went wrong.