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 |
|
| mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
| mod - plugins/MantisGraph/pages/developer_graph.php | Diff File | ||