Skip to content

Conversation

@BeksOmega
Copy link
Contributor

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
Collaborator

@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? Or 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
Contributor Author

The relevant change is the call to doProcedureUpdate!

@BeksOmega BeksOmega merged commit 32c7585 into RaspberryPiFoundation: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