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

Use correct name in changeBlock in renameVariable #2322

Merged
merged 1 commit into from Mar 17, 2020

Conversation

apple502j
Copy link
Contributor

Resolves

Resolves scratchfoundation/scratch-gui#4098
Resolves scratchfoundation/scratch-gui#5256
Resolves scratchfoundation/scratch-blocks#1415

Proposed Changes

When the variable type is list, use LIST as the name of the field, not VARIABLE.

Reason for Changes

The previous code caused the monitor data passed to GUI to have old name, so the list monitor kept the old name. This bug is well-known and several topics have been made on BaG forums.

Test Coverage

Manually tested:

  1. Renaming normal variable should change the name on the monitor
  2. Renaming list should change the name on the monitor

@apple502j
Copy link
Contributor Author

apple502j commented Feb 16, 2020

Questions:

  1. maybe tests?
  2. should there be some sort of script at deserialization which fixes projects that are affected with this automatically when loaded?

Copy link
Contributor

@fsih fsih left a comment

Choose a reason for hiding this comment

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

LG, thank you!

@fsih fsih self-assigned this Mar 12, 2020
@fsih
Copy link
Contributor

fsih commented Mar 12, 2020

Note: I'm holding off on merging this until the next release cycle

@fsih fsih merged commit 8a39d23 into scratchfoundation:develop Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants