8000 fix: proc json serialization by BeksOmega · Pull Request #6746 · google/blockly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: proc json serialization #6746

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
Jan 12, 2023

Conversation

BeksOmega
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

N/A

Proposed Changes

Procedure parameters were not being rendered correctly when loading from JSON. This fixes that.

Reason for Changes

Properly rendering parameters is important!

Test Coverage

Added JSON serialization tests equivalent to the existing XML serialization tests.

Documentation

N/A

Additional Information

Dependent on #6745

@github-actions github-actions bot added the PR: fix Fixes a bug label Jan 9, 2023
@BeksOmega BeksOmega force-pushed the fix/proc-json-serialization branch from fbdc7d6 to 6bd64a3 Compare January 9, 2023 21:19
@BeksOmega BeksOmega force-pushed the fix/proc-json-serialization branch 2 times, most recently from 4dacf8f to d3a53d3 Compare January 11, 2023 15:56
@BeksOmega BeksOmega marked this pull request as ready for review January 11, 2023 15:56
@BeksOmega BeksOmega requested a review from a team as a code owner January 11, 2023 15:56
@BeksOmega BeksOmega requested a review from maribethb January 11, 2023 15:56
Copy link
Contributor
@cpcallen cpcallen left a comment

Choose a reason for hiding this comment

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

Procedure parameters were not being rendered correctly when loading from JSON. This fixes that.

Is there an issue for this? O 8000 r can you be a bit more specific about what was broken and how this fixes it?

Specifically, what I see is that:

  • You've disabled events in one place.
  • You've renamed one method name (seemingly @internal but not declared as such) to remove one of two trailing underscores.
  • You've added tests.

Presumably adding tests did not itself fix the problem, so it would be useful to understand how either of the first two items might.

@BeksOmega BeksOmega force-pushed the fix/proc-json-serialization branch from d3a53d3 to 2a916d7 Compare January 11, 2023 18:18
@BeksOmega
Copy link
Collaborator Author

The relevant change is the call to doProcedureUpdate!

@BeksOmega BeksOmega merged commit 32c7585 into google:develop Jan 12, 2023
@BeksOmega BeksOmega deleted the fix/proc-json-serialization branch May 14, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0