This is an automated email from the ASF dual-hosted git repository. jihao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push: new 9a7dddc [TE] frontend - harleyjj/login - add AuthenticatedRouteMixin to Anomalies and Alerts Routes (#4297) 9a7dddc is described below commit 9a7dddc0895a3b2419792d96558f80bbc8cf45bf Author: Harley Jackson <hjack...@linkedin.com> AuthorDate: Mon Jun 10 13:32:47 2019 -0700 [TE] frontend - harleyjj/login - add AuthenticatedRouteMixin to Anomalies and Alerts Routes (#4297) --- thirdeye/thirdeye-frontend/app/pods/anomalies/route.js | 3 ++- thirdeye/thirdeye-frontend/app/pods/manage/alerts/index/route.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/thirdeye/thirdeye-frontend/app/pods/anomalies/route.js b/thirdeye/thirdeye-frontend/app/pods/anomalies/route.js index 9701ca5..e2f3c6a 100644 --- a/thirdeye/thirdeye-frontend/app/pods/anomalies/route.js +++ b/thirdeye/thirdeye-frontend/app/pods/anomalies/route.js @@ -9,6 +9,7 @@ import { getAnomalyFiltersByAnomalyId, anomalyResponseObjNew } from 'thirdeye-frontend/utils/anomaly'; import _ from 'lodash'; +import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; const start = moment().subtract(1, 'day').valueOf(); const end = moment().valueOf(); @@ -18,7 +19,7 @@ const queryParamsConfig = { replace: false }; -export default Route.extend({ +export default Route.extend(AuthenticatedRouteMixin, { // Make duration service accessible durationCache: service('services/duration'), diff --git a/thirdeye/thirdeye-frontend/app/pods/manage/alerts/index/route.js b/thirdeye/thirdeye-frontend/app/pods/manage/alerts/index/route.js index f22ecf3..3426388 100644 --- a/thirdeye/thirdeye-frontend/app/pods/manage/alerts/index/route.js +++ b/thirdeye/thirdeye-frontend/app/pods/manage/alerts/index/route.js @@ -5,6 +5,7 @@ import { get, getWithDefault } from '@ember/object'; import { inject as service } from '@ember/service'; import { checkStatus, formatYamlFilter } from 'thirdeye-frontend/utils/utils'; import { powerSort } from 'thirdeye-frontend/utils/manage-alert-utils'; +import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; // Maps filter name to alert property for filtering const filterToPropertyMap = { @@ -15,7 +16,7 @@ const filterToPropertyMap = { metric: 'metric' }; -export default Route.extend({ +export default Route.extend(AuthenticatedRouteMixin, { // Make duration service accessible durationCache: service('services/duration'), --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org