Skip to content

Commit

Permalink
Merge pull request #320 from ballerina-platform/dev-sahan
Browse files Browse the repository at this point in the history
Update tests to fix the full build pipeline failure
  • Loading branch information
sahanHe authored Nov 16, 2023
2 parents 21e7879 + 77e3a5a commit 67cfe69
Show file tree
Hide file tree
Showing 10 changed files with 154 additions and 153 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jacocoVersion=0.8.10
mySqlDriverVersion=8.0.29
mssqlDriverVersion=11.2.3.jre17

ballerinaLangVersion=2201.8.0
ballerinaLangVersion=2201.8.3-20231116-141000-ce270a4a

# Level 01
stdlibIoVersion=1.6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ isolated function queryMedicalneeds(string[] fields) returns stream<record {}, p
}
return from record {} 'object in medicalneedsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneMedicalneeds(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -166,8 +166,8 @@ isolated function queryMedicalitems(string[] fields) returns stream<record {}, p
}
return from record {} 'object in medicalitemsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneMedicalitems(anydata key) returns record {}|persist:NotFoundError {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ isolated function queryWorkspaces(string[] fields) returns stream<record {}, per
return from record {} 'object in workspacesClonedTable
outer join var location in buildingsClonedTable on ['object.locationBuildingCode] equals [location?.buildingCode]
select persist:filterRecord({
...'object,
"location": location
}, fields);
...'object,
"location": location
}, fields);
}

isolated function queryOneWorkspaces(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -346,8 +346,8 @@ isolated function queryBuildings(string[] fields) returns stream<record {}, pers
}
return from record {} 'object in buildingsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneBuildings(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -372,8 +372,8 @@ isolated function queryDepartments(string[] fields) returns stream<record {}, pe
}
return from record {} 'object in departmentsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneDepartments(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -398,8 +398,8 @@ isolated function queryOrderitems(string[] fields) returns stream<record {}, per
}
return from record {} 'object in orderitemsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneOrderitems(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -434,10 +434,10 @@ isolated function queryEmployees(string[] fields) returns stream<record {}, pers
outer join var department in departmentsClonedTable on ['object.departmentDeptNo] equals [department?.deptNo]
outer join var workspace in workspacesClonedTable on ['object.workspaceWorkspaceId] equals [workspace?.workspaceId]
select persist:filterRecord({
...'object,
"department": department,
"workspace": workspace
}, fields);
...'object,
"department": department,
"workspace": workspace
}, fields);
}

isolated function queryOneEmployees(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -475,8 +475,8 @@ isolated function queryWorkspaceEmployees(record {} value, string[] fields) retu
return from record {} 'object in employeesClonedTable
where 'object.workspaceWorkspaceId == value["workspaceId"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryBuildingWorkspaces(record {} value, string[] fields) returns record {}[] {
Expand All @@ -487,8 +487,8 @@ isolated function queryBuildingWorkspaces(record {} value, string[] fields) retu
return from record {} 'object in workspacesClonedTable
where 'object.locationBuildingCode == value["buildingCode"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryDepartmentEmployees(record {} value, string[] fields) returns record {}[] {
Expand All @@ -499,7 +499,7 @@ isolated function queryDepartmentEmployees(record {} value, string[] fields) ret
return from record {} 'object in employeesClonedTable
where 'object.departmentDeptNo == value["deptNo"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ isolated function queryWorkspaces(string[] fields) returns stream<record {}, per
return from record {} 'object in workspacesClonedTable
outer join var location in buildingsClonedTable on ['object.locationBuildingCode] equals [location?.buildingCode]
select persist:filterRecord({
...'object,
"location": location
}, fields);
...'object,
"location": location
}, fields);
}

isolated function queryOneWorkspaces(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -346,8 +346,8 @@ isolated function queryBuildings(string[] fields) returns stream<record {}, pers
}
return from record {} 'object in buildingsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneBuildings(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -372,8 +372,8 @@ isolated function queryDepartments(string[] fields) returns stream<record {}, pe
}
return from record {} 'object in departmentsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneDepartments(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -398,8 +398,8 @@ isolated function queryOrderitems(string[] fields) returns stream<record {}, per
}
return from record {} 'object in orderitemsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneOrderitems(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -434,10 +434,10 @@ isolated function queryEmployees(string[] fields) returns stream<record {}, pers
outer join var department in departmentsClonedTable on ['object.departmentDeptNo, 'object.departmentDeptName] equals [department?.deptNo, department?.deptName]
outer join var workspace in workspacesClonedTable on ['object.workspaceWorkspaceId, 'object.workspaceWorkspaceType] equals [workspace?.workspaceId, workspace?.workspaceType]
select persist:filterRecord({
...'object,
"department": department,
"workspace": workspace
}, fields);
...'object,
"department": department,
"workspace": workspace
}, fields);
}

isolated function queryOneEmployees(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -475,8 +475,8 @@ isolated function queryWorkspaceEmployees(record {} value, string[] fields) retu
return from record {} 'object in employeesClonedTable
where 'object.workspaceWorkspaceId == value["workspaceId"] && 'object.workspaceWorkspaceType == value["workspaceType"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryBuildingWorkspaces(record {} value, string[] fields) returns record {}[] {
Expand All @@ -487,8 +487,8 @@ isolated function queryBuildingWorkspaces(record {} value, string[] fields) retu
return from record {} 'object in workspacesClonedTable
where 'object.locationBuildingCode == value["buildingCode"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryDepartmentEmployees(record {} value, string[] fields) returns record {}[] {
Expand All @@ -499,7 +499,7 @@ isolated function queryDepartmentEmployees(record {} value, string[] fields) ret
return from record {} 'object in employeesClonedTable
where 'object.departmentDeptNo == value["deptNo"] && 'object.departmentDeptName == value["deptName"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ isolated function queryEmployees(string[] fields) returns stream<record {}, pers
return from record {} 'object in employeesClonedTable
outer join var department in departmentsClonedTable on ['object.departmentDeptNo] equals [department?.deptNo]
select persist:filterRecord({
...'object,
"department": department
}, fields);
...'object,
"department": department
}, fields);
}

isolated function queryOneEmployees(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -300,10 +300,10 @@ isolated function queryWorkspaces(string[] fields) returns stream<record {}, per
outer join var location in buildingsClonedTable on ['object.locationBuildingCode] equals [location?.buildingCode]
outer join var employee in employeesClonedTable on ['object.workspaceEmpNo] equals [employee?.empNo]
select persist:filterRecord({
...'object,
"location": location,
"employee": employee
}, fields);
...'object,
"location": location,
"employee": employee
}, fields);
}

isolated function queryOneWorkspaces(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -340,8 +340,8 @@ isolated function queryBuildings(string[] fields) returns stream<record {}, pers
}
return from record {} 'object in buildingsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneBuildings(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -366,8 +366,8 @@ isolated function queryDepartments(string[] fields) returns stream<record {}, pe
}
return from record {} 'object in departmentsClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneDepartments(anydata key) returns record {}|persist:NotFoundError {
Expand All @@ -393,8 +393,8 @@ isolated function queryBuildingWorkspaces(record {} value, string[] fields) retu
return from record {} 'object in workspacesClonedTable
where 'object.locationBuildingCode == value["buildingCode"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryDepartmentEmployees(record {} value, string[] fields) returns record {}[] {
Expand All @@ -405,7 +405,7 @@ isolated function queryDepartmentEmployees(record {} value, string[] fields) ret
return from record {} 'object in employeesClonedTable
where 'object.departmentDeptNo == value["deptNo"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ isolated function queryUsers(string[] fields) returns stream<record {}, persist:
}
return from record {} 'object in usersClonedTable
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

isolated function queryOneUsers(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -227,9 +227,9 @@ isolated function queryPosts(string[] fields) returns stream<record {}, persist:
return from record {} 'object in postsClonedTable
outer join var user in usersClonedTable on ['object.userId] equals [user?.id]
select persist:filterRecord({
...'object,
"user": user
}, fields);
...'object,
"user": user
}, fields);
}

isolated function queryOnePosts(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -266,10 +266,10 @@ isolated function queryFollows(string[] fields) returns stream<record {}, persis
outer join var leader in usersClonedTable on ['object.leaderId] equals [leader?.id]
outer join var follower in usersClonedTable on ['object.followerId] equals [follower?.id]
select persist:filterRecord({
...'object,
"leader": leader,
"follower": follower
}, fields);
...'object,
"leader": leader,
"follower": follower
}, fields);
}

isolated function queryOneFollows(anydata key) returns record {}|persist:NotFoundError {
Expand Down Expand Up @@ -303,7 +303,7 @@ isolated function queryUserPosts(record {} value, string[] fields) returns recor
return from record {} 'object in postsClonedTable
where 'object.userId == value["id"]
select persist:filterRecord({
...'object
}, fields);
...'object
}, fields);
}

Loading

0 comments on commit 67cfe69

Please sign in to comment.