Skip to content

Commit

Permalink
feat: Enable brotli compression in S3 batch exports configuration (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Sep 15, 2023
1 parent f438e59 commit 8ab153f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/scenes/batch_exports/BatchExportEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export function BatchExportsEditForm(props: BatchExportsEditLogicProps): JSX.Ele
<LemonSelect
options={[
{ value: 'gzip', label: 'gzip' },
{ value: 'brotli', label: 'brotli' },
{ value: null, label: 'No compression' },
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ async def test_s3_export_workflow_with_minio_bucket(
@pytest.mark.asyncio
@pytest.mark.parametrize(
"interval,compression,encryption,exclude_events",
itertools.product(["hour", "day"], [None, "gzip", "brotli"], [None, "AES256"], [None, ["test-exclude"]]),
itertools.product(["hour", "day"], [None, "gzip", "brotli"], [None, "AES256", "aws:kms"], [None, ["test-exclude"]]),
)
async def test_s3_export_workflow_with_s3_bucket(interval, compression, encryption, exclude_events):
"""Test S3 Export Workflow end-to-end by using an S3 bucket.
Expand All @@ -457,6 +457,7 @@ async def test_s3_export_workflow_with_s3_bucket(interval, compression, encrypti
records to the S3 bucket.
"""
bucket_name = os.getenv("S3_TEST_BUCKET")
kms_key_id = os.getenv("S3_TEST_KMS_KEY_ID")
prefix = f"posthog-events-{str(uuid4())}"
destination_data = {
"type": "S3",
Expand All @@ -469,6 +470,7 @@ async def test_s3_export_workflow_with_s3_bucket(interval, compression, encrypti
"compression": compression,
"exclude_events": exclude_events,
"encryption": encryption,
"kms_key_id": kms_key_id if encryption == "aws:kms" else None,
},
}

Expand Down

0 comments on commit 8ab153f

Please sign in to comment.