Skip to content

chore: refactor workspace conversion to accept ownerName #10171

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

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Oct 10, 2023

Refactors workspace conversion to accept the ownerName, rather than a slice of users, since all it does is search the slice for the owner and use the username.

This is in preparation for a fix to postWorkspacesByOrganization() that will remove the need to pass the user object.

Also avoids panicing if the required user is not in the slice, since findUser could return nil in the old code, which would then get dereferenced for the username.

@spikecurtis spikecurtis force-pushed the 10-10-chore_drop_unused_redirectToLoginOnMe_parameter branch from f826785 to 44aad4b Compare October 10, 2023 12:05
@spikecurtis spikecurtis force-pushed the 10-10-chore_refactor_conversion_to_accept_ownerName branch from 22ca3dc to 048f310 Compare October 10, 2023 12:06
@spikecurtis spikecurtis requested a review from johnstcn October 10, 2023 12:06
Base automatically changed from 10-10-chore_drop_unused_redirectToLoginOnMe_parameter to main October 10, 2023 12:13
@spikecurtis spikecurtis merged commit db8592f into main Oct 10, 2023
@spikecurtis spikecurtis deleted the 10-10-chore_refactor_conversion_to_accept_ownerName branch October 10, 2023 12:55
@github-actions github-actions bot locked and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants