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

Add ability to mark all topics read in recent activity

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 Larks
    • Fix Version/s: 1.5 Larks
    • Labels:
      None
    • Sprint:
      1.5 Larks

      Description

      As a user I'd like to have ability to mark all topics as read, not only topics for particular branches.
      Acceptance Criteria:

      • A link should appear right above pagination buttons in recent activity and on top of main page.
      • After pressing the link, all topics in all branches are marked as read.
      • This shouldn't take more than 2 secs.

      Tech details:

      • We're having a LAST_MARKED_ALL_AS_READ column in JC_USER table which is filled with now() when user presses it.
      • When pressing the Mark All As Read all records from LAST_READ_POST_INDEX are removed since we can depend upon column in JC_USER.
      • When we show the topics, we're first checking whether their last created post date happened before than LAST_MARKED_ALL_AS_READ,
        • If yes, then those topics have been read.
        • If topic was created after marking everything read, then we should check LAST_READ_POST_INDEX for the records
      • We still use LAST_READ_POST_INDEX and add record to it when user reads new posts of the topic.

        Attachments

        1. without-paginator.png
          256 kB
          Anuar Nurmakanov
        2. with-paginator.png
          249 kB
          Anuar Nurmakanov

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  tigressap Alyona
                  Reporter:
                  tigressap Alyona
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 15h 40m
                    15h 40m

                      Structure Helper Panel