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 2021/01/07 19:35:46 UTC

[GitHub] [incubator-pinot] tejasajmera commented on a change in pull request #6421: [TE]frontend - Add support for Group Constituents and Entity Metric components

tejasajmera commented on a change in pull request #6421:
URL: https://github.com/apache/incubator-pinot/pull/6421#discussion_r553542739



##########
File path: thirdeye/thirdeye-frontend/app/pods/components/composite-anomalies/component.js
##########
@@ -78,9 +119,19 @@ export default Component.extend({
      * @param {Number} index
      *   The index of the breadcrumb that was clicked
      */
-    onBreadcrumbClick({ isRoot = false }, index) {
+    onBreadcrumbClick({ id, isRoot = false }, index) {
       this.set('breadcrumbList', this.breadcrumbList.splice(0, index + 1));
 
+      if (isRoot) {
+        const { output } = parseRoot(id, this.anomalies);
+
+        this.set('data', output);
+      } else {
+        const { output } = parseSubtree(id, this.anomalies);
+
+        this.set('data', output);
+      }
+

Review comment:
       Done.




----------------------------------------------------------------
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