Check if we still need the config parameter "developermode"

Bug #1835681 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Lisa Seeto

Bug Description

There is the config.php parameter "developermode". It says in /lib/config-defaults.php:

 * @global int|bool $cfg->developermode Developer mode
 * When set, the following things (among others) will happen:
 *
 * * 'debug.css' will be included on each page. You can edit this file to add
 * debugging CSS at your discretion
 * * the unpacked version of MochiKit will be used
 *
 * These options are a performance hit otherwise, enable when you are
 * developing for Mahara
 */
$cfg->developermode = false;
// $cfg->developermode = DEVMODE_DEBUGCSS | DEVMODE_UNPACKEDJS;

---

It would need to be checked what "among others" is. We are not using debug.css and Mochikit has been removed. Before we get rid of the parameter though, it would need to be checked if removing it impacts anything else.

Once the analysis is available, we can make a decision.

Tags: bite-sized
Changed in mahara:
milestone: 19.10.0 → 20.04.0
Changed in mahara:
milestone: 20.04.0 → none
Changed in mahara:
assignee: nobody → Lisa Seeto (lisaseeto)
Lisa Seeto (lisaseeto)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Lisa Seeto (lisaseeto) wrote :

From what I can tell, enabling $cfg->developermode will only happen when not in production mode and it seems to only have affected whether to include unpacked MochiKit in the site and also whether to include debug.css in the site. Despite the comment including "among others" I couldn't find any other areas affected by this setting.

Revision history for this message
Robert Lyon (robertl-9) wrote :

That analysis is correct Lisa. We should just remove those DEEVMODE_ options as they don't do anything anymore for the mochikit part (as it is gone) and if people want special devmode css they can add it to their css/sass files rather than having a dedicated htdocs/theme/debug.css file

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/11346

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11346
Committed: https://git.mahara.org/mahara/mahara/commit/33f1dce0495276a92dcb56e8d739e380aedd395d
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 33f1dce0495276a92dcb56e8d739e380aedd395d
Author: Lisa Seeto <email address hidden>
Date: Thu Oct 8 11:22:10 2020 +1300

Bug 1835681: Check if we still need the config parameter "developermode"

- removed all references related to developermode

Change-Id: Iffa362d6f273445dc7be41a654e086a4e289bcee
Signed-off-by: Lisa Seeto <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "20.10_STABLE" branch: https://reviews.mahara.org/11370

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11370
Committed: https://git.mahara.org/mahara/mahara/commit/0c273d78dfb5dbbf2b33cbbefe7cd1b518fe604b
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.10_STABLE

commit 0c273d78dfb5dbbf2b33cbbefe7cd1b518fe604b
Author: Lisa Seeto <email address hidden>
Date: Thu Oct 8 11:22:10 2020 +1300

Bug 1835681: Check if we still need the config parameter "developermode"

- removed all references related to developermode

Change-Id: Iffa362d6f273445dc7be41a654e086a4e289bcee
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 33f1dce0495276a92dcb56e8d739e380aedd395d)

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 20.10.0
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.