Skip to content

Commit

Permalink
fix string -> genericType json tests (#3668)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioUyaguari authored Nov 21, 2024
1 parent f973848 commit 7d7a209
Show file tree
Hide file tree
Showing 68 changed files with 6,288 additions and 799 deletions.
11 changes: 11 additions & 0 deletions .changeset/long-news-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@finos/legend-extension-store-service-store': patch
'@finos/legend-server-showcase-deployment': patch
'@finos/legend-extension-dsl-persistence': patch
'@finos/legend-extension-dsl-data-space': patch
'@finos/legend-extension-dsl-diagram': patch
'@finos/legend-application-studio': patch
'@finos/legend-application-query': patch
'@finos/legend-query-builder': patch
'@finos/legend-graph': patch
---
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,14 @@
"upperBound": 1
},
"name": "lastReportedFlag",
"type": "Boolean"
"genericType": {
"rawType": {
"_type": "packageableType",
"fullPath": "Boolean"
},
"typeArguments": [],
"typeVariableValues": []
}
},
{
"multiplicity": {
Expand Down Expand Up @@ -181,7 +188,14 @@
"lowerBound": 1,
"upperBound": 1
},
"returnType": "meta::pure::tds::TabularDataSet"
"returnGenericType": {
"rawType": {
"_type": "packageableType",
"fullPath": "meta::pure::tds::TabularDataSet"
},
"typeArguments": [],
"typeVariableValues": []
}
},
"classifierPath": "meta::pure::metamodel::function::ConcreteFunctionDefinition"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,40 @@ export const TEST_DATA__result = {
columns: [
{
name: 'Employees/First Name',
type: 'String',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
relationalType: 'VARCHAR(200)',
},
{
name: 'Employees/Last Name',
type: 'String',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
relationalType: 'VARCHAR(200)',
},
{
name: 'Legal Namer',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
relationalType: 'VARCHAR(200)',
},
{ name: 'Legal Namer', type: 'String', relationalType: 'VARCHAR(200)' },
],
},
activities: [
Expand Down Expand Up @@ -339,14 +364,28 @@ export const TEST_DATA__ResultState_entities = [
upperBound: 1,
},
name: 'legalName',
type: 'String',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
},
{
multiplicity: {
lowerBound: 0,
},
name: 'employees',
type: 'model::Person',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'model::Person',
},
typeArguments: [],
typeVariableValues: [],
},
},
],
stereotypes: [
Expand All @@ -371,15 +410,29 @@ export const TEST_DATA__ResultState_entities = [
upperBound: 1,
},
name: 'firstName',
type: 'String',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
},
{
multiplicity: {
lowerBound: 1,
upperBound: 1,
},
name: 'lastName',
type: 'String',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
},
],
stereotypes: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ const entities = [
upperBound: 1,
},
name: 'name',
type: 'String',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,14 @@
"lowerBound": 1,
"upperBound": 1
},
"returnType": "meta::pure::tds::TabularDataSet"
"returnGenericType": {
"rawType": {
"_type": "packageableType",
"fullPath": "meta::pure::tds::TabularDataSet"
},
"typeArguments": [],
"typeVariableValues": []
}
},
"classifierPath": "meta::pure::metamodel::function::ConcreteFunctionDefinition"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ export const TEST_DATA__ModelToModelMapping = [
lowerBound: 1,
},
name: 'employees',
type: 'model::Person',
genericType: {
rawType: {
_type: 'packageableType',
fullPath: 'model::Person',
},
typeArguments: [],
typeVariableValues: [],
},
},
{
multiplicity: {
Expand Down Expand Up @@ -214,7 +221,14 @@ export const TEST_DATA__ModelToModelMapping = [
lowerBound: 1,
upperBound: 1,
},
returnType: 'String',
returnGenericType: {
rawType: {
_type: 'packageableType',
fullPath: 'String',
},
typeArguments: [],
typeVariableValues: [],
},
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,14 @@
"parameters": [
{
"_type": "var",
"class": "String",
"genericType": {
"rawType": {
"_type": "packageableType",
"fullPath": "String"
},
"typeArguments": [],
"typeVariableValues": []
},
"multiplicity": {
"lowerBound": 1,
"upperBound": 1
Expand All @@ -325,7 +332,14 @@
},
{
"_type": "var",
"class": "String",
"genericType": {
"rawType": {
"_type": "packageableType",
"fullPath": "String"
},
"typeArguments": [],
"typeVariableValues": []
},
"multiplicity": {
"lowerBound": 1,
"upperBound": 1
Expand Down Expand Up @@ -633,7 +647,14 @@
},
{
"_type": "var",
"class": "String",
"genericType": {
"rawType": {
"_type": "packageableType",
"fullPath": "String"
},
"typeArguments": [],
"typeVariableValues": []
},
"multiplicity": {
"lowerBound": 1,
"upperBound": 1
Expand Down
Loading

0 comments on commit 7d7a209

Please sign in to comment.