diff --git a/client/src/api/schema/schema.ts b/client/src/api/schema/schema.ts index fd0b318f8b0b..2720918058d5 100644 --- a/client/src/api/schema/schema.ts +++ b/client/src/api/schema/schema.ts @@ -2187,7 +2187,7 @@ export interface components { * Quota percent * @description Percentage of the storage quota applicable to the user. */ - quota_percent?: unknown; + quota_percent?: number | null; /** * Total disk usage * @description Size of all non-purged, unique datasets of the user in bytes. @@ -4613,12 +4613,12 @@ export interface components { * Quota in bytes * @description Quota applicable to the user in bytes. */ - quota_bytes: unknown; + quota_bytes?: number | null; /** * Quota percent * @description Percentage of the storage quota applicable to the user. */ - quota_percent?: unknown; + quota_percent?: number | null; /** * Tags used * @description Tags used by the user diff --git a/lib/galaxy/schema/schema.py b/lib/galaxy/schema/schema.py index 3653890f4968..e782cdb82092 100644 --- a/lib/galaxy/schema/schema.py +++ b/lib/galaxy/schema/schema.py @@ -362,7 +362,7 @@ class CreatedUserModel(UserModel, DiskUsageUserModel): class AnonUserModel(DiskUsageUserModel): - quota_percent: Any = QuotaPercentField + quota_percent: Optional[float] = QuotaPercentField class DetailedUserModel(BaseUserModel, AnonUserModel): @@ -371,7 +371,9 @@ class DetailedUserModel(BaseUserModel, AnonUserModel): preferences: Dict[Any, Any] = Field(default=..., title="Preferences", description="Preferences of the user") preferred_object_store_id: Optional[str] = PreferredObjectStoreIdField quota: str = Field(default=..., title="Quota", description="Quota applicable to the user") - quota_bytes: Any = Field(default=..., title="Quota in bytes", description="Quota applicable to the user in bytes.") + quota_bytes: Optional[int] = Field( + default=None, title="Quota in bytes", description="Quota applicable to the user in bytes." + ) tags_used: List[str] = Field(default=..., title="Tags used", description="Tags used by the user")