From 84cb65ad8fc4844f2024741b14ad4362620bdf3a Mon Sep 17 00:00:00 2001 From: minnakt <47064971+minnakt@users.noreply.github.com> Date: Thu, 2 Nov 2023 18:33:07 -0400 Subject: [PATCH] DEVPROD-931: Remove Bugsnag (#425) --- .env-cmdrc.local.json | 3 +- .evergreen.yml | 2 - index.html | 1 + package.json | 8 +- scripts/deploy/app-version.sh | 18 -- scripts/deploy/deploy.sh | 8 +- scripts/deploy/upload-bugsnag-sourcemaps.js | 9 - scripts/setup-credentials.js | 1 - .../DetailsMenu/ButtonRow/index.tsx | 8 +- src/components/ErrorHandling/Bugsnag.tsx | 67 ------ .../ErrorHandling/ErrorBoundary.tsx | 24 +-- .../ErrorHandling/initialize.test.ts | 43 ---- src/components/ErrorHandling/initialize.ts | 6 - src/components/LogPane/index.tsx | 6 +- src/components/NavBar/UploadLink/index.tsx | 13 +- .../usePaginatedVirtualList.ts | 8 +- src/components/ProjectFiltersModal/index.tsx | 4 +- src/components/Search/SearchBar/index.tsx | 12 +- src/components/Search/index.tsx | 16 +- .../NavGroup/FilterNavGroup/index.tsx | 10 +- src/context/MultiLineSelectContext/index.tsx | 8 +- src/context/auth/index.tsx | 14 +- src/gql/generated/types.ts | 2 + src/hooks/useFetch/index.ts | 10 +- src/hooks/useLogDownloader/index.ts | 16 +- src/pages/LogDrop/FileDropper.tsx | 12 +- src/pages/LogView/LoadingPage/index.tsx | 4 +- src/utils/environmentVariables/index.ts | 4 - .../errorReporting/errorReporting.test.ts | 41 +--- src/utils/errorReporting/index.ts | 114 +++------- src/utils/file/index.ts | 4 +- vite.config.ts | 1 + yarn.lock | 198 +----------------- 33 files changed, 145 insertions(+), 550 deletions(-) delete mode 100755 scripts/deploy/app-version.sh delete mode 100644 scripts/deploy/upload-bugsnag-sourcemaps.js delete mode 100644 src/components/ErrorHandling/Bugsnag.tsx diff --git a/.env-cmdrc.local.json b/.env-cmdrc.local.json index f563646a..0d1f675f 100644 --- a/.env-cmdrc.local.json +++ b/.env-cmdrc.local.json @@ -12,8 +12,7 @@ "REACT_APP_LOBSTER_URL": "http://localhost:9090/lobster", "REACT_APP_LOGKEEPER_URL": "http://localhost:8080", "REACT_APP_SPRUCE_URL": "http://localhost:3000", - "REACT_APP_RELEASE_STAGE": "local", - "REACT_APP_BUGSNAG_API_KEY": "local" + "REACT_APP_RELEASE_STAGE": "local" }, "devStaging": { "REACT_APP_EVERGREEN_URL": "https://evergreen-staging.corp.mongodb.com", diff --git a/.evergreen.yml b/.evergreen.yml index 4aa7a558..fc7337b7 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -177,7 +177,6 @@ functions: shell: bash script: | echo "Generating .env-cmdrc.json" - REACT_APP_BUGSNAG_API_KEY=${REACT_APP_BUGSNAG_API_KEY} \ REACT_APP_SENTRY_AUTH_TOKEN=${REACT_APP_SENTRY_AUTH_TOKEN} \ REACT_APP_SENTRY_DSN=${REACT_APP_SENTRY_DSN} \ NEW_RELIC_ACCOUNT_ID=${NEW_RELIC_ACCOUNT_ID} \ @@ -344,7 +343,6 @@ functions: shell: bash script: | ${PREPARE_SHELL} - REACT_APP_BUGSNAG_API_KEY=${REACT_APP_BUGSNAG_API_KEY} \ BUCKET=${bucket} \ AWS_ACCESS_KEY_ID=${aws_key} \ AWS_SECRET_ACCESS_KEY=${aws_secret} \ diff --git a/index.html b/index.html index 2140cab8..a3404e9a 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ + Parsley