View Issue Details

IDProjectCategoryView StatusLast Update
0034041mantisbtreportspublic2024-09-29 13:15
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.27.0Fixed in Version2.27.0 
Summary0034041: MantisGraph: last resolved issue not computed in Issue Trends graph
Description

In MantisGraph plugin's Issue Trends graph, the count of resolved issues is incorrect, see attached screenshots.

TagsNo tags attached.
Attached Files

Activities

dregad

dregad

2024-03-13 14:21

developer   ~0068651

PR https://github.com/mantisbt/mantisbt/pull/1975

See attached the graph including the fix for the same data set as for the initial report.

fixed_resolved_issue_count.png (38,009 bytes)   
fixed_resolved_issue_count.png (38,009 bytes)   
dregad

dregad

2024-03-13 14:26

developer   ~0068654

Changing target to 2.27.0 as the fix relies on PHP 7.4 syntax for heredocs, and I can't be bothered to make 2 versions of the fix...

Related Changesets

MantisBT: master f109d15d

2024-03-13 14:13

dregad


Details Diff
Optimize create_cumulative_bydate() function

Until today, the function was executing simple SQL queries returning
atomic data, and PHP code had to loop over each row to compute the total
number of reported and resolved Issues.

This reports the effort to aggregate the data on the database server,
greatly simplifying the PHP code

It also fixes a bug where the last resolved issue was sometimes not
computed, resulting in an incorrect result set.

Fixes 0034041,0034042
Affected Issues
0034041, 0034042
mod - plugins/MantisGraph/core/graph_api.php Diff File