Update timebox report related specs
What does this MR do and why?
Related to #381879
The MR updates some RSpecs that test timeseries generation for burnup/down chart.
Background
The burndown chart (sample: https://gitlab.com/groups/gitlab-org/-/milestones/98#tab-issues) shown in a milestone/iteration report is generated using resource event records:
- Issue 1 was closed (
ResourceStateEvent
) - Issue 1 was added to Milestone A (
ResourceMilestoneEvent
) - Issue 2 was added to Milestone A (
ResourceMilestoneEvent
)
Using the resource event records, it is possible to construct a timeseries used to plot a burnup/down chart for a milestone/iteration:
Date | total weight in milestone | total completed issues |
---|---|---|
Mar 28 | 3 | 0 |
Mar 29 | 5 | 1 |
Problem
Note that the resource event records, by definition, record past events:
- "Something took place on Date X"
✅ - "Something will take place on a future date Y"
❌
The existing RSpecs use resource event records that are timestamped to future dates. To make them more realistic, this MR is updating the specs to create and use resource events that don't use future dates.
Edited by euko