Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C4ED6200D33 for ; Wed, 8 Nov 2017 07:46:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C3774160BDA; Wed, 8 Nov 2017 06:46:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E31BA160BE0 for ; Wed, 8 Nov 2017 07:46:45 +0100 (CET) Received: (qmail 21528 invoked by uid 500); 8 Nov 2017 06:46:44 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 21516 invoked by uid 99); 8 Nov 2017 06:46:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 06:46:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EC7D8CF85E for ; Wed, 8 Nov 2017 06:46:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=twitter.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9aMKCaXf3esx for ; Wed, 8 Nov 2017 06:46:40 +0000 (UTC) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com [209.85.216.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B1D5D6349B for ; Wed, 8 Nov 2017 06:37:02 +0000 (UTC) Received: by mail-qt0-f175.google.com with SMTP id v41so2057352qtv.12 for ; Tue, 07 Nov 2017 22:37:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ploQNyadWuJ6YcHrKLTGjqxI9eOYAXYK3vo03Vf+Y0M=; b=cgSqukk0wxdwsbzYuCK/uCUXolfJ6uP2gYPeqTuwHyuz8n4n6CrqpEssexlDwF0thR buzKSn6+g3DDR9y4AkL6T6KrYgDe1bPzZFA3bemq1z2/8s3L0aTC/JlYWcuG0R/pIute xrPZjQieRojB5PwSOx4ky1EuLo4Ei3IArw2O0RSNv5bQcEpDVoEL3z1I2se57LaDSE1D SkZJyQdwC4bAu68mYd8XRWL3gHimHM5ACcRuPGU12eehwT2Q8J+mOvIkWLl5iEDSYN59 AUWE1+nOG7DS6scB5VIrvFU5/VBAZQdo6hqYOyZaIWFmWeUD3P6FCinsJJubLcnplMTu dGwg== X-Gm-Message-State: AJaThX5pS9lzph1l6M2Iq7nDIf/jMES6GBuSXM0Ek8e0EESP7QDuVk8a 2nU0viwxUC8TgPRFq54hDu9+5GmtxwSbQInsEcFLg1zy X-Google-Smtp-Source: ABhQp+RPtJGxEniAEcdz2mP/DBnGG6nKhTJCGl3mysI5mIdKJow0QYbW2/yJwZFCcIH2ZEEScdzH+FLbP3OPn+DzCR0= X-Received: by 10.237.39.211 with SMTP id m19mr1805341qtg.93.1510123022025; Tue, 07 Nov 2017 22:37:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.37.145 with HTTP; Tue, 7 Nov 2017 22:36:21 -0800 (PST) In-Reply-To: <20171108003323.26136.93827@reviews-vm2.apache.org> References: <20171108002238.26136.40223@reviews-vm2.apache.org> <20171108003323.26136.93827@reviews-vm2.apache.org> From: Reza Motamedi Date: Tue, 7 Nov 2017 22:36:21 -0800 Message-ID: Subject: Re: Review Request 63436: Enabling ErrorBoundary in Scheduler UI To: Aurora , David McLaughlin Content-Type: multipart/alternative; boundary="f403045ee6d04bc57f055d72ea87" archived-at: Wed, 08 Nov 2017 06:46:47 -0000 --f403045ee6d04bc57f055d72ea87 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Testing now. Regards, ~ Reza On Tue, Nov 7, 2017 at 4:33 PM, David McLaughlin wrote: > > > > On Nov. 8, 2017, 12:22 a.m., Aurora ReviewBot wrote: > > > Master (ad86177) is green with this patch. > > > ./build-support/jenkins/build.sh > > > > > > I will refresh this build result if you post a review containing > "@ReviewBot retry" > > This fails for me consistently using: > > ./build-support/jenkins/build.sh > > Is anyone else able to reproduce my failure? > > > - David > > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63436/#review190402 > ----------------------------------------------------------- > > > On Oct. 31, 2017, 8:15 p.m., Reza Motamedi wrote: > > > > ----------------------------------------------------------- > > This is an automatically generated e-mail. To reply, visit: > > https://reviews.apache.org/r/63436/ > > ----------------------------------------------------------- > > > > (Updated Oct. 31, 2017, 8:15 p.m.) > > > > > > Review request for Aurora, David McLaughlin, Joshua Cohen, and Kai Huan= g. > > > > > > Repository: aurora > > > > > > Description > > ------- > > > > # Enabling ErrorBoundary in Scheduler UI > > React 16 introduces a new concept of an =E2=80=9Cerror boundary=E2=80= =9D that allows us > to limit the impact of an error and not unmount the whole component tree.= I > am open to keeping or removing the stack trace. > > > > from React docs: > > > As of React 16, errors that were not caught by any error boundary wil= l > result in unmounting of the whole React component tree. > > > > > > Diffs > > ----- > > > > ui/.eslintrc 5cdc4e67030a79c3f81c06f585cc9ff5ce959e52 > > ui/src/main/js/components/ErrorBoundary.js PRE-CREATION > > ui/src/main/js/components/__tests__/ErrorBoundary-test.js PRE-CREATIO= N > > ui/src/main/js/index.js 9f94d4bd6f649d74bdd9c3aa99783e01cae25d93 > > > > > > Diff: https://reviews.apache.org/r/63436/diff/2/ > > > > > > Testing > > ------- > > > > - Unit tests added. > > > > ``` > > # rmotamedi@tw-mbp-rmotamedi:~/oss/aurora on git:error-boundry-test ? > [13:06:52] > > ? ./gradlew ui:test > > > > BUILD SUCCESSFUL in 0s > > 2 actionable tasks: 2 up-to-date > > > > # rmotamedi@tw-mbp-rmotamedi:~/oss/aurora on git:error-boundry-test ? > [13:07:46] > > ? ./gradlew ui:lint > > > > BUILD SUCCESSFUL in 5s > > 4 actionable tasks: 4 up-to-date > > ``` > > > > > > - For more testing, I added the following component (that raises an > error) and installed it under different components. I attached the > screen-shots of how this will render. Clicking the link initializes the > process of Jira ticket creation. > > > > ## ComponentWithError > > > > ``` > > import React from 'react' > > > > export default class ComponentWithError extends React.Component { > > render() { > > throw new Error('Crashed!'); > > return
; > > } > > } > > ``` > > > > > > File Attachments > > ---------------- > > > > Apache Jira ticket template filled with information on the bug > > https://reviews.apache.org/media/uploaded/files/2017/10/ > 31/0b50175f-0dd5-44fe-8bc4-c69ca1723729__Screen_Shot_ > 2017-10-31_at_11.55.39_AM.png > > Catching exceptions on the router > > https://reviews.apache.org/media/uploaded/files/2017/10/ > 31/915182ef-4229-4b22-b7c6-20a5f24f8e1a__Screen_Shot_ > 2017-10-31_at_11.44.56_AM.png > > > > > > Thanks, > > > > Reza Motamedi > > > > > > --f403045ee6d04bc57f055d72ea87--