Make project size calculation optional #3530
Labels
community request
enhancement
This is functionality that builds upon existing functionality.
question
Milestone
We noticed while trying out one of the nightly builds, that the
project.rb
will try to calculate the size of the project directory usingdu -s
ondemand/apps/dashboard/app/models/project.rb
Lines 188 to 193 in 1a35d7e
This should be configurable, since it would put unnecessary load on the file system, and delay the response to the user unnecessarily, if the file system where the project directory resides is under heavy load, or the project directory is very large.
I suggest adding a boolean configuration item, e.g.,
calculate_project_size: false
(by default, is my suggestion), and then sites can enable it at will, by changing the configuration.The text was updated successfully, but these errors were encountered: