-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Comments Query Loop block: Rename to Comments (but keep ID) #40763
Conversation
Size Change: -206 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
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.
Looks good to me! 👍
- Tested in site editor ✅
- Tested in post editor ✅
- Tested creating the Comments Query Loop block on
trunk
and then switching to this branch. The block is renamed to "Comments" ✅
PS. I've also updated the CODEOWNERS file.
Hmm, looks like the e2e test is broken after all. I'm investigating. |
That's weird 🤔 Because I saw the same failure happening locally on my machine. Could that be because some of the backports were merged into Core in the meantime (between the time I tested and you re-ran the CI)? |
Possibly (I did check the artifacts for the CI's e2e test failures before re-running though). |
It looks like the class name for the block remains |
Thanks for flagging @gziolo. FWIW, this PR changed the block name and file/directory names, but not the block ID. So to me, it seems to make sense that the block class name remains Curious to hear your thoughts 🙂 (FWIW, we're planning to tackle the ID change separately (#40506), or even merge the Comments Query Loop and Post Comments blocks after all (#40521).) |
I'm removing the |
What?
Rename the Comments Query Loop block to Comments.
Why?
The block has never really been a query loop (the query can't really be customized, unlike the (post) Query).
And it no longer is just a loop: For parity with its monolithic predecessor block (Post Comments, which is now deprecated and hidden from the inserter), we're now adding Comments Title, Comments Pagination, and Post Comments Form blocks to its default template.
Furthermore, as a user looking for “a block to display my comments”, I probably wouldn’t click on “Comments Query Loop” as my first choice in the inserter.
So in order for this block to convey to the user that it is the "authoritative" block to display comments, I'd like to propose we rename it accordingly.
How?
Rename the block.
We have another PR (#40506) that would also change the block ID (from
core/comments-query-loop
tocore/comments
). I opted to file a PR for just changing the block name (but not the ID) in order to de-risk this. (I'd still love if we could also change the ID, but this way, we can discuss it separately.)Testing Instructions
Verify that the block is now called 'Comments' in the inserter and elsewhere.