You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2026/07/27 01:20:19 UTC
(airavata-custos) 03/18: Fall back to email in the analytics jobs table
This is an automated email from the ASF dual-hosted git repository.
lahirujayathilake pushed a commit to branch pearc26
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
commit 0e50a997022883ce8ddab33bb9ca065c42f978bd
Author: lahiruj <la...@gmail.com>
AuthorDate: Fri Jul 24 01:56:10 2026 -0400
Fall back to email in the analytics jobs table
---
connectors/Analytics/pkg/analytics/store.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/connectors/Analytics/pkg/analytics/store.go b/connectors/Analytics/pkg/analytics/store.go
index ba768d4d9..7a4eb4ce1 100644
--- a/connectors/Analytics/pkg/analytics/store.go
+++ b/connectors/Analytics/pkg/analytics/store.go
@@ -247,7 +247,7 @@ func (s *mysqlStore) Jobs(ctx context.Context, allocationID string, userID *stri
var rows []JobRow
err := s.db.SelectContext(ctx, &rows,
`SELECT u.id, u.job_id, u.calculated_time, u.user_id,
- TRIM(CONCAT(COALESCE(usr.first_name, ''), ' ', COALESCE(usr.last_name, ''))) AS user_name,
+ COALESCE(NULLIF(TRIM(CONCAT(COALESCE(usr.first_name, ''), ' ', COALESCE(usr.last_name, ''))), ''), usr.email) AS user_name,
u.compute_allocation_resource_id AS resource_id,
COALESCE(r.name, '') AS resource_name,
COALESCE(r.resource_type, '') AS resource_type,