Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Change workspace runs into endless while-loop #5184

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

pKallert
Copy link
Contributor

@pKallert pKallert commented Jul 23, 2024

Review instructions
Currently when switching the workspace in the UI it just runs endlessly and the docker container complains if you switch workspaces too often.

Apparently the bug was introduced here: PR

The line used to be
$nextBaseWorkspace = $contentRepository->getWorkspaceFinder()->findOneByName($nextBaseWorkspace->baseWorkspaceName);

and was changed to
$nextBaseWorkspace = $this->requireBaseWorkspace($workspace, $workspaceFinder);

since we always check for $workspace, the $nextBaseWorkspace always stays the same
Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh :)

Copy link
Member

@kitsunet kitsunet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof yeah, thanks for finding this!

@kitsunet
Copy link
Member

kitsunet commented Jul 24, 2024

I think this needs a rebase to after the DBAL changes?! That probably fixes the two CI problems.

@mhsdesign mhsdesign self-requested a review July 25, 2024 10:45
@mhsdesign
Copy link
Member

Before merging we should definitely come up with a test for this. The method is used in change base workspace which is apparently untested.

@kitsunet
Copy link
Member

All dependencies fixed, tests green, as discussed today in our meeting, we merge this before the test as it's a nasty bug.

@kitsunet kitsunet merged commit 4de44b6 into neos:9.0 Jul 26, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants