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

fix: make getSourceBlock nullable again #6542

Merged
merged 5 commits into from
Oct 18, 2022

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

https://groups.google.com/g/blockly/c/IxL-Px8GMXA/m/EK5g2VQ8BwAJ?utm_medium=email&utm_source=footer

Proposed Changes

Makes getSourceBlock nullable again.

Behavior Before Change

No user-facing change in behavior.

Behavior After Change

No user-facing change in behavior.

Reason for Changes

We were breaking people who were using getSourceBlock in callbacks that were called before the field was attached to a block.

Test Coverage

N/A

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner October 13, 2022 22:28
@BeksOmega BeksOmega requested a review from maribethb October 13, 2022 22:28
@github-actions github-actions bot added the PR: fix Fixes a bug label Oct 13, 2022
core/field_dropdown.ts Show resolved Hide resolved
core/procedures.ts Outdated Show resolved Hide resolved
@BeksOmega BeksOmega force-pushed the fix/get-source-block branch from c20cc4d to 7eb754b Compare October 18, 2022 18:51
@BeksOmega BeksOmega merged commit df660af into google:develop Oct 18, 2022
cpcallen pushed a commit to cpcallen/blockly that referenced this pull request Oct 19, 2022
* fix: make getSourceBlock nullable again

* chore: format

* chore: move to a specific error

* chore: also update procedures with new error

* chore: format
This was referenced Oct 19, 2022
@BeksOmega BeksOmega deleted the fix/get-source-block 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.

2 participants