Skip to content

Commit b090ef2

Browse files
committed
fix(FR-2480): use resourceGroup instead of project for scaling_group in session delegation (#6465)
Resolves #6464(FR-2480) ## Summary - Fix `scaling_group` parameter in session delegation: use `values.owner.resourceGroup` instead of `values.owner.project` - When a superadmin delegates session creation via Session Owner Setter, the wrong field was sent as `scaling_group`, causing API errors ## Changes - `react/src/hooks/useStartSession.tsx` (L251): `values.owner.project` → `values.owner.resourceGroup` ## Verification ``` === Relay: PASS === === Lint: PASS === === Format: PASS === === TypeScript: PASS === === ALL PASS === ``` ## Test plan - [ ] Log in as superadmin - [ ] Open Session Launcher → enable "Set Session Owner" - [ ] Enter a regular user's email, select access key, project, and resource group - [ ] Create session → verify no "Scaling group not accessible" error - [ ] Verify session is created in the correct resource group
1 parent 96cf9f4 commit b090ef2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

react/src/hooks/useStartSession.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export const useStartSession = () => {
248248
},
249249
}),
250250
scaling_group: values.owner?.enabled
251-
? values.owner.project
251+
? values.owner.resourceGroup
252252
: values.resourceGroup,
253253
...(values?.resource && {
254254
resource_opts: {

0 commit comments

Comments
 (0)