Fix on-call schedule timeline width calculation
What does this MR do?
Fixes an issue with the oncall width timeline.
The display of shifts is based on the width of the timeline. This data is being measured incorrectly, and this undermines the position and size of the displayed shifts.
Where we should be measuring the width of the displayed area, instead we are measuring the width of the whole timeline, including the rotation names to the left of the displayed area. This MR fixes that, ensuring the width calculation is correct.
This was introduced in the timeline refactor: !58204 (merged) / !58322 (merged) / #324608 (closed)
issue here: #327300 (closed)
Screenshots (strongly suggested)
before | after |
---|---|
shift data for the rotation above |
---|
Does this MR meet the acceptance criteria?
Conformity
-
📋 Does this MR need a changelog?-
I have included a changelog entry. -
I have not included a changelog entry because _____.
-
- [n/a] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [n/a] Database guides
- [n/a] Separation of EE specific content
Availability and Testing
- [n/a] Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. Specs will be added in this MR
-
Tested in all supported browsers - [n/a] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
- [n/a] Label as security and @ mention
@gitlab-com/gl-security/appsec
- [n/a] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
- [n/a] Security reports checked/validated by a reviewer from the AppSec team