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

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

XMLWordPrintable

    • 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.
    • MOODLE_38_STABLE
    • Moodle App 3.8.1

      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.

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.