Problem/Motivation

Comments currently include a shortcut link which allows privileged users to quickly publish them. This is especially useful if comments are configured to default to unpublished, awaiting the approval of an administrator or site moderator. However, there's no equivalent shortcut to unpublish a comment which would be useful in the opposite case (comments are published by default and spam/inappropriate comments are unpublished by moderators).

This is also an inconsistency which would be a DX improvements: having a path to unpublish comments in tests, adding a views field which provides an unpublish link, etc.

Finally, much of the current administration wording refers to "approving" comments which, in reality, is simply changing the comment's publish status. This wording should be updated on the back end to "publish" which is consistent throughout core and pairs better with "unpublish" vs. "unapprove".

Proposed resolution

Add unpublish equivalents to the current publish functionality.

Remaining tasks

Needs review and change notice.

User interface changes

All administration text referring to "approving" a comment has been changed to "publishing", user-facing text has been left alone as it is still accurate (they are waiting for their comment to be approved). The Comment Approval Queue is now titled the Comment Unpublished Queue and has moved from '/admin/content/comment/approval' to '/admin/content/comment/unpublished'. The path for publishing a comment has moved from '/comment/{comment}/approve' to '/comment/{comment}/publish' and a new path for unpublishing a comment has been added at '/comment/{comment}/unpublish'.

API changes

A new route has been added for unpublishing a comment has been added at '/comment/{comment}/unpublish'. Additionally, the existing route for publishing a comment has had its path changed from '/comment/{comment}/approve' to '/comment/{comment}/publish' for consistency. The entity access operation has changed from 'approve' to 'publish' and the comment administration overview form $type argument now accepts either 'unpublished' or 'new' vs. 'approval' or 'new'.

Original report by droplet

On the frontend it has a way to approve a comment but no way to undo it.

Suggest add AJAX-action to approve & unapproved them

CommentFileSizeAuthor
#124 1266306-124-interdiff.txt32.5 KBmanishsaharan
#124 1266306-124.patch32.5 KBmanishsaharan
#122 Screenshot-1266306-2.png421.42 KBnikhil_110
#122 Screenshot-1266306-1.png517.17 KBnikhil_110
#122 1266306-122.patch37.9 KBnikhil_110
#121 Screenshot 2023-01-10 at 5.02.39 PM.jpg29.66 KBsahilgidwani
#119 reroll_diff_103-119.txt54.13 KBsahil.goyal
#119 1266306-119.patch37.21 KBsahil.goyal
#103 1266306-comment_publishing_links-100-103.interdiff.txt5.65 KBohthehugemanatee
#103 1266306-comment_publishing_links-103.patch32.01 KBohthehugemanatee
#102 interdiff-97--100-do-not-test.patch27.21 KBdroplet
#100 1266306-comment_publishing_links-100.patch29.64 KBdroplet
#99 1266306-comment_publishing_links-99.patch39.06 KBdroplet
#97 1266306-comment_publishing_links-97.patch54.61 KBohthehugemanatee
#94 1266306-comment_publishing_links-94.patch54.56 KBohthehugemanatee
#81 interdiff-1266306-79-81.txt1.76 KBohthehugemanatee
#81 1266306-comment_publishing_links-81.patch49 KBohthehugemanatee
#79 1266306-comment_publishing_links-79.patch48.94 KBbotris
#77 1266306-comment_publishing_links-77.patch35.76 KBohthehugemanatee
#73 1266306-comment_publishing_links-73.patch35.75 KBdevin carlson
#63 1266306-comment_publishing_links-63.patch15.03 KBajits
#60 comment-unpublish-link.patch15.08 KBdroplet
#58 unpublished-comment-1266306-58.patch15.3 KBbenjf
#54 unpublished-comment-1266306-54.patch15.29 KBbenjf
#51 unpublished-comment-1266306-51.patch15.3 KBbenjf
#46 unpublished-comment-1266306-46.patch6.87 KBunstatu
#41 unpublished-comment-1266306-41.patch6.85 KBfinn lewis
#37 unpublished-comment-1266306-37.patch6.7 KBdurgeshs
#35 unpublished-comment-1266306-35.patch5.76 KBdurgeshs
#35 publish-unpublish-comment-1266306-35.png21.37 KBdurgeshs
#35 comment-1266306-35.png28.28 KBdurgeshs
#33 empty unpublished comments list.png40 KBcobadger
#30 comment-publishing-1266306-30.patch43.4 KBdcam
#26 disapprove-comment-1266306-26.patch3.34 KBdcam
#22 1266306-disapprove_comment_link.patch3.32 KBdroplet
#20 1266306-disapprove_comment_link.patch3.3 KBdroplet
#17 1266306-disaprrove_comment_link.patch3.26 KBdroplet
#14 1266306-14-comment.patch3.1 KBdroplet
#11 comment_approve.png23.67 KBdroplet
#11 1266306-comment.patch3.34 KBdroplet
#8 1266306-unapprove-comment-link-7.patch3.03 KBdixon_
#6 1266306-comment-unapprove-link-6.patch3.04 KBdixon_
#5 1266306-comment-unapprove-link-5.patch3.03 KBdixon_
#4 comment_approved.patch2.03 KBdroplet
approve.jpg16.31 KBdroplet

Issue fork drupal-1266306

Command icon 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:

Comments

dixon_’s picture

Issue tags: -Usability, -ui

I think that makes sense, to achieve better consistency.

Maybe it also would be a good idea to add support for contextual links, to make it even more consistent. That of course would only be added it the contextual links module is installed.

dixon_’s picture

Issue tags: +Usability
dixon_’s picture

Title: Add a shortcut to unapproved a comment & turn approve action into AJAX » Add a shortcut to unapprove a comment for consisentcy

Thinking more about it, I don't know if I like the AJAX thing though. That is not a pattern core uses for that type of functionality.

droplet’s picture

Status: Active » Needs review
Issue tags: +Needs backport to D7
StatusFileSize
new2.03 KB

None AJAX version.

dixon_’s picture

Title: Add a shortcut to unapprove a comment for consisentcy » Add a shortcut to unapprove a comment for consistency and usability
StatusFileSize
new3.03 KB

Here is a re-roll of the patch in #4. It fixes some spacing issues (see below) and adds test to assert the link's functionality.

+++ b/modules/comment/comment.pages.inc
@@ -117,3 +117,22 @@ function comment_approve($cid) {
   return MENU_NOT_FOUND;
 }
+/**
+ * Menu callback; unpublish specified comment.
+ *
+ * @param $cid
+ *   A comment identifier.
+ */
+function comment_unapprove($cid) {

Should always be blank line between functions.

+++ b/modules/comment/comment.pages.inc
@@ -117,3 +117,22 @@ function comment_approve($cid) {
+  return MENU_NOT_FOUND;
+}
\ No newline at end of file

Should always be blank line at end of file.

20 days to next Drupal core point release.

dixon_’s picture

StatusFileSize
new3.04 KB

Hmm, a tab space seemed to sneak in there somehow. New patch.

droplet’s picture

Status: Needs review » Needs work
+++ b/modules/comment/comment.moduleundefined
@@ -1050,6 +1058,14 @@ function comment_links($comment, $node) {
+	);

+++ b/modules/comment/comment.testundefined
@@ -1535,6 +1535,19 @@ class CommentApprovalTest extends CommentHelperCase {
+    $this->assertFalse($this->commentExists($anonymous_comment4), t('Comment was unpublished.'));    ¶

can you fix tabs spacing. thanks.

20 days to next Drupal core point release.

dixon_’s picture

Status: Needs work » Needs review
StatusFileSize
new3.03 KB
barbun’s picture

I was searching for this solution as well, that's why I wrote my custom module for D7 (Views integration provided). Thank's dixon, I took some tips from your patch;)
Also there are my patches for D7 comment.module and Views, see the link above to find references.

http://drupal.org/node/1546758

Bojhan’s picture

Screenshot please.

droplet’s picture

Issue tags: +Needs usability review
StatusFileSize
new3.34 KB
new23.67 KB

comment_approve.png

Status: Needs review » Needs work

The last submitted patch, 1266306-comment.patch, failed testing.

Bojhan’s picture

The order of those links - never made sense to me, but other than that its RTBC from a UX standpoint.

droplet’s picture

Status: Needs work » Needs review
StatusFileSize
new3.1 KB
Bojhan’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs usability review

Looks good to me.

sun’s picture

Status: Reviewed & tested by the community » Needs work

Sorry. My English dictionary (LEO) does not know the term "[to] unapprove".

There's "unapproved" (adjective), but that's not a verb, and seems to be rarely used either.

droplet’s picture

Status: Needs work » Needs review
StatusFileSize
new3.26 KB

how about "unapprove" => "disapprove".

Status: Needs review » Needs work

The last submitted patch, 1266306-disaprrove_comment_link.patch, failed testing.

sun’s picture

I'm OK with "disapprove", but want to point out that the entire "approve"-based terminology we're using here is completely misleading and inappropriate. As I just mentioned in #1616324: Add view display for admin/content/comment/approval:

The separate "Approval" page makes little sense in general. Even less, if you take into account that the entire "approval" state for comments is nothing else than published and unpublished in reality. Unpublishing a comment unexpectedly means to "disapprove" it, and makes it re-appear in the list of comments to approve (moderate). That's completely nuts and I've no idea why core chose to use a terminology that implies (moderation) business logic that doesn't exist.

I'd like to see a follow-up issue that renames both of those links into "publish" (ex. approve) and "unpublish" (ex. disapprove), because it is highly confusing for users to see already approved comments re-appearing in the approval queue after unpublishing them.

droplet’s picture

Status: Needs work » Needs review
StatusFileSize
new3.3 KB

fix tests

Status: Needs review » Needs work

The last submitted patch, 1266306-disapprove_comment_link.patch, failed testing.

droplet’s picture

Status: Needs work » Needs review
StatusFileSize
new3.32 KB

ouch, new commit: #1591604: Replace drupal_access_denied() with throw AccessDeniedHttpException

Should be work this time:

Drupal test run
---------------

Tests to be run:
- Comment approval (Drupal\comment\Tests\CommentApprovalTest)

Test run started:
Tuesday, June 5, 2012 - 22:11

Test summary
------------

Comment approval 174 passes, 0 fails, 0 exceptions, and 51 debug messages

Test run duration: 1 min 1 sec

droplet’s picture

Status: Needs review » Needs work
Issue tags: +Usability, +Needs backport to D7

The last submitted patch, 1266306-disapprove_comment_link.patch, failed testing.

droplet’s picture

Issue tags: +Novice
dcam’s picture

Status: Needs work » Needs review
StatusFileSize
new3.34 KB

Updated #22 to use drupal_container().

yoroy’s picture

Status: Needs review » Reviewed & tested by the community

I would wonder what disapprove does. Sun suggests in #19:

> I'd like to see a follow-up issue that renames both of those links into "publish" (ex. approve) and "unpublish"
> (ex. disapprove), because it is highly confusing for users to see already approved comments re-appearing
> in the approval queue after unpublishing them.

This issue seems RTBC again. The follow-up would be a nice improvement too.

dries’s picture

I'm not sure I understand why we want to debate the names in a follow-up issue when it can be done now.

I think "publish" and "unpublish" make a lot more sense.

yoroy’s picture

Status: Reviewed & tested by the community » Needs work

I wouldn't mind either. Lets see if we can incorporate those changes then.

dcam’s picture

StatusFileSize
new43.4 KB

Here's a patch that changes any comment approved/unapproved language to published/unpublished.

This meant changing the name of the "Skip comment approval" permission. The only decent name I came up with was "Automatically publish comments," but I don't like it. Every other permission name describes an action that a user is allowed/forbidden to take. "Automatically publish comments" doesn't match that pattern and could be confusing.

dcam’s picture

Status: Needs work » Needs review
sun’s picture

Thanks, @dcam! :)

Hm. I actually do not think we need to adjust the permission name/label in any way. The permission focuses on the interaction of a user that is posting a comment, and in that process/interaction, we're actually talking about an "approval" of a posted but initially unpublished comment.

What do you think?

cobadger’s picture

StatusFileSize
new40 KB

Tested patch #30. Clicking on the new "unpublish" link does not unpublish the comment (comment still shows up in the "published comments" list (in admin/content/comment).

Also, using admin/content/comment to unpublish the comment does result in it being unpublished, but the now-unpublished comment does not show up in the unpublished comments list - so the list is empty, but the "Unpublished comments" counter shows a value of 1 (see attached screenshot).

cobadger’s picture

Status: Needs review » Needs work

changing status to "needs work"

durgeshs’s picture

Status: Needs work » Needs review
StatusFileSize
new28.28 KB
new21.37 KB
new5.76 KB

Submitting patch after modifying #26 by changing the label and path as commented on #28
@attached(screenshot - comment-1266306-35.png, publish-unpublish-comment-1266306-35.png).

Status: Needs review » Needs work

The last submitted patch, unpublished-comment-1266306-35.patch, failed testing.

durgeshs’s picture

Status: Needs work » Needs review
StatusFileSize
new6.7 KB

Submitting the modified test case, which were failing in the previous post.

jhood’s picture

I just tested patch #37 and it works as expected. Ready to RTBC?

dcam’s picture

I realize #19 only talked about using "Publish/Unpublish" terminology in the comment links, but I think if we don't standardize the terminology overall then we'll just be revisiting the issue in the future.

tomogden’s picture

Status: Needs review » Needs work

Before installing the patch, I created a comment and "approved" it.

After installing the patch in the latest code base, the "Unpublish" link appears, but it doesn't change anything when you click on it. If there is a new comment, the "Publish" link is likewise ineffective.

I wonder if something changed in related code?

finn lewis’s picture

Status: Needs work » Needs review
StatusFileSize
new6.85 KB

I tried the patch from #37, but it failed to apply, both using git apply, and using the 'patch -p1' command.

I worked through the patch and applied it manually, and it worked as described above. I can now unpubish and publish comments from the commented node.

In response to #40 - the patch changed menu callbacks so I had to clear the cache before the 'unpublish' link would work.

I've re-rolled the patch, which seems to apply ok for me now.

I hope this helps. This has come out of a Drupal Ladder (http://drupalladder.org/) sprint, so if I've made a mistake, sorry!

wryz’s picture

Status: Needs review » Needs work

The last submitted patch, unpublished-comment-1266306-41.patch, failed testing.

unstatu’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
Issue tags: +Usability, +Novice, +Needs backport to D7

The last submitted patch, unpublished-comment-1266306-41.patch, failed testing.

unstatu’s picture

StatusFileSize
new6.87 KB

#41 Doesn't pass the test. I have rewrite the code for the newest 8.x-dev version.

In other hand, I noticed that the internal paths for the administration items are using the Approval names instead the Published names. Also, not all the code has been updated. For example, the tests and some other paths,

jonhattan’s picture

Status: Needs work » Needs review
techmsi’s picture

Status: Needs review » Needs work

Needs re-role. We're going to work on it.

yesct’s picture

Issue tags: +Needs reroll

yep. the most recent patch does not apply.

@techmsi did you have work on this you wanted to post? or any questions?

http://drupal.org/patch/reroll are the instructions, and I'm just going to add the tag for needs reroll.

If someone rerolls this and posts a new patch, just remove the needs reroll tag then. :)

benjf’s picture

Assigned: Unassigned » benjf

working on a re-roll...

benjf’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new15.3 KB

This task was larger than expected, please review!

Status: Needs review » Needs work

The last submitted patch, unpublished-comment-1266306-51.patch, failed testing.

star-szr’s picture

I would say overall that looks quite reasonable @benjf! I guess per #28 that renaming unapprove to unpublish (and same with approve) is a part of this issue. Tagging for an issue summary update.

+++ b/core/modules/comment/comment.views.inc
@@ -229,17 +229,17 @@ function comment_views_data() {
+        'published-not-publlished' => array(t('Published'), t('Not Published')),

Small typo here: published-not-published.

benjf’s picture

StatusFileSize
new15.29 KB

thanks! fixed the typo

dcam’s picture

Status: Needs work » Needs review

Status

Status: Needs review » Needs work

The last submitted patch, unpublished-comment-1266306-54.patch, failed testing.

yesct’s picture

rerolls dont usually need interdiff, but the change from 51 to 54 is a good case for an interdiff

For instructions on creating an interdiff, see https://drupal.org/documentation/git/interdiff | Microbranching workflow: http://xjm.drupalgardens.com/blog/interdiffs-how-make-them-and-why-they-...

benjf’s picture

Status: Needs work » Needs review
StatusFileSize
new15.3 KB

Thanks! I only sort of understand interdiff's, but I'll read through it again.

Meanwhile, here is a new patch with the typo from #51 fixed.

Status: Needs review » Needs work

The last submitted patch, unpublished-comment-1266306-58.patch, failed testing.

droplet’s picture

Status: Needs work » Needs review
StatusFileSize
new15.08 KB

I think this patch goes too deep now. Let me fix the test cases and clean up the old code.

Some code has been removed during the time. Here is the updated version. No interdiff provided since the old patch #46 is too simple and almost every line has a new change now.

Please review it again. Thanks All.

star-szr’s picture

Assigned: benjf » Unassigned
Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch no longer applies and needs a reroll.

larowlan’s picture

  1. +++ b/core/modules/comment/comment.module
    @@ -896,12 +901,20 @@ function comment_links(Comment $comment, EntityInterface $node) {
    +        'query' => array('token' => drupal_get_token("comment/{$comment->id()}/unpublish")),
    

    drupal_get_token is deprecated

  2. +++ b/core/modules/comment/lib/Drupal/comment/CommentAccessController.php
    @@ -35,10 +35,13 @@ protected function checkAccess(EntityInterface $entity, $operation, $langcode, A
    +        return user_access('administer comments', $account);
    

    user_access id Deprecated

ajits’s picture

Status: Needs work » Needs review
StatusFileSize
new15.03 KB

Re-rolling the patch from #60.

Status: Needs review » Needs work

The last submitted patch, 1266306-comment_publishing_links-63.patch, failed testing.

jibran’s picture

Issue tags: -Needs reroll
+++ b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php
@@ -87,13 +87,13 @@ public static function create(ContainerInterface $container) {
+    if (!isset($token) || !drupal_valid_token($token, 'comment/' . $comment->id() . '/publish')) {

@@ -108,6 +108,31 @@ public function commentApprove(Request $request, CommentInterface $comment) {
+    if (!isset($token) || !drupal_valid_token($token, 'comment/' . $comment->id() . '/unpublish')) {

we can use $this->csrfToken->validate().

ajits’s picture

Assigned: Unassigned » ajits
Issue tags: +Needs reroll
ajits’s picture

Issue tags: -Needs reroll

Don't know where the tag came from.

ajits’s picture

Issue tags: +Needs reroll

Patch #63 no longer applies.

droplet’s picture

Issue tags: -Needs reroll

see #65, more than reroll

durgeshs’s picture

The last submitted patch, 37: unpublished-comment-1266306-37.patch, failed testing.

droplet’s picture

Assigned: ajits » Unassigned
Issue summary: View changes
devin carlson’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update
StatusFileSize
new35.75 KB

An updated patch that renames the administration paths, test methods, access operations, etc and adds an "unpublish link" Views field for consistency but continues to leave the user-facing text alone per #32.

This could be split into multiple issues but I've included a single patch per #28.

Status: Needs review » Needs work

The last submitted patch, 73: 1266306-comment_publishing_links-73.patch, failed testing.

ohthehugemanatee’s picture

Status: Needs work » Needs review

Rerolled the patch (CommentAccessControl.php changed to CommentAccessControlHandler.php) so it applies cleanly again. Cleared caches and it works as advertised:

* comment creation is unaffected
* comment "publish" link is visible with the new URL, comment/x/publish
* uses the newly renamed comment.publish route
* comment "unpublish" link is visible with URL comment/x/unpublish
* it does actually publish and unpublish.

This is a big patch though, so it could use some more eyeballs.

ohthehugemanatee’s picture

StatusFileSize
new35.76 KB

I thought it might be nice to actually attach the updated patch lol

botris’s picture

Issue tags: +Amsterdam2014

Reviewing this now

botris’s picture

Issue tags: -Novice
StatusFileSize
new48.94 KB

Initial roll gave 7 rejects.
Re-rolled the patch. It gave 7 conflict messages, which where all resolved manually.
Needs a new review.
Removed Novice tag as it's quite a big patch.

Status: Needs review » Needs work

The last submitted patch, 79: 1266306-comment_publishing_links-79.patch, failed testing.

ohthehugemanatee’s picture

Status: Needs work » Needs review
StatusFileSize
new49 KB
new1.76 KB

This patch failed testbot because it couldn't install...

* CommentStorageInterface has public method updateEntityStatistics, so CommentStorage (which extends CommentStorageInterface) has to have that method, too. I added it as an empty function, because comments don't get to have comments on them. Not 100% sure if this is the right thing to do.

* It also calls undefined method ConfigEntityType::isFieldable a couple of times in comment.views.inc. This was removed in #2100343: Remove 'fieldable' key in entity definitions in favour of 'field_ui_base_route', so I replaced it with $entity_type->isSubclassOf('\Drupal\Core\Entity\ContentEntityInterface') as recommended in the change record (https://www.drupal.org/node/2346455).

It installs locally now. Submitting for testbot to give it a try.

Status: Needs review » Needs work

The last submitted patch, 81: 1266306-comment_publishing_links-81.patch, failed testing.

The last submitted patch, 81: 1266306-comment_publishing_links-81.patch, failed testing.

The last submitted patch, 81: 1266306-comment_publishing_links-81.patch, failed testing.

ohthehugemanatee’s picture

Re-submitting because testbot is dying on too many MySQL connections... that's a testbot problem AFAIK. Someone correct me if I'm wrong!

The last submitted patch, 81: 1266306-comment_publishing_links-81.patch, failed testing.

The last submitted patch, 81: 1266306-comment_publishing_links-81.patch, failed testing.

ohthehugemanatee’s picture

Yay! Real test failures! :D I'll work on these...

ohthehugemanatee’s picture

So now it failed because of change record https://www.drupal.org/node/2337377 from Sept 17, introducing \Drupal\Core\Access\AccessResultInterface . I've got that addressed in a local copy, still working on testing errors in CommentAnonymousTest and CommentAdminTest. It looks like more issues with the same change. Will post with progress once I get it testing green!

ohthehugemanatee’s picture

StatusFileSize
new54.56 KB
ohthehugemanatee’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 94: 1266306-comment_publishing_links-94.patch, failed testing.

ohthehugemanatee’s picture

Status: Needs work » Needs review
StatusFileSize
new54.61 KB

Failed patching because of updates to CommentViewBuilder from #2348547: CommentViewBuilder should use static where possible, subclassing is currently too painful.

This patch has gotten enormous, and entails a renaming of the action from "approve" to "publish". That means that any time a commit affects Comment module, it risks breaking the patch. :|

Status: Needs review » Needs work

The last submitted patch, 97: 1266306-comment_publishing_links-97.patch, failed testing.

droplet’s picture

Status: Needs work » Needs review
StatusFileSize
new39.06 KB

@see what the bot say

droplet’s picture

StatusFileSize
new29.64 KB

Nice #99 is passed. Here's trying to remove irrelevant code, we focus on adding the Unpublished link only.

ohthehugemanatee’s picture

@droplet - thanks for the re-test!

Can you post an interdiff please? It's hard to see the changes you made otherwise.

droplet’s picture

Issue tags: -Needs backport to D7
StatusFileSize
new27.21 KB

Sure, here is it. Thanks :)

ohthehugemanatee’s picture

In stripping out the other code, we lose some of the backend instances of "approved" language that we earlier decided to change to "published". New patch here that adds some of those back.

Here's my thinking on the language:

* comments have a status of "published" or "unpublished"
* the human process of reviewing unpublished comments is "approval"
* The action taken to a comment during approval is "publishing". Comments which do not pass approval are left "unpublished".

I wanted to make it even more consistent, but there are some cases where the language just has to describe what the human is doing (approval). ie the message "Your comment has been queued for review by site administrators and will be published after approval." perfectly describes what is going on.

The most visible remaining use of "approval" language is in the permission "Skip comment approval". This still seems appropriate to me. The only alternative I can think of is "Publish comments on submission", which is more awkward IMO. Otherwise it's just in test comments, where we could actually use either term and accurately describe what's going on.

Status: Needs review » Needs work

The last submitted patch, 103: 1266306-comment_publishing_links-103.patch, failed testing.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

klemendev’s picture

Is anyone aware of any contrib module adding such a functionallity for D8/D9?

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

bhanu951’s picture

Version: 9.5.x-dev » 10.1.x-dev
Issue tags: +Needs reroll

Needs reroll of patch for 10.1.x version.

sahil.goyal’s picture

StatusFileSize
new37.21 KB
new54.13 KB

As seen that latest patch is not compatible with the current version 10.1.x so i reroll the patch for the current version and made it compatible with, also attaching the reroll_diff along.

sahil.goyal’s picture

Status: Needs work » Needs review
sahilgidwani’s picture

Status: Needs review » Needs work
StatusFileSize
new29.66 KB

I applied patch but it throws following error, I have attached screenshot for the same.
Fatal error: Class Drupal\comment\CommentStorage contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\comment\CommentStorageInterface::updateEntityStatistics) in /var/www/html/core/modules/comment/src/CommentStorage.php on line 26

nikhil_110’s picture

StatusFileSize
new37.9 KB
new517.17 KB
new421.42 KB

Attached patch against Drupal 10.1.x and Address #121 Comment.
also Some deprecated functions have changed and been removed..

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

manishsaharan’s picture

Status: Needs work » Needs review
StatusFileSize
new32.5 KB
new32.5 KB

Removed whitespace errors and Re rolled patch with 11.x.

borisson_’s picture

Status: Needs review » Needs work
bhanu951’s picture

bhanu951’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs screenshots

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.