From 95bed87bf9a041a789ecfd035cb4829ac35f59a0 Mon Sep 17 00:00:00 2001
From: Matt Seddon <37993418+mattseddon@users.noreply.github.com>
Date: Thu, 8 Jun 2023 05:02:25 +1000
Subject: [PATCH] Condense information on storage types for remote onboarding
(#4051)
---
.../src/setup/components/remotes/AmazonS3.tsx | 24 ++++++++----------
.../components/remotes/AzureBlobStorage.tsx | 17 ++++---------
.../components/remotes/CloudVersioning.tsx | 15 -----------
.../remotes/CloudVersioningLink.tsx | 7 ------
.../setup/components/remotes/CustomAuth.tsx | 7 ------
.../components/remotes/GoogleCloudStorage.tsx | 25 ++++++++-----------
.../components/remotes/OtherStorageTypes.tsx | 6 -----
7 files changed, 25 insertions(+), 76 deletions(-)
delete mode 100644 webview/src/setup/components/remotes/CloudVersioning.tsx
delete mode 100644 webview/src/setup/components/remotes/CloudVersioningLink.tsx
delete mode 100644 webview/src/setup/components/remotes/CustomAuth.tsx
diff --git a/webview/src/setup/components/remotes/AmazonS3.tsx b/webview/src/setup/components/remotes/AmazonS3.tsx
index ec74749409..0a4aabda90 100644
--- a/webview/src/setup/components/remotes/AmazonS3.tsx
+++ b/webview/src/setup/components/remotes/AmazonS3.tsx
@@ -1,34 +1,30 @@
import React from 'react'
import styles from './styles.module.scss'
import { InfoText } from './InfoText'
-import { CloudVersioning } from './CloudVersioning'
-import { CustomAuth } from './CustomAuth'
import { ShowExtension } from './ShowExtension'
export const AmazonS3 = () => (
+
When needed, DVC will try to authenticate using your{' '}
AWS CLI config
. This reads the default AWS credentials file (if available) or env vars.
+ For custom authentication see the{' '}
+
+ docs
+
+ .
-
The AWS user needs the following permissions: s3:ListBucket, s3:GetObject,
s3:PutObject, s3:DeleteObject.
-
-
- S3 versioning
- {' '}
- enabled on the bucket.
-
-
)
diff --git a/webview/src/setup/components/remotes/AzureBlobStorage.tsx b/webview/src/setup/components/remotes/AzureBlobStorage.tsx
index 4b0ff94f05..cb7341d612 100644
--- a/webview/src/setup/components/remotes/AzureBlobStorage.tsx
+++ b/webview/src/setup/components/remotes/AzureBlobStorage.tsx
@@ -1,10 +1,14 @@
import React from 'react'
import styles from './styles.module.scss'
-import { CloudVersioning } from './CloudVersioning'
import { ShowExtension } from './ShowExtension'
export const AzureBlobStorage = () => (
)
diff --git a/webview/src/setup/components/remotes/CloudVersioning.tsx b/webview/src/setup/components/remotes/CloudVersioning.tsx
deleted file mode 100644
index 486e6814d6..0000000000
--- a/webview/src/setup/components/remotes/CloudVersioning.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React, { PropsWithChildren } from 'react'
-import { CloudVersioningLink } from './CloudVersioningLink'
-import { InfoText } from './InfoText'
-import { CodeBlock } from '../shared/CodeBlock'
-
-export const CloudVersioning: React.FC = ({ children }) => (
- <>
-
- requires {children} To enable run:
-
-
- dvc remote modify myremote version_aware true
-
- >
-)
diff --git a/webview/src/setup/components/remotes/CloudVersioningLink.tsx b/webview/src/setup/components/remotes/CloudVersioningLink.tsx
deleted file mode 100644
index bcd03f5065..0000000000
--- a/webview/src/setup/components/remotes/CloudVersioningLink.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import React from 'react'
-
-export const CloudVersioningLink: React.FC = () => (
-
- Cloud versioning
-
-)
diff --git a/webview/src/setup/components/remotes/CustomAuth.tsx b/webview/src/setup/components/remotes/CustomAuth.tsx
deleted file mode 100644
index 80471044a6..0000000000
--- a/webview/src/setup/components/remotes/CustomAuth.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import React from 'react'
-
-export const CustomAuth: React.FC<{ href: string }> = ({ href }) => (
-
- For custom authentication see the docs
-
-)
diff --git a/webview/src/setup/components/remotes/GoogleCloudStorage.tsx b/webview/src/setup/components/remotes/GoogleCloudStorage.tsx
index 3e4b53d77c..e3cb9db1bb 100644
--- a/webview/src/setup/components/remotes/GoogleCloudStorage.tsx
+++ b/webview/src/setup/components/remotes/GoogleCloudStorage.tsx
@@ -1,25 +1,27 @@
import React from 'react'
import styles from './styles.module.scss'
-import { CloudVersioning } from './CloudVersioning'
-import { CustomAuth } from './CustomAuth'
import { ShowExtension } from './ShowExtension'
import { Icon } from '../../../shared/components/Icon'
import { Warning } from '../../../shared/components/icons'
export const GoogleCloudStorage: React.FC = () => (
+
When needed, DVC will try to authenticate using your{' '}
glcoud CLI authorization
- . This reads the default GCP key file.
+ . This reads the default GCP key file. For custom authentication see the{' '}
+
+ docs
+
+ .
-
{' '}
Make sure to run{' '}
@@ -29,12 +31,5 @@ export const GoogleCloudStorage: React.FC = () => (
unless you use a service account or other ways to authenticate (
more info).
-
-
- Object versioning
- {' '}
- enabled on the bucket.
-
-
)
diff --git a/webview/src/setup/components/remotes/OtherStorageTypes.tsx b/webview/src/setup/components/remotes/OtherStorageTypes.tsx
index b68f97d164..bc02809459 100644
--- a/webview/src/setup/components/remotes/OtherStorageTypes.tsx
+++ b/webview/src/setup/components/remotes/OtherStorageTypes.tsx
@@ -1,7 +1,5 @@
import React from 'react'
import styles from './styles.module.scss'
-import { InfoText } from './InfoText'
-import { CloudVersioningLink } from './CloudVersioningLink'
export const OtherStorageTypes: React.FC = () => (
@@ -38,9 +36,5 @@ export const OtherStorageTypes: React.FC = () => (
-
- is not currently supported by any of these
- remotes.
-
)