Problem/Motivation
Part of #3518993: [META] Replace comment constants with enums
Steps to reproduce
Proposed resolution
CommentItemInterface - FORM_SEPARATE_PAGE and FORM_BELOW moves to a FormLocation enum with cases SeparatePage, and Below.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3550054
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3550054-form-location
changes, plain diff MR !13395
Comments
Comment #3
mstrelan commentedComment #4
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #6
mstrelan commentedRebased since #3547353: Move HIDDEN, CLOSED and OPEN constants in CommentItemInterface to new CommentingStatus enum was committed
Comment #7
smustgrave commentedSmall Phpcs problem mind taking a quick look @mstrelan
Comment #8
mstrelan commentedUmami performance test failing not sure if it's related?
Comment #9
mstrelan commentedTest fail is happening elsewhere, opened #3578666: Fix AssetAggregationAcrossPagesTest
Comment #10
smustgrave commentedApplied the MR
Did a search for CommentItemInterface::FORM_BELOW = 0 hits
Did a search for CommentItemInterface::FORM_SEPARATE_PAGE = 0 hits
Seems like a good conversion but the CR is empty. Will keep my eye out for this one more quickly.
Comment #11
mstrelan commentedUpdated CR, thanks
Comment #12
smustgrave commentedThanks! Rest looks good.
Comment #17
godotislateI bumped the deprecation version to 11.4 and the removal version to 13. Since these were minor comment changes, I applied the suggestions myself and committed 90bc211 and pushed to main.
There was a merge conflict cherry-picking to 11.x in core/modules/comment/src/CommentLinkBuilder.php. This only had to do with
usestatements, so I manually resolved and committed 9a2fc40 and pushed to 11.x. Thanks!