View Issue Details

IDProjectCategoryView StatusLast Update
0034881mantisbtreportspublic2026-08-21 19:27
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0034881: Issue Trends data buckets should be fixed for a given period type
Description

Currently, the buckets' size varies depending on number of days being displayed in the report. As a result, the reports are not comparable.

This is quite obvious when selecting a "to date" period (e.g. YTD, this quarter, this month, etc.) and today's date is early in the period. For example, selecting this quarter on Oct 21st, we get daily buckets as expected, but the same report shows hourly buckets instead when executed on Oct. 3rd.

For a given period, data should always be aggregated in the same way.

TagsNo tags attached.

Relationships

related to 0025681 resolveddregad Problem with date range filter in MantisGraph issues_trend_page.php 

Activities

dregad

dregad

2025-02-25 20:29

developer   ~0069919

Issue resolved by mistake due to pushing a work-in-progress branch to the mantisbt repository instead of my own fork. Sorry about the noise.

dregad

dregad

2026-07-18 12:36

developer   ~0071306

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

Related Changesets

MantisBT: master 356b6427

2024-10-22 08:32

dregad


Details Diff
Define increment size (buckets) in Period class

Add $type attribute to store the period type.

The new get_bucket_size() method calculates the bucket size based on the
Period type, or the number of days between the Period's start and end
dates when type is arbitrary days.

Bucket durations are defined as class constants

Resolves the problem of varying bucket size for a given to-date period.

Fixes 0034881
Affected Issues
0034881
mod - plugins/MantisGraph/core/Period.php Diff File
mod - plugins/MantisGraph/pages/issues_trend_bycategory_table.php Diff File
mod - plugins/MantisGraph/pages/issues_trend_bystatus_table.php Diff File