Check for duplicates
Component
The following plugins:
- Shareable procedure blocks
- Plus-minus mutator blocks
- Typed variable modal
- Block test
Description
PR 8415 deprecated a number of methods on Workspace that pass calls to VariableMap. The deprecations recommend replacing calls to Workspace.variableMethod with calls to Workspace.getVariableMap().variableMethod.
The following files have calls that need to be replaced:
Workspace.createVariable
- plugins/block-shareable-procedures/src/observable_parameter_model.ts (two occurrences)
- plugins/block-shareable-procedures/test/data_models.mocha.js (two occurrences)
- plugins/block-shareable-procedures/test/procedure_blocks.mocha.js (two occurrences)
- plugins/block-plus-minus/src/procedures.js
- plugins/block-plus-minus/test/procedures.mocha.js (two occurrences)
- plugins/typed-variable-modal/src/TypedVariableModal.js
- plugins/block-test/src/fields/validators.js (five occurrences)
Workspace.getVariablesOfType
- plugins/block-plus-minus/test/procedures.mocha.js
- plugins/block-shareable-procedures/test/procedure_blocks.mocha.js
Reproduction steps
Stack trace
Screenshots
No response
Check for duplicates
Component
The following plugins:
Description
PR 8415 deprecated a number of methods on
Workspacethat pass calls toVariableMap. The deprecations recommend replacing calls toWorkspace.variableMethodwith calls toWorkspace.getVariableMap().variableMethod.The following files have calls that need to be replaced:
Workspace.createVariableWorkspace.getVariablesOfTypeReproduction steps
Stack trace
Screenshots
No response