MantisBT: master 356b6427

Author Committer Branch Timestamp Parent
dregad dregad master 2024-10-22 08:32 master e6c6697e
Affected Issues  0034881: Issue Trends data buckets should be fixed for a given period type
Changeset

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

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