Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-7584

After reloading the page in the browser, the counter for the draft comments is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Low
    • N/A
    • 3.9.1, 3.10.3
    • None

    Description

      Summary

      In case the user reloads the page in the browser after submitting a draft comment, the comment count is incorrect.

      Steps to Reproduce

      1. Create a review
      2. Display a file in the opened review
      3. Click on a line in the opened file, the comment text area is displayed
      4. Enter a comment and select "Save as draft" (note that the comment counter is 0)
      5. Reload (e.g. by using F5 or the refresh button) the page (note that the comment counter is 1)
      6. Locate the previously added (as draft) comment and click on the "Post" link

      Expected Results

      1. The counter for the comments shows 1

      Actual Results

      1. The counter for the comments shows 2

      Notes

      If the comment is created directly (and not saved as draft), the problem does not occur.

      Workaround

      When the page is reloaded again after the draft comment has been posted, the comment counter shows the expected number (1).

      Attachments

        1. FE6341_draftCommentAfterReload.png
          FE6341_draftCommentAfterReload.png
          35 kB
        2. FE6341_draftCommentSaved.png
          FE6341_draftCommentSaved.png
          35 kB
        3. FE6341_postAComment.png
          FE6341_postAComment.png
          37 kB
        4. FE6341_postedComment.png
          FE6341_postedComment.png
          34 kB
        5. FE6341_secondReload.png
          FE6341_secondReload.png
          35 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ccurti Caterina Curti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: