diff --git a/frontend/__snapshots__/scenes-app-recordings--recordings-play-list-no-pinned-recordings.png b/frontend/__snapshots__/scenes-app-recordings--recordings-play-list-no-pinned-recordings.png index 8e3052db551e1..55b81bc98fcce 100644 Binary files a/frontend/__snapshots__/scenes-app-recordings--recordings-play-list-no-pinned-recordings.png and b/frontend/__snapshots__/scenes-app-recordings--recordings-play-list-no-pinned-recordings.png differ diff --git a/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx b/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx index f252be79c400c..6a2b1c6cf4652 100644 --- a/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx +++ b/frontend/src/scenes/data-warehouse/DataWarehouseTable.tsx @@ -106,6 +106,7 @@ export function TableForm({ id }: { id: string }): JSX.Element { options={[ { label: 'Parquet (recommended)', value: 'Parquet' }, { label: 'CSV', value: 'CSV' }, + { label: 'JSON', value: 'JSONEachRow' }, ]} /> diff --git a/latest_migrations.manifest b/latest_migrations.manifest index 84d604bfc1357..d53b210a470de 100644 --- a/latest_migrations.manifest +++ b/latest_migrations.manifest @@ -5,7 +5,7 @@ contenttypes: 0002_remove_content_type_name ee: 0015_add_verified_properties otp_static: 0002_throttling otp_totp: 0002_auto_20190420_0723 -posthog: 0347_add_bigquery_export_type +posthog: 0348_alter_datawarehousetable_format sessions: 0001_initial social_django: 0010_uid_db_index two_factor: 0007_auto_20201201_1019 diff --git a/playwright/e2e-vrt/layout/Navigation.spec.ts-snapshots/Navigation-App-Page-With-Side-Bar-Shown-Mobile-1-chromium-linux.png b/playwright/e2e-vrt/layout/Navigation.spec.ts-snapshots/Navigation-App-Page-With-Side-Bar-Shown-Mobile-1-chromium-linux.png index 2ce1d7971c1e1..55ea6ef92745b 100644 Binary files a/playwright/e2e-vrt/layout/Navigation.spec.ts-snapshots/Navigation-App-Page-With-Side-Bar-Shown-Mobile-1-chromium-linux.png and b/playwright/e2e-vrt/layout/Navigation.spec.ts-snapshots/Navigation-App-Page-With-Side-Bar-Shown-Mobile-1-chromium-linux.png differ diff --git a/posthog/migrations/0348_alter_datawarehousetable_format.py b/posthog/migrations/0348_alter_datawarehousetable_format.py new file mode 100644 index 0000000000000..72434bbc99fdb --- /dev/null +++ b/posthog/migrations/0348_alter_datawarehousetable_format.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.19 on 2023-09-11 15:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("posthog", "0347_add_bigquery_export_type"), + ] + + operations = [ + migrations.AlterField( + model_name="datawarehousetable", + name="format", + field=models.CharField( + choices=[("CSV", "CSV"), ("Parquet", "Parquet"), ("JSONEachRow", "JSON")], max_length=128 + ), + ), + ] diff --git a/posthog/warehouse/models/table.py b/posthog/warehouse/models/table.py index 10e61444e8250..411bf459aa1ed 100644 --- a/posthog/warehouse/models/table.py +++ b/posthog/warehouse/models/table.py @@ -47,6 +47,7 @@ class DataWarehouseTable(CreatedMetaFields, UUIDModel, DeletedMetaFields): class TableFormat(models.TextChoices): CSV = "CSV", "CSV" Parquet = "Parquet", "Parquet" + JSON = "JSONEachRow", "JSON" name: models.CharField = models.CharField(max_length=128) format: models.CharField = models.CharField(max_length=128, choices=TableFormat.choices)