Skip to content

fix: propagate isWorkspaceMigratedToGHE & merge dev & bump code-server to 1.9.10#4954

Open
agnelpraveen wants to merge 4 commits into
devfrom
feature/fix-collaborator
Open

fix: propagate isWorkspaceMigratedToGHE & merge dev & bump code-server to 1.9.10#4954
agnelpraveen wants to merge 4 commits into
devfrom
feature/fix-collaborator

Conversation

@agnelpraveen

Copy link
Copy Markdown
Collaborator

Summary

When adding a collaborator to a codespace workspace, a new workspace entity is created for the collaborator. Previously, the isWorkspaceMigratedToGHE and isWorkspaceMigrated fields were not being copied from the owner's workspace, resulting in null values for collaborators. This caused issues with Git operations that depend on knowing whether the workspace uses GHE or git.i.

Changes

Fixed in BaseWorkspaceService.java by adding two lines to copy the migration flags from the owner workspace to the collaborator workspace entity:

  • addCollabById(): when adding a collaborator to an existing workspace
  • createWorkspace(): when creating collaborator workspaces during initial workspace creation

Root Cause

The CodeServerWorkspace entity has isWorkspaceMigratedToGHE and isWorkspaceMigrated boolean fields that track whether a workspace has been migrated to GitHub Enterprise. When collaborator workspace entities were created, all other fields (description, gitUserName, projectDetails, status, etc.) were copied from the owner workspace, but these two migration flags were omitted.

devin-ai-integration Bot and others added 3 commits April 14, 2026 08:25
…borator workspace

When adding a collaborator to a codespace workspace, a new workspace entity
is created for the collaborator. Previously, the isWorkspaceMigratedToGHE and
isWorkspaceMigrated fields were not being copied from the owner's workspace,
resulting in null values for collaborators. This caused issues with Git
operations that depend on knowing whether the workspace uses GHE or git.i.

Fixed in both:
- addCollabById(): adding collaborator to existing workspace
- createWorkspace(): creating collaborator workspaces during initial creation

Co-Authored-By: anna_agnel.maria_rathinam <anna_agnel.maria_rathinam@mercedes-benz.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@agnelpraveen agnelpraveen changed the title fix: propagate isWorkspaceMigratedToGHE from owner workspace to collaborator workspace fix: propagate isWorkspaceMigratedToGHE & merge dev & bump code-server to 1.9.10 Jun 10, 2026
…ffective permissions

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant