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

Workspaces.open() deletion #136

Merged
merged 4 commits into from
Apr 14, 2022
Merged

Workspaces.open() deletion #136

merged 4 commits into from
Apr 14, 2022

Conversation

volovyks
Copy link
Collaborator

@volovyks volovyks commented Apr 13, 2022

Let's delete Workspaces.open(), since it's not adding any additional functionality and is pretty confusing. Same result can be achieved by excecuting Workspaces.init() and workspace.fork() functions.
The only test that was using open() function is rewritten and moved to the top-level __test__ directory. This is the only test that was using config object, we should add more in the future.
Currently, this test is failing, probably because of the #128 issue. It was working fine with open() function.
open() and init() + fork() are handling config differently. I think this is the root cause of the problem. And one more reason to keep one API instead of two.

@volovyks volovyks requested a review from ailisp April 13, 2022 13:11
@volovyks volovyks marked this pull request as ready for review April 13, 2022 16:01
Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

Looks good!

@volovyks volovyks merged commit 8753b93 into main Apr 14, 2022
@volovyks volovyks deleted the open-deletion branch April 20, 2022 11:23
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.

2 participants