← Back to team overview

mahara-contributors team mailing list archive

[Bug 1755329] [NEW] Working out folder size slows down opening of image block config

 

Public bug reported:

We added the fix for https://bugs.launchpad.net/mahara/+bug/1650980 so that we could know how much content a folder contained when viewing via Content -> Files
This was useful in helping one delete files to sort out quota problems.


But the problem is that bit of code is also used when displaying a filebrowser form in block config forms. And it slows down the opening/closing of the config.

We don't need to know about the folder / file size here so we should
avoid the slow db calls that work out the size when not on Content ->
Files page

** Affects: mahara
     Importance: High
     Assignee: Cecilia Vela Gurovic (ceciliavg)
         Status: In Progress

** Changed in: mahara
     Assignee: (unassigned) => Robert Lyon (robertl-9)

** Changed in: mahara
     Assignee: Robert Lyon (robertl-9) => (unassigned)

** Changed in: mahara
     Assignee: (unassigned) => Cecilia Vela Gurovic (ceciliavg)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1755329

Title:
  Working out folder size slows down opening of image block config

Status in Mahara:
  In Progress

Bug description:
  We added the fix for https://bugs.launchpad.net/mahara/+bug/1650980 so that we could know how much content a folder contained when viewing via Content -> Files
  This was useful in helping one delete files to sort out quota problems.

  
  But the problem is that bit of code is also used when displaying a filebrowser form in block config forms. And it slows down the opening/closing of the config.

  We don't need to know about the folder / file size here so we should
  avoid the slow db calls that work out the size when not on Content ->
  Files page

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1755329/+subscriptions


Follow ups