Abstract

Commenting allows registered users of a wiki to discuss a page's contents.

Goals

  • Facilitate discussion of a page's contents

Requirements

  1. Do not allow HTML tags (yet)
  2. Can only be made by registered users
  3. Can be deleted by the commenter and any administrator
    1. When deleted, a placeholder comment is put into the comment list to prevent the "jump" of comment numbers
  4. Can only be edited by commenter
    1. When edited, the edited timestamp is displayed
  5. Appear in chronological order (oldest first)
  6. Only show X most recent comments, where X is defined by $wgCommentCount in Default/LocalSettings.php
  7. User has the option of viewing all comments on a page
  8. All functionality must work without Javascript being enabled

Configuration

Config Key Default Value Description Addtl notes
$wgCommentCount 15 Determines number of comments to display on initial page load Setting to '0' disables commenting on the UI
$wgCommentCountAll 10000 Determines the number of comments to show when requesting 'ALL' comments A high number is set in case there's a ridiculous number of comments so there's no timeouts from API or mySQL


Enhancements for Lyons

Enhance the usability and discoverability of comments by allowing DekiScripts and the front end to more easily find relevant comments.

  • (implemented) Return comments from a page as well as its descendant pages
  • Return comments matching a text substring
  • (implemented) Return comments from a given user
    • Perhaps extend this to allow a list of users or usernames
    • Comments from members of group(s) ??
  • (implemented) Change default sort to date.created descending
  • (implemented) Output using atom

API enhancements

  • GET: pages/{id}/comments

    • New query params:

      • ?depth: Use 'infinity' to return comments from all descendant pages. (default: 0)

      • ?postedbyuserid: Only return comments posted by the id of a user
      • ?search: Comments containing the text
      • ?format: xml or atom. (default: xml)

Permission system

Enforce new operation "COMMENT".

  • Upgrade: Any role with operation READ gets COMMENT as well to preserve current behavior?

 

Tag page (Edit tags)

    Files 2

    FileSizeDateAttached by 
     comment-1.png
    No description
    19.32 kB00:04, 26 Jun 2007RoyKActions
     comment-2.png
    No description
    22.28 kB00:04, 26 Jun 2007RoyKActions
    Viewing 7 of 7 comments: view all
    Is it possible to keep Commenting optional, something that an admin might control?
    Posted 10:01, 15 Aug 2007
    Couple of things:
    1) will search be done against lucene or the database? If we hit the db directly, we should index cmnt_content (which is a text column :( )
    2) if search by user, we need to index cmnt_poster_user_id
    3) at some point we really need the API to start caching feeds
    Posted 17:58, 2 Dec 2008
    Perhaps it's time to start adding comments to lucene--probably not in this release as it's not a hugely requested feature. Just checked in search by userid.
    Posted 00:51, 4 Dec 2008
    I would like to have comment add to lucene index as soon as possible. I emulate a forum and a blog inside deki, without this option is hard to display latest comment in a section. Have a list of last comments inserted on a section is very important. edited 00:35, 6 Jan 2009
    Posted 00:35, 6 Jan 2009
    I believe that's already the case in the nightly build of Lyons at trunk.mindtouch.com. Create an account and give it a shot.
    Posted 06:52, 6 Jan 2009
    Is it possible to alter the order in which comments are displayed? Currently they are displayed in chronological order. Reverse chronological would be a very useful option.
    Posted 23:13, 2 Mar 2009
    I second the ability to sort the comments in reverse chronological order. Some of my users have noted that they would like to be able to see the latest comment at the top instead of scrolling down to the bottom of the page, particularly if there are a lot of comments.
    Posted 15:21, 3 Mar 2009
    Viewing 7 of 7 comments: view all
    You must login to post a comment.