Skip to content

Feat: allow grid to start at week beginning

What does this MR do?

A small MVC for #322938 (closed) to ensure the weekly grid begins at the start of the current week.

To handle this we:

  • Add a new date utility function to generate the start of a week from a passed date
  • Use this new utility inside the oncall schedule wrapper against the current date.

How/What to test

This feature is behind the feature flag oncall_schedules_mvc and the minimal license is GitLab Premium 👀

To check Enable the feature flag:

Screenshots (strongly suggested)

Start of week === 8th of March

Screenshot_2021-03-08_at_06.11.30

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

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:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team

Related to #322938 (closed)

Edited by David O'Regan

Merge request reports