View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011742 | mantisbt | bugtracker | public | 2010-04-02 09:11 | 2015-01-25 18:17 |
Reporter | zekeddd | Assigned To | dregad | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0 | ||||
Target Version | 1.2.19 | Fixed in Version | 1.2.19 | ||
Summary | 0011742: Sort bug notes by date, not by ID | ||||
Description | I understand, that in the most cases both these sortings give the same result, but not in mine mod. Anyway, I think that sorting by date is more applicable here. core/bugnote_api.php (line ~426) replace with
| ||||
Tags | No tags attached. | ||||
Actually, I can't see why we are sorting by id rather than date. |
|
I can suggest that may be it was done to use primary key for sorting... But I think it's not difficult to create additional key for date_submitted field. Hope this will be done. Thanks! |
|
there is already a config option for notes ordered by ASC or DESC. |
|
MantisBT: master-1.2.x c951d69b 2015-01-22 07:06 Details Diff |
Sort bugnotes by date_submitted Previously they were sorted by id. The date_submitted column is currently not indexed. I tested the new code both with and without adding an index; the explain plan was identical, and I did not measure any meaningful difference in query execution time, even for bugs having a large number of bugnotes (tested with 0004286 which has 648 bugnotes). Fixes 0011742 |
Affected Issues 0011742 |
|
mod - core/bugnote_api.php | Diff File | ||
MantisBT: master 93d31593 2015-01-22 07:06 Details Diff |
Sort bugnotes by date_submitted Previously they were sorted by id. The date_submitted column is currently not indexed. I tested the new code both with and without adding an index; the explain plan was identical, and I did not measure any meaningful difference in query execution time, even for bugs having a large number of bugnotes (tested with 0004286 which has 648 bugnotes). Fixes 0011742 |
Affected Issues 0011742 |
|
mod - core/bugnote_api.php | Diff File |