analytics/lib/plausible_web
ruslandoga 1a0cb52f95
Local CSV exports/imports and S3/UI updates (#3989)
* local CSV exports/imports and S3 updates

* credo

* dialyzer

* refactor input columns

* fix ci minio/clickhouse tests

* Update lib/plausible_web/live/csv_export.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

* fix date range filter in export_pages_q and process only pageviews

* remove toTimeZone(zero_timestamp) note

* use SiteImport.pending(), SiteImport.importing()

* escape [SiteImport.pending(), SiteImport.importing()]

* use random s3 keys for imports to avoid collisions (sometimes makes the upload get stuck)

* clamp import date ranges

* site is already in assigns

* recompute cutoff date each time

* use toDate(timestamp[, timezone]) shortcut

* show alreats on export cancel/delete and extract hint into a component

* switch to Imported.clamp_dates/4

* reprocess tables when imports are added

* recompute cutoff_date on each call

* actually use clamped_date_range on submit

* add warning message

* add expiry rules to buckets in make minio

* add site_id to imports notifications and use it in csv_importer

* try/catch safer

* return :ok

* date range is not available when no uploads

* improve ui and warning messages

* use Generic.notice

* fix flaky exports test

* begin tests

* Improve `Importer` notification payload shape

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
2024-04-09 20:59:48 +02:00
..
components Use sessionStorage for "dashboard first launch" banner tracking (#3892) 2024-03-26 09:49:15 +01:00
controllers Local CSV exports/imports and S3/UI updates (#3989) 2024-04-09 20:59:48 +02:00
live Local CSV exports/imports and S3/UI updates (#3989) 2024-04-09 20:59:48 +02:00
mjml Small bugfix + refactor email reports (#3642) 2023-12-21 12:56:06 +00:00
plugins/api Plugins API: mark data_domain as nullable in capabilities schema (#3840) 2024-02-28 10:26:01 +01:00
plugs Add GET /capabilities to Plugins API (#3808) 2024-02-21 12:41:56 +01:00
templates Local CSV exports/imports and S3/UI updates (#3989) 2024-04-09 20:59:48 +02:00
two_factor Implement UI for 2FA setup and verification (#3541) 2023-12-06 12:01:19 +01:00
views Reapply 3918 (#3940) 2024-03-25 10:36:22 +01:00
captcha.ex Include tests for Captcha success/failure scenarios (#2344) 2022-10-17 08:16:59 -03:00
email.ex Local CSV exports/imports and S3/UI updates (#3989) 2024-04-09 20:59:48 +02:00
endpoint.ex Reapply "Include query string when logging the request (#3971)" (#3984) (#3985) 2024-04-09 08:49:45 +03:00
refinspector.ex Store referrers from android apps (#3715) 2024-03-21 17:45:34 +02:00
remote_ip.ex IP Block List (#3761) 2024-02-12 14:55:20 +01:00
router.ex Local CSV exports/imports and S3/UI updates (#3989) 2024-04-09 20:59:48 +02:00