Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3239

Block site plugins are re-loaded twice when performing a PTR

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: DEV backlog
    • Fix Version/s: None
    • Component/s: Blocks, Site add-ons
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Download the block_stupid_no_displaydata.zip from MOBILE-3140 and install it to a Moodle site.
      2. In site administration go to Appearance / Default dashboard settings.
      3. Click 'Blocks editing on' and add an instance of the 'Proportion of site which is stupid' block to the top of the page.
      4. Click "Reset Dashboard for all users".
      5. In the mobile app, connect to your site. 
      6. Go to the Dashboard tab. Check it includes the stupid block at the start of the page, which contains a pie chart showing a random percentage of stupid and not stupid.
      7. Perform a PTR. Check that the pie chart is only reloaded once and now it displays different data. Please notice that these values are random, so it could happen that the new values are the same as the old ones. If that happens, please perform the PTR again.
      Show
      This issue only needs to be tested in 1 device. Download the block_stupid_no_displaydata.zip from  MOBILE-3140 and install it to a Moodle site. In site administration go to Appearance / Default dashboard settings. Click 'Blocks editing on' and add an instance of the 'Proportion of site which is stupid' block to the top of the page. Click "Reset Dashboard for all users". In the mobile app, connect to your site.  Go to the Dashboard tab. Check it includes the stupid block at the start of the page, which contains a pie chart showing a random percentage of stupid and not stupid. Perform a PTR. Check that the pie chart is only reloaded once and now it displays different data. Please notice that these values are random, so it could happen that the new values are the same as the old ones. If that happens, please perform the PTR again.
    • Sprint:
      Moodle App 3.8.1

      Description

      When the PTR starts, CoreSitePluginsBlockComponent refreshes the content immediately. However, when the dashboard itself is reloaded the component is instantiated again so the block is loaded again. The WS call is only done once, but it looks weird that the block is loaded twice.

      This can be reproduced using the plugin in MOBILE-3140.

        Attachments

          Activity

            People

            • Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Juan Leyva
              Tester:
              Isabel Renedo Rouco
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: