-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Notes: Gracefully handle non-existing note ID references (alt) #73061
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
Conversation
|
Size Change: -39 B (0%) Total Size: 2.47 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
I've decided that I like this solution more 😄 Marking it ready for review and testing. I'm going to keep the alt PR open just in case. |
|
Flaky tests detected in 8e3cf77. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19143408542
|
adamsilverstein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, I will give this a test.
t-hamano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I like this approach.
|
Thanks for testing, folks. Let's merge this. |
Co-authored-by: Mamaduka <[email protected]> Co-authored-by: adamsilverstein <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: desrosj <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: ac9927f |
What?
Closes #73017.
Alternative to #73050.
Allows adding new note to a block if associated
noteIdmetadata doesn't exists or is invalid.Note: Appriciate testing edge cases, I tried my best to do it, but we all forget something.
Why?
Blocks and their attributes can be copied and pasted into different posts, where associated notes don't exist. This created a bug and prevented users from adding new notes to copied content.
How?
Make
newNoteFormState === 'open'only requirement and source of thruth to display the new note form.Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast