Commit ccd1399f authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'tr-oncall-schedule-reduce-daily-query' into 'master'

Reduce query timespan to one day in schedule daily view

See merge request gitlab-org/gitlab!58974
parents 2cfe87e3 af9b2096
......@@ -69,7 +69,10 @@ export default {
variables() {
this.timeframeStartDate.setHours(0, 0, 0, 0);
const startsAt = this.timeframeStartDate;
const endsAt = nWeeksAfter(startsAt, 2);
const endsAt =
this.presetType === this.$options.PRESET_TYPES.WEEKS
? nWeeksAfter(startsAt, 2)
: nDaysAfter(startsAt, 1);
return {
projectPath: this.projectPath,
......
---
title: Reduce query timespan to one day in schedule daily view
merge_request: 58974
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment