Skip to content

Commit dcce42e

Browse files
committed
bundle: default genie_space testserver parent_path to home dir
Mirror DashboardCreate: when a Genie space is created without a parent_path, default it to the user's home directory (/Users/<user>), matching cloud behavior. Co-authored-by: Isaac
1 parent a595ca4 commit dcce42e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libs/testserver/genie_spaces.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ func (s *FakeWorkspace) GenieSpaceCreate(req Request) Response {
3535
}
3636
}
3737

38+
// Default to user's home directory if parent_path is not provided (matches cloud behavior)
39+
if createReq.ParentPath == "" {
40+
createReq.ParentPath = "/Users/" + s.CurrentUser().UserName
41+
}
42+
3843
spaceId, err := generateGenieSpaceId()
3944
if err != nil {
4045
return Response{

0 commit comments

Comments
 (0)