generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test Data Generation I - support a new API to generate skeleton schem…
…a/table from query
- Loading branch information
1 parent
e788d13
commit ec5ce2f
Showing
12 changed files
with
315 additions
and
15 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-application-studio': patch | ||
--- | ||
|
||
support a new API to generate skeleton schema/table from query |
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-graph': 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
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
45 changes: 45 additions & 0 deletions
45
...end-graph/src/graph-manager/protocol/pure/v1/engine/service/V1_TestDataGenerationInput.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,45 @@ | ||
/** | ||
* 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 { SerializationFactory, usingModelSchema } from '@finos/legend-shared'; | ||
import { createModelSchema, optional, primitive } from 'serializr'; | ||
import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js'; | ||
import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda.js'; | ||
import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization.js'; | ||
import { V1_rawLambdaModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js'; | ||
|
||
export class V1_TestDataGenerationInput { | ||
clientVersion: string | undefined; | ||
/** | ||
* Studio does not process value specification, they are left in raw JSON form | ||
* | ||
* @discrepancy model | ||
*/ | ||
query!: V1_RawLambda; | ||
mapping!: string; | ||
runtime!: string; | ||
model!: V1_PureModelContext; | ||
|
||
static readonly serialization = new SerializationFactory( | ||
createModelSchema(V1_TestDataGenerationInput, { | ||
clientVersion: optional(primitive()), | ||
query: usingModelSchema(V1_rawLambdaModelSchema), | ||
mapping: primitive(), | ||
model: V1_pureModelContextPropSchema, | ||
runtime: primitive(), | ||
}), | ||
); | ||
} |
Oops, something went wrong.