You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/07/01 17:32:14 UTC

[GitHub] [incubator-pinot] akshayrai commented on a change in pull request #5607: [TE] frontend - harleyjj/alert-details - Align time picker on Alert O…

akshayrai commented on a change in pull request #5607:
URL: https://github.com/apache/incubator-pinot/pull/5607#discussion_r448514715



##########
File path: thirdeye/thirdeye-frontend/app/pods/components/alert-details/component.js
##########
@@ -1449,32 +1449,13 @@ export default Component.extend({
      * @method onRangeSelection
      * @param {Object} rangeOption - the user-selected time range to load
      */
-    onRangeSelection(timeRangeOptions) {
-      const {
-        start,
-        end,
-        value: duration
-      } = timeRangeOptions;
-
+    onRangeSelection(start, end) {
       const startDate = moment(start).valueOf();
       const endDate = moment(end).valueOf();
+
       //Update the time range option selected
       set(this, 'analysisRange', [startDate, endDate]);
       set(this, 'displayRange', [startDate, endDate]);
-      set(this, 'duration', duration);
-      // This makes sure we don't fetch if the preview is collapsed
-      if(get(this, 'showDetails') && get(this, 'dataIsCurrent')){
-        // With a new date range, we should reset the state of time series and anomalies for comparison
-        if (get(this, 'isPreviewMode')) {
-          this.setProperties({
-            anomaliesOld: [],
-            anomaliesOldSet: false,
-            anomaliesCurrent: [],
-            anomaliesCurrentSet: false
-          });
-        }
-        this._fetchAnomalies();
-      }

Review comment:
       Thanks




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org