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/09/08 01:51:39 UTC

(airavata-custos) 01/04: Read allocation usage amounts as fractional values

This is an automated email from the ASF dual-hosted git repository.

lahirujayathilake pushed a commit to branch early-user-onboard
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git

commit 1508aec59d3fb0072c2c9d2a8a9f721d70d6b1d0
Author: lahiruj <la...@gmail.com>
AuthorDate: Tue Sep 1 21:56:39 2026 -0400

    Read allocation usage amounts as fractional values
---
 web/src/features/core/allocations/schemas.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/web/src/features/core/allocations/schemas.ts b/web/src/features/core/allocations/schemas.ts
index 45a6759df..d85588879 100644
--- a/web/src/features/core/allocations/schemas.ts
+++ b/web/src/features/core/allocations/schemas.ts
@@ -135,8 +135,9 @@ export const changeRequestEventListSchema = z.array(changeRequestEventSchema);
 export const allocationUsageSchema = z.object({
   id: z.string(),
   compute_allocation_id: z.string(),
-  used_raw_amount: z.number().int(),
-  used_su_amount: z.number().int(),
+  // Both the used_raw_amount and used_su_amount are DOUBLE values
+  used_raw_amount: z.number(),
+  used_su_amount: z.number(),
   last_updated: z.string(),
   user_id: z.string(),
   job_id: z.string(),