Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions react/data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ type AuditLogNode implements Node {
"""UUID of the audit log row"""
row_id: UUID!

"""Added in 25.6.0. UUID of the action"""
action_id: UUID!

"""Entity ID of the AuditLog"""
entity_type: String!

Expand Down Expand Up @@ -1368,8 +1371,10 @@ type ScalingGroup {
status: String = "ALIVE"
): JSONString

"""Added in 25.6.0. The resource slot hard-limit of the resource group."""
resource_slot_limit: JSONString
"""
Added in 25.6.0. The limit of computing resources that can be allocated to each compute session created within this resource group.
"""
resource_allocation_limit_for_sessions: JSONString

"""
Added in 25.4.0. The sum of occupied slots across compute sessions that occupying agent's resources. Only includes sessions owned by the user.
Expand Down
5 changes: 3 additions & 2 deletions react/src/hooks/useResourceLimitAndRemaining.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,16 @@ export const useResourceLimitAndRemaining = ({
graphql`
fragment useResourceLimitAndRemainingFragment on ScalingGroup {
name
resource_slot_limit @since(version: "25.6.0")
resource_allocation_limit_for_sessions @since(version: "25.6.0")
}
`,
currentResourceGroupFrgmt,
);

const currentResourceGroupSlotLimits = useMemo(() => {
return JSON.parse(
currentResourceGroupForLimit?.resource_slot_limit || '{}',
currentResourceGroupForLimit?.resource_allocation_limit_for_sessions ||
'{}',
) as ResourceSlots;
}, [currentResourceGroupForLimit]);

Expand Down