View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037319 | mantisbt | code cleanup | public | 2026年07月20日 13:54 | 2026年09月03日 19:04 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | tweak | Reproducibility | N/A |
| Status | resolved | Resolution | fixed | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037319: Duplicated code in MantisGraph plugin's graph_api.php | ||||
| Description | create_developer_resolved_summary() and create_developer_open_summary() functions are nearly identical, differing only by a condition in the SQL query where clause. Duplicated code should be factored out. | ||||
| Tags | No tags attached. | ||||
MantisBT: master 0e9e169c
2026年07月20日 13:50
Details Diff Remove duplicated code in graph_api.php
create_developer_resolved_summary() and create_developer_open_summary()
MantisGraph plugin functions are nearly identical, differing only by
a condition in the SQL query where clause.
This commit combines them into a single one, leveraging DbQuery to
dynamically build the SQL based on the summary type (open/resolved).
Fixes 0037319 Affected Issues
0037319
Powered by MantisBT 2.29.0-dev-master-e4ff7ef87
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance
Page execution time: 0.1680 seconds