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
          Add_Comment_text.png
          44 kB
        2. Hide_button.png
          Hide_button.png
          30 kB
        3. Show_button.png
          Show_button.png
          31 kB

          Issue Links

          Structure

          (does not include JC-2073)
          History

            Activity

            Hide
            jenkins Jenkins Bot added a comment -

            SUCCESS: Integrated in JC-UnitTests #2850
            JC-2073 Fixed remarks from QA (mixas.27: 5754195312cf0d83e4c4f1d2208bf40cb8b10394)

            Show
            jenkins Jenkins Bot added a comment - SUCCESS: Integrated in JC-UnitTests #2850 JC-2073 Fixed remarks from QA (mixas.27: 5754195312cf0d83e4c4f1d2208bf40cb8b10394 )
            Hide
            mixaS Mikhail Stryzhonak added a comment -

            Issue with inconsistent text for 50+ comments error message for Russian language and issue with remaining text in edit form leaved "as is" after discussion with Stanislav Bashkyrtsev.

            Show
            mixaS Mikhail Stryzhonak added a comment - Issue with inconsistent text for 50+ comments error message for Russian language and issue with remaining text in edit form leaved "as is" after discussion with Stanislav Bashkyrtsev .
            Hide
            jenkins Jenkins Bot added a comment -

            SUCCESS: Integrated in JC-UnitTests #2854
            JC-2073 Added cleaning validation errors after canceling comment (mixas.27: 38d636314d2abea134e6c89fc5dd27f11820b513)

            Show
            jenkins Jenkins Bot added a comment - SUCCESS: Integrated in JC-UnitTests #2854 JC-2073 Added cleaning validation errors after canceling comment (mixas.27: 38d636314d2abea134e6c89fc5dd27f11820b513 )
            Hide
            jenkins Jenkins Bot added a comment -

            SUCCESS: Integrated in JC-UnitTests #2855
            JC-2073 Fixed issue with toggling subscription link after leaving comment (mixas.27: 754735310ccd52e9c605da608bf7bce4ea756a7d)

            Show
            jenkins Jenkins Bot added a comment - SUCCESS: Integrated in JC-UnitTests #2855 JC-2073 Fixed issue with toggling subscription link after leaving comment (mixas.27: 754735310ccd52e9c605da608bf7bce4ea756a7d )
            Hide
            nata_ck Natalia Boryakova added a comment -

            Environment:
            JCommune 3.0.2855.7547353 (QA)
            Browsers: Chrome
            Test scenario:
            See Structure
            Tests result:
            All executed tests in Structure passed.

            Issue can be closed

            Show
            nata_ck Natalia Boryakova added a comment - Environment: JCommune 3.0.2855.7547353 (QA) Browsers: Chrome Test scenario : See Structure Tests result : All executed tests in Structure passed. Issue can be closed

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel