Skip to content

Commit

Permalink
Remove papercups (airbytehq#6955)
Browse files Browse the repository at this point in the history
* Remove papercups

* Remove support chat
  • Loading branch information
jamakase authored Oct 13, 2021
1 parent d0d9201 commit fea3bf6
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 590 deletions.
1 change: 0 additions & 1 deletion airbyte-webapp/docs/HowTo-EnvVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Dynamic env variables in our cases are injected into app by nginx
```html
<script language="javascript" \>
window.TRACKING_STRATEGY = "$TRACKING_STRATEGY";
window.PAPERCUPS_STORYTIME = "$PAPERCUPS_STORYTIME";
window.FULLSTORY = "$FULLSTORY";
window.AIRBYTE_VERSION = "$AIRBYTE_VERSION";
window.API_URL = "$API_URL";
Expand Down
1 change: 0 additions & 1 deletion airbyte-webapp/nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ server {
sub_filter </head>
'</head><script language="javascript"\>
window.TRACKING_STRATEGY = "$TRACKING_STRATEGY";
window.PAPERCUPS_STORYTIME = "$PAPERCUPS_STORYTIME";
window.FULLSTORY = "$FULLSTORY";
window.AIRBYTE_VERSION = "$AIRBYTE_VERSION";
window.API_URL = "$API_URL";
Expand Down
545 changes: 67 additions & 478 deletions airbyte-webapp/package-lock.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions airbyte-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"@fortawesome/free-solid-svg-icons": "^5.12.1",
"@fortawesome/react-fontawesome": "^0.1.8",
"@fullstory/browser": "^1.4.9",
"@papercups-io/chat-widget": "^1.1.5",
"@papercups-io/storytime": "^1.0.6",
"@rest-hooks/legacy": "^2.0.5",
"@sentry/react": "^6.11.0",
"@sentry/tracing": "^6.11.0",
Expand Down
56 changes: 0 additions & 56 deletions airbyte-webapp/src/components/SupportChat/SupportChat.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions airbyte-webapp/src/components/SupportChat/index.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions airbyte-webapp/src/config/configProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { isDefined } from "utils/common";

const windowConfigProvider: ConfigProvider = async () => {
return {
papercups: {
enableStorytime: window.PAPERCUPS_STORYTIME !== "disabled",
},
fullstory: { devMode: window.FULLSTORY === "disabled" },
segment: {
enabled: isDefined(window.TRACKING_STRATEGY)
Expand Down Expand Up @@ -36,14 +33,6 @@ const envConfigProvider: ConfigProvider = async () => {
fullstory: {
orgId: process.env.REACT_APP_FULL_STORY_ORG,
},
papercups: {
accountId: process.env.REACT_APP_PAPERCUPS_ACCOUNT_ID,
enableStorytime: isDefined(
process.env.REACT_APP_PAPERCUPS_DISABLE_STORYTIME
)
? !process.env.REACT_APP_PAPERCUPS_DISABLE_STORYTIME
: undefined,
},
};
};

Expand Down
5 changes: 0 additions & 5 deletions airbyte-webapp/src/config/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ const defaultConfig: Config = {
},
segment: { enabled: true, token: "" },
healthCheckInterval: 10000,
papercups: {
baseUrl: "https://app.papercups.io",
enableStorytime: false,
accountId: "",
},
version: "",
apiUrl: `${window.location.protocol}//${window.location.hostname}:8001/api/v1/`,
oauthRedirectUrl: `${window.location.protocol}//${window.location.host}`,
Expand Down
8 changes: 0 additions & 8 deletions airbyte-webapp/src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { UiConfig } from "./uiConfig";
declare global {
interface Window {
TRACKING_STRATEGY?: string;
PAPERCUPS_STORYTIME?: string;
FULLSTORY?: string;
AIRBYTE_VERSION?: string;
API_URL?: string;
Expand All @@ -24,16 +23,9 @@ declare global {
}
}

export type PaperCupsConfig = {
accountId: string;
baseUrl: string;
enableStorytime: boolean;
};

export type Config = {
ui: UiConfig;
segment: { token: string; enabled: boolean };
papercups: PaperCupsConfig;
fullstory: Fullstory.SnippetOptions;
apiUrl: string;
oauthRedirectUrl: string;
Expand Down
8 changes: 0 additions & 8 deletions airbyte-webapp/src/pages/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import ConnectionPage from "./ConnectionPage";
import SettingsPage from "./SettingsPage";
import LoadingPage from "components/LoadingPage";
import MainView from "views/layout/MainView";
import SupportChat from "components/SupportChat";

import { useWorkspace } from "hooks/services/useWorkspace";
import { useNotificationService } from "hooks/services/Notification/NotificationService";
Expand Down Expand Up @@ -112,8 +111,6 @@ function useDemo() {
}

export const Routing: React.FC = () => {
const config = useConfig();

useApiHealthPoll();
useDemo();

Expand All @@ -130,11 +127,6 @@ export const Routing: React.FC = () => {
<MainViewRoutes />
</>
)}
<SupportChat
papercupsConfig={config.papercups}
customerId={workspace.customerId}
onClick={() => window.open(config.ui.slackLink, "_blank")}
/>
</Suspense>
</Router>
);
Expand Down
1 change: 0 additions & 1 deletion charts/airbyte/templates/env-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ data:
INTERNAL_API_HOST: {{ include "common.names.fullname" . }}-server:{{ .Values.server.service.port }}
IS_DEMO: {{ ternary "true" "false" .Values.webapp.isDemo | quote }}
LOCAL_ROOT: /tmp/airbyte_local
PAPERCUPS_STORYTIME: {{ ternary "enabled" "disabled" .Values.webapp.storytime.enabled }}
RESOURCE_CPU_LIMIT: ""
RESOURCE_CPU_REQUEST: ""
RESOURCE_MEMORY_LIMIT: ""
Expand Down
5 changes: 0 additions & 5 deletions charts/airbyte/templates/webapp/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ spec:
configMapKeyRef:
name: airbyte-env
key: TRACKING_STRATEGY
- name: PAPERCUPS_STORYTIME
valueFrom:
configMapKeyRef:
name: airbyte-env
key: PAPERCUPS_STORYTIME
- name: FULLSTORY
valueFrom:
configMapKeyRef:
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ services:
- AIRBYTE_VERSION=${VERSION}
- API_URL=${API_URL:-}
- IS_DEMO=${IS_DEMO:-}
- PAPERCUPS_STORYTIME=${PAPERCUPS_STORYTIME:-}
- FULLSTORY=${FULLSTORY:-}
- TRACKING_STRATEGY=${TRACKING_STRATEGY}
- INTERNAL_API_HOST=${INTERNAL_API_HOST}
Expand Down
1 change: 0 additions & 1 deletion docs/archive/faq/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ To disable telemetry, modify the `.env` file and define the two following enviro

```text
TRACKING_STRATEGY=logging
PAPERCUPS_STORYTIME=disabled
```
1 change: 0 additions & 1 deletion kube/overlays/dev-integration-test/.env
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ API_URL=/api/v1/
INTERNAL_API_HOST=airbyte-server-svc:8001

WORKER_ENVIRONMENT=kubernetes
PAPERCUPS_STORYTIME=disabled
FULLSTORY=disabled
IS_DEMO=false
LOG_LEVEL=INFO
Expand Down
1 change: 0 additions & 1 deletion kube/overlays/dev/.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ API_URL=/api/v1/
INTERNAL_API_HOST=airbyte-server-svc:8001

WORKER_ENVIRONMENT=kubernetes
PAPERCUPS_STORYTIME=disabled
FULLSTORY=disabled
IS_DEMO=false
LOG_LEVEL=INFO
Expand Down
1 change: 0 additions & 1 deletion kube/overlays/stable-with-resource-limits/.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ API_URL=/api/v1/
INTERNAL_API_HOST=airbyte-server-svc:8001

WORKER_ENVIRONMENT=kubernetes
PAPERCUPS_STORYTIME=enabled
FULLSTORY=enabled
IS_DEMO=false
LOG_LEVEL=INFO
Expand Down
1 change: 0 additions & 1 deletion kube/overlays/stable/.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ API_URL=/api/v1/
INTERNAL_API_HOST=airbyte-server-svc:8001

WORKER_ENVIRONMENT=kubernetes
PAPERCUPS_STORYTIME=enabled
FULLSTORY=enabled
IS_DEMO=false
LOG_LEVEL=INFO
Expand Down
5 changes: 0 additions & 5 deletions kube/resources/webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ spec:
configMapKeyRef:
name: airbyte-env
key: TRACKING_STRATEGY
- name: PAPERCUPS_STORYTIME
valueFrom:
configMapKeyRef:
name: airbyte-env
key: PAPERCUPS_STORYTIME
- name: FULLSTORY
valueFrom:
configMapKeyRef:
Expand Down

0 comments on commit fea3bf6

Please sign in to comment.