Skip to content

Commit

Permalink
chore(data-warehouse): Dont allow S3 protocol for linking data source (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert09 authored Aug 27, 2024
1 parent b8dd904 commit af509c8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ export const dataWarehouseTableLogic = kea<dataWarehouseTableLogicType>([
table: {
defaults: { ...NEW_WAREHOUSE_TABLE } as DataWarehouseTable,
errors: ({ name, url_pattern, credential, format }) => {
if (url_pattern?.startsWith('s3://')) {
return {
url_pattern:
'Please use the https version of your bucket url e.g. https://your-org.s3.amazonaws.com/airbyte/stripe/invoices/*.pqt',
}
}

return {
name: !name && 'Please enter a name.',
url_pattern: !url_pattern && 'Please enter a url pattern.',
Expand Down

0 comments on commit af509c8

Please sign in to comment.