-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: Rename Mutator#workspace
back to workspace_
for compatibility with library blocks
#6634
fix: Rename Mutator#workspace
back to workspace_
for compatibility with library blocks
#6634
Conversation
I would prefer to revert the original change, but mark |
I'm okay with switching it to reverting the original change, but I want |
Deprecated is a reasonable compromise! |
After investigation:
I have put it back to @BeksOmega ptal |
Mutator#workspace
back to workspace_
for compatibility with library blocks
* fix: make mutator workspace public * fix: make workspace private again
The basics
npm run format
andnpm run lint
The details
Resolves
Fixes #6630
Proposed Changes
Revert the renaming of the mutator workspace:
workspace
->workspace_
and make it public.Behavior Before Change
Workspace was not officially public but was being used by procedure mutators, and it broke when I renamed it.
Behavior After Change
Existing procedure mutators work now.
Reason for Changes
Revert a rename that actually broke something.
Test Coverage
Beka reported that this triggered the issue, and it now works.
Beka is also adding tests for procedures as part of the rest of her work, which should help avoid this in future.
Documentation
None
Additional Information
The built-in blocks blur the line between internal and public. My position: any property the blocks access (e.g. in mutators) is public and changing it requires a true deprecation. Blocks shouldn't be accessing private properties, and honestly should just be using getters where possible, but for a long time we encouraged developers to copy our block definitions and modify them as they saw fit, so there are probably blocks out there that access the same properties.
This needs to be cherry-picked into develop and released as a patch.