Make WordPress Core

Opened 4 weeks ago

Closed 3 weeks ago

Last modified 9 days ago

#64096 closed enhancement (fixed)

Notes: PHP backports from Gutenberg

Reported by: wildworks's profile wildworks Owned by: adamsilverstein's profile adamsilverstein
Milestone: 6.9 Priority: normal
Severity: normal Version:
Component: Editor Keywords: gutenberg-merge has-patch commit
Focuses: Cc:

Description

Gutenberg Issue: https://github.com/WordPress/gutenberg/issues/71826

We plan to stabilize "Notes" feature (formerly known as Block Comments) for the 6.9 release. The Notes feature requires extending the comments REST API, and we need to backport the PHP changes made in Gutenberg into core.

Change History (20)

This ticket was mentioned in Slack in #core-editor by wildworks. View the logs.


4 weeks ago

This ticket was mentioned in PR #10280 on WordPress/wordpress-develop by @wildworks.


4 weeks ago
#2

  • Keywords has-patch added

This PR updates the core Comments REST API to allow the Notes feature to work properly.

@wildworks commented on PR #10280:


4 weeks ago
#3

Ok, I believe backporting PHP should be all done. Next, I'll try to fix the failing tests.

@Mamaduka commented on PR #10280:


4 weeks ago
#4

Ok, I believe backporting PHP should be all done. Next, I'll try to fix the failing tests.

I think we're missing the Notes-specific unit tests.

@wildworks commented on PR #10280:


4 weeks ago
#6

Thanks both of you for your feedback! I got a bit confused about the JS fixtures, so I've put them back to how they were 😄 I'll look into how to update them properly.

#7 @wildworks
4 weeks ago

#64012 was marked as a duplicate.

@wildworks commented on PR #10280:


4 weeks ago
#8

I got a bit confused about the JS fixtures, so I've put them back to how they were

For some reason I no longer get the error.

@TimothyBlynJacobs commented on PR #10280:


4 weeks ago
#9

Ditto all the feedback about wishing we had a fleshed out comment types API about now. But I think this looks pretty reasonable.

@swissspidy commented on PR #10280:


4 weeks ago
#11

Curious, does this work well with WP-CLI out of the box when dealing with comments?

@Mamaduka commented on PR #10280:


4 weeks ago
#14

Curious, does this work well with WP-CLI out of the box when dealing with comments?

Do you have any particular concerns, @swissspidy? I've only used WP-CLI to clean up test data or migrate notes after the type change. It worked perfectly.

@t-hamano, what are the remaining blockers here?

@wildworks commented on PR #10280:


4 weeks ago
#15

@t-hamano, what are the remaining blockers here?

I think I've addressed all the feedback.

@wildworks commented on PR #10280:


3 weeks ago
#16

I haven't committed to core yet, so I'd be happy if someone could do that 😅 That said, I'd like to set up an SVN environment, understand the core committer workflow, and try my hand at committing within the 6.9 cycle.

@adamsilverstein commented on PR #10280:


3 weeks ago
#17

I haven't committed to core yet, so I'd be happy if someone could do that 😅 That said, I'd like to set up an SVN environment, understand the core committer workflow, and try my hand at committing within the 6.9 cycle.

@t-hamano - I'm happy to take this commit so your first effort isn't so large!

#18 @adamsilverstein
3 weeks ago

  • Keywords commit added

This looks ready for commit, I am going to work on that.

This ticket was mentioned in Slack in #core-committers by adamsilverstein. View the logs.


3 weeks ago

#20 @adamsilverstein
3 weeks ago

  • Owner set to adamsilverstein
  • Status changed from new to assigned

#21 @adamsilverstein
3 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 60987:

Editor: Introduce the PHP-related code for Notes.

Bring the PHP part of the new Notes feature into core for the 6.9 release. See related Gutenberg Issue: https://github.com/WordPress/gutenberg/issues/71826. These changes do not impact any user facing functionality, they simply prepare core for the JavaScript functionality that will come over in a separate sync.

Overview of changes:

  • Ensure Notes are not included in comment counts
  • Enable the note type (REST API)
  • Adjust capabilities so edit_post cap implies ability to edit notes
  • Enable empty and duplicate notes for resolve/re-open actions
  • Add control over notes with post type supports check
  • Register new note resolution status meta

Props: ristojovanovic, adamsilverstein, jeffpaul, wildworks, mamaduka, swissspidy, timothyblynjacobs, kadamwhite.
Fixes #64096.

@JeffPaul commented on PR #10280:


2 weeks ago
#22

@desrosj any idea why the Playground bot commented after the PR was closed versus after it was opened? Seems like it ideally triggers after a PR is opened so folks have an easy way to test, yeah?

@desrosj commented on PR #10280:


2 weeks ago
#23

@jeffpaul The workflow that leaves the Playground comment runs when the Test Build Process workflow completes (the results of the build process are zipped and uploaded to these runs).

Looking at the timeline of events on the PR, I think what happened was as follows:

The commenting workflow does _not_ currently check if the PR has been closed before posting. It just relies on the prerequisite workflow run completing. There is Core-61568 on Trac that is aimed at only sharing a Playground link when the changes are being made would actually be testable within a Playground instance. For example, GitHub Action workflow files cannot be tested in Playground. I am going to add this to a comment on that ticket so it does not get lost.

@desrosj commented on PR #10280:


10 days ago
#49

Despite being reported several times and continually deleting the content, this account continues to spam this PR. I am going to lock the conversation for this PR to avoid the massive amounts of noise.

Note: See TracTickets for help on using tickets.