generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add graph support for
ServiceStore
(#580)
* add graph support for service-store * remove existing ServiceStore from legend-graph * add extension mechanism for mapping in form mode * add changesets * refactor service store package * minor fixes * modify PureProtocolProcessorPlugin * modify metamodels for service parameter mapping * modify mappingElementDecorators/Cleaners
- Loading branch information
1 parent
c1249af
commit 7318c22
Showing
116 changed files
with
4,636 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@finos/legend-graph": patch | ||
--- | ||
|
||
**BREAKING CHANGE:** Pass Plugins as a parameter for `V1_getExtraElementProtocolSerializers` and `V1_getExtraElementProtocolDeserializers` |
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,5 @@ | ||
--- | ||
"@finos/legend-extension-external-store-service": minor | ||
--- | ||
|
||
Add graph support for `Service Store` |
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,5 @@ | ||
--- | ||
"@finos/legend-graph": minor | ||
--- | ||
|
||
Add extension mechanism for `class mapping` |
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,9 @@ | ||
--- | ||
'@finos/legend-extension-dsl-serializer': patch | ||
'@finos/legend-extension-dsl-data-space': patch | ||
'@finos/legend-extension-dsl-diagram': patch | ||
'@finos/legend-extension-dsl-text': patch | ||
'@finos/legend-studio-app': patch | ||
'@finos/legend-query-app': patch | ||
'@finos/legend-manual-tests': patch | ||
--- |
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,5 @@ | ||
--- | ||
"@finos/legend-studio": minor | ||
--- | ||
|
||
Add extension mechanism for `class mapping` in form mode |
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,5 @@ | ||
--- | ||
"@finos/legend-graph": patch | ||
--- | ||
|
||
**BREAKING CHANGE:** Removal of old `Service store` specification |
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
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,7 @@ | ||
/build | ||
/style | ||
**/__mocks__/** | ||
**/__tests__/** | ||
/*.* | ||
!tsconfig.json | ||
!tsconfig.package.json |
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,3 @@ | ||
# @finos/legend-extension-external-store-service | ||
|
||
Legend Studio extension for `Service Store` |
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
39 changes: 39 additions & 0 deletions
39
packages/legend-extension-external-store-service/jest.config.js
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,39 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import base from '../../scripts/jest/jest.config.base.js'; | ||
import { loadJSON } from '@finos/legend-dev-utils/DevUtils'; | ||
|
||
const packageJson = loadJSON('./package.json'); | ||
|
||
export default { | ||
...base, | ||
displayName: packageJson.name, | ||
name: packageJson.name, | ||
rootDir: '../..', | ||
testEnvironment: 'jsdom', | ||
setupFiles: [ | ||
...base.setupFiles, | ||
'<rootDir>/scripts/jest/setupTests/setupPolyfills.js', | ||
], | ||
moduleNameMapper: { | ||
...base.moduleNameMapper, | ||
'^monaco-editor$': '@finos/legend-art/lib/testMocks/MockedMonacoEditor.js', | ||
}, | ||
testMatch: [ | ||
'<rootDir>/packages/legend-extension-external-store-service/src/**/__tests__/**/*(*.)test.[jt]s?(x)', | ||
], | ||
}; |
77 changes: 77 additions & 0 deletions
77
packages/legend-extension-external-store-service/package.json
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,77 @@ | ||
{ | ||
"name": "@finos/legend-extension-external-store-service", | ||
"version": "0.0.0", | ||
"description": "Legend extension for Service Store", | ||
"keywords": [ | ||
"legend", | ||
"legend-extension", | ||
"extension", | ||
"store", | ||
"external-store", | ||
"service-store" | ||
], | ||
"homepage": "https://github.com/finos/legend-studio/tree/master/packages/legend-extension-external-store-service", | ||
"bugs": { | ||
"url": "https://github.com/finos/legend-studio/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/finos/legend-studio.git", | ||
"directory": "packages/legend-extension-external-store-service" | ||
}, | ||
"license": "Apache-2.0", | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "lib/index.js", | ||
"module": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "yarn clean && yarn build:tsc", | ||
"build:tsc": "tsc --project ./tsconfig.build.json", | ||
"clean": "rimraf \"lib\" \"build\"", | ||
"dev": "yarn dev:tsc", | ||
"dev:tsc": "tsc --watch --preserveWatchOutput", | ||
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"", | ||
"publish:prepare": "node ../../scripts/release/preparePublishContent.js", | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
}, | ||
"dependencies": { | ||
"@finos/legend-art": "workspace:*", | ||
"@finos/legend-extension-dsl-serializer": "workspace:*", | ||
"@finos/legend-graph": "workspace:*", | ||
"@finos/legend-model-storage": "workspace:*", | ||
"@finos/legend-shared": "workspace:*", | ||
"@finos/legend-studio": "workspace:*", | ||
"@types/react": "17.0.32", | ||
"mobx": "6.3.5", | ||
"mobx-react-lite": "3.2.1", | ||
"monaco-editor": "0.29.1", | ||
"react": "17.0.2", | ||
"serializr": "2.0.5" | ||
}, | ||
"devDependencies": { | ||
"@finos/legend-dev-utils": "workspace:*", | ||
"cross-env": "7.0.3", | ||
"eslint": "8.1.0", | ||
"jest": "27.3.1", | ||
"npm-run-all": "4.1.5", | ||
"rimraf": "3.0.2", | ||
"sass": "1.43.3", | ||
"typescript": "4.4.4" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17.0.0" | ||
}, | ||
"publishConfig": { | ||
"directory": "build/publishContent" | ||
}, | ||
"extensions": { | ||
"graphPreset": "@finos/legend-graph-preset-external-store-service", | ||
"pureProtocolProcessorPlugin": "@finos/legend-graph-plugin-external-store-service-pure-protocol-processor", | ||
"pureGraphManagerPlugin": "@finos/legend-graph-plugin-external-store-service-pure-graph-manager", | ||
"pureGraphPlugin": "@finos/legend-graph-plugin-external-store-service-pure-graph", | ||
"studioPreset": "@finos/legend-studio-preset-external-store-service", | ||
"studioPlugin": "@finos/legend-studio-plugin-external-store-service" | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
packages/legend-extension-external-store-service/src/ESService_Extension.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,49 @@ | ||
/** | ||
* Copyright (c) 2020-present, Goldman Sachs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
import packageJson from '../package.json'; | ||
import type { GraphPluginManager } from '@finos/legend-graph'; | ||
import { AbstractPreset } from '@finos/legend-shared'; | ||
import { ESService_PureGraphManagerPlugin } from './graphManager/ESService_PureGraphManagerPlugin'; | ||
import { ESService_PureProtocolProcessorPlugin } from './models/protocols/pure/ESService_PureProtocolProcessorPlugin'; | ||
import type { StudioPluginManager } from '@finos/legend-studio'; | ||
import { ESService_PureGraphPlugin } from './graph/ESService_PureGraphPlugin'; | ||
import { ESService_StudioPlugin } from './components/ESService_StudioPlugin'; | ||
|
||
export class ESService_GraphPreset extends AbstractPreset { | ||
constructor() { | ||
super(packageJson.extensions.graphPreset, packageJson.version); | ||
} | ||
|
||
install(pluginManager: GraphPluginManager): void { | ||
new ESService_PureGraphPlugin().install(pluginManager); | ||
new ESService_PureGraphManagerPlugin().install(pluginManager); | ||
new ESService_PureProtocolProcessorPlugin().install(pluginManager); | ||
} | ||
} | ||
|
||
export class ESService_StudioPreset extends AbstractPreset { | ||
constructor() { | ||
super(packageJson.extensions.studioPreset, packageJson.version); | ||
} | ||
|
||
install(pluginManager: StudioPluginManager): void { | ||
new ESService_StudioPlugin().install(pluginManager); | ||
new ESService_PureGraphPlugin().install(pluginManager); | ||
new ESService_PureGraphManagerPlugin().install(pluginManager); | ||
new ESService_PureProtocolProcessorPlugin().install(pluginManager); | ||
} | ||
} |
Oops, something went wrong.