View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010330 | mantisbt | bugtracker | public | 2009-04-15 00:58 | 2009-06-23 15:26 |
Reporter | dhx | Assigned To | dhx | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.2.0rc1 | ||||
Summary | 0010330: Remove all hardcoded enum levels from within Mantis code | ||||
Description | I noticed in a recent commit http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=f6d71ff36607383a7123e6c2f9a5b1e9f64349ab that when a new bug is reported, some fields are set to hardcoded default values (numerical enum levels). These would be best replaced with new configuration options which are similar in nature to the existing $g_bug_submit_status option. The changes need to occur in multiple parts of the Mantis code and not just in the example I listed above. I'm planning to provide a patch for this soon. | ||||
Tags | No tags attached. | ||||
parent of | 0003973 | closed | dhx | "Reporter effectiveness" on summary calculated wrongly in case of using custom-severity attributes |
parent of | 0004457 | closed | dhx | Add $g_default_bug_reproducibility |
parent of | 0003820 | closed | dhx | default value management |
parent of | 0010597 | closed | dhx | Remove hardcoded use of ADMINISTRATOR constant |
parent of | 0010008 | closed | dhx | Default resolution value should be configurable |
parent of | 0008137 | closed | dhx | Custom constants do not work |
has duplicate | 0006831 | closed | dhx | Hard-Coded NEW_ constant usage |
I've got a large "10330" branch at git://git.mantisforge.org/mantisbt/dhx.git which removes all hardcoded enum levels from within the Mantis code. It also changes the names of constants so for example, NEW_ is now STATUS_NEW and HIGH is now PRIORITY_HIGH. There are a bunch of new configuration options which are required to handle the possibility of people using their own custom enum fields. Quite a few bugs should also have been fixed in the process. |
|
Feature committed to master branch. |
|
MantisBT: master 16677b02 2009-06-12 14:03 Details Diff |
Merge commit 'dhx/rm-hardcoded-enum' into enums Fixed a few whitespace issues. <span class="signoff">Signed-off-by: John Reese <jreese@leetcode.net></span> |
Affected Issues 0010330 |