Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66617

Starring a discussion refreshes the page even before the AJAX request has completed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.1
    • Fix Version/s: None
    • Component/s: Forum
    • Affected Branches:
      MOODLE_37_STABLE
    • Story Points:
      1

      Description

      To reproduce:

      1. Go to a forum
      2. Create a discussion
      3. Open your browser's dev tools (this was observed in Chrome) and open the Network tab.
      4. Throttle the connection to "Slow 3G"
      5. Star the discussion
      6. Expected: When the page reloads, you should see the discussion as starred.
      7. Actual: The page reloads, but the discussion is not yet starred. Reloading the page one more time then actually renders the discussion as starred.

      Acceptance criteria:

      • js should wait before reloading the page so we always see the star/unstar correctly

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jpataleta Jun Pataleta
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

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