View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0034881 | mantisbt | reports | public | 2024-10-20 19:35 | 2026-08-21 19:27 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0034881: 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. | ||||
| Tags | No tags attached. | ||||
|
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. |
|
|
MantisBT: master 356b6427 2024-10-22 08:32 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 | ||