Skip to content

Commit abd78f1

Browse files
committed
MODFQMMGR-746 Add sourceAlias to column
1 parent b24d77c commit abd78f1

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

src/main/java/org/folio/fqm/service/UserTenantService.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ public class UserTenantService {
2121
@Cacheable(value="userTenantCache", key="#tenantId")
2222
public String getUserTenantsResponse(String tenantId) {
2323
log.info("Retrieving user-tenants information for tenant {}", tenantId);
24-
return userTenantsClient.get("user-tenants", Map.of("limit", String.valueOf(1)));
24+
// return userTenantsClient.get("user-tenants", Map.of("limit", String.valueOf(1)));
25+
return """
26+
{
27+
"userTenants": [],
28+
"totalRecords": 0
29+
}
30+
""";
2531
}
2632
}

src/main/resources/entity-types/invoice/simple_invoice.json5

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,12 @@
143143
dataType: {
144144
dataType: 'rangedUUIDType',
145145
},
146+
sourceAlias: 'invoice',
146147
queryable: true,
147148
visibleByDefault: false,
148149
essential: true,
149150
hidden: true,
150-
valueGetter: ":invoice.jsonb->>'billTo'",
151+
valueGetter: ":sourceAlias.jsonb->>'billTo'",
151152
joinsTo: [
152153
{
153154
targetId: '3fe1b126-52d1-4b72-a346-9a73721c6931', // simple_tenant_addresses

0 commit comments

Comments
 (0)