xiaohui-sun closed pull request #3596: [TE] rootcause - pin predicted baseline 
time offsets to PT too
URL: https://github.com/apache/incubator-pinot/pull/3596
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
 
b/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
index 48d6317f57..c48b8d4a8a 100644
--- 
a/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
+++ 
b/thirdeye/thirdeye-frontend/app/pods/services/rootcause-anomalyfunction-cache/service.js
@@ -1,11 +1,11 @@
 import Service from '@ember/service';
 import {
   toFilters,
+  makeTime
 } from 'thirdeye-frontend/utils/rca-utils';
 import { checkStatus } from 'thirdeye-frontend/utils/utils';
 import fetch from 'fetch';
 import _ from 'lodash';
-import moment from 'moment';
 
 export default Service.extend({
   timeseries: null, // {}
@@ -91,8 +91,8 @@ export default Service.extend({
 
   _fetchSlice(urn, context) {
     const functionId = urn.split(':')[2];
-    const startDateTime = moment(context.analysisRange[0]).utc().format();
-    const endDateTime = moment(context.analysisRange[1]).utc().format();
+    const startDateTime = makeTime(context.analysisRange[0]).utc().format();
+    const endDateTime = makeTime(context.analysisRange[1]).utc().format();
     const dimensionJsonString = 
encodeURIComponent(JSON.stringify(this._toFilterMapCustom(toFilters(urn))));
 
     const url = 
`/dashboard/anomaly-function/${functionId}/baseline?start=${startDateTime}&end=${endDateTime}&dimension=${dimensionJsonString}&mode=offline`;


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to