Merge pull request #36735 from rhcs-dashboard/fix-this-week-endpoint

mgr/dashboard: remove "This week/month/year" and "Today" time stamps of Grafana in dashboard

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
This commit is contained in:
Lenz Grimmer 2020-08-21 11:10:18 +02:00 committed by GitHub
commit 218d2df473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,10 +72,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
name: $localize`Yesterday`,
value: 'from=now-1d%2Fd&to=now-1d%2Fd'
},
{
name: $localize`Today`,
value: 'from=now%2Fd&to=now%2Fd'
},
{
name: $localize`Today so far`,
value: 'from=now%2Fd&to=now'
@ -96,10 +92,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
name: $localize`Previous week`,
value: 'from=now-1w%2Fw&to=now-1w%2Fw'
},
{
name: $localize`This week`,
value: 'from=now%2Fw&to=now%2Fw'
},
{
name: $localize`This week so far`,
value: 'from=now%2Fw&to=now'
@ -112,10 +104,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
name: $localize`Previous month`,
value: 'from=now-1M%2FM&to=now-1M%2FM'
},
{
name: $localize`This month`,
value: 'from=now%2FM&to=now%2FM'
},
{
name: $localize`This month so far`,
value: 'from=now%2FM&to=now'
@ -140,10 +128,6 @@ export class GrafanaComponent implements OnInit, OnChanges {
name: $localize`Previous year`,
value: 'from=now-1y%2Fy&to=now-1y%2Fy'
},
{
name: $localize`This year`,
value: 'from=now%2Fy&to=now%2Fy'
},
{
name: $localize`This year so far`,
value: 'from=now%2Fy&to=now'