Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-2073

Q&A: Create/Edit/Delete Comments

VotersWatchers
    XMLWordPrintable

    Details

      Description

      Creating comments
      As a user I’d like to be able to comment on questions and answers so I can ask for some additional information on them:

      • Given CREATE_POSTS permission user can see comments area with “Add comment“ text after each question and each answer.
      • Once cursor is placed to the comments area user should see the comment text area and buttons "Comment" and "Cancel".
      • When text of the comment is entered in the text field and the button "Comment" is pressed, the comment must be added below the corresponding question/answer if comment passed validation. Ctrl+Enter hot key must do the same.
      • Min comment length is 1 and max comment length is 5 000
      • The date of comment and its author should be displayed near the comment text.
      • Comments should be sorted by date (oldest to the newest ones) Should the comment be edited it still should be sorted by the date of creation, not the date of edit.
      • Comments must not up the topic in the topic list (recent activity, branch page, main page)
      • Comments should not be searchable (as for now)
      • Owner of the post must get notification on newly added comments

      Editing comments
      As a user I must have possibility to edit comments in order to be able to add new info to them or correct my mistakes:

      • Given EDIT_OWN_POSTS permission user can see Edit icon near the comments left by this user and is able to edit comment left by him.
      • Given EDIT_OTHER_POSTS permission user can see Edit icon near the comments left by other users and is able to edit comment left by other users.
      • Once user presses Edit icon he should be able to edit text previously left in the comment text field. Comment editing area should contain Save and Cancel buttons.
      • Once Save button is pressed, edited comment is saved and is shown in the same order with other comments as before the editing. Ctrl+Enter has the same results.
      • Once Cancel button is pressed all changes made in the dialog are not saved and comment is shown in the same order with other comments as before the editing.
      • User should be able to edit comment as many times as he wants.

      Deleting comments
      As a user I should have possibility to delete comments if they were made by mistake or I think they are not informative anymore:

      • Given DELETE_OWN_POSTS permission user can see Delete icon near the comments left by this user and is able to delete comment left by him.
      • Given DELETE_OTHER_POSTS permission user can see Delete icon near the comments left by other users and is able to delete comments left by other users.
      • Once user presses Delete icon he should see confirmation dialog with the text: “Delete this comment?” and buttons “Yes” and “No”
      • Once "Yes" button is pressed, the comment is deleted and is not shown to all users anymore. The order of all other comments should remain the same.
      • Technical Note: comments must NOT be removed from database - they must be marked as DELETED.

        Attachments

        1. Add_Comment_text.png
          44 kB
          Natalia Boryakova
        2. Hide_button.png
          30 kB
          Natalia Boryakova
        3. Show_button.png
          31 kB
          Natalia Boryakova

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  nata_ck Natalia Boryakova
                  Reporter:
                  nata_ck Natalia Boryakova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel