analytics/test/workers
Adrian Gruntkowski 729a32e610
Teams writes switch (#4883)
* Comment out legacy fields and relationships

* WIP

* WIP 2

* WIP 3

* wip

* Remove teams backfill and consistency check scripts

* WIP 3

* Fix CheckUsage tests

* Update billing/subscription tests

* WIP 4

* Make site transfer fail if some invitation already exists

* Fixup: do symmetric invitation/site transfer check

* Update UI bugs: make listing sites/inviting admins work like before

* Fix Sites test

* Fix external sites controller test

* Fix live sites tests

* Fix props availability lookup

* Fix site controller tests

* Fix billing controller tests

* WIP - accept invitation tests

* Another round of test fixes + invitations logic bugs

* users_test -> teams_test

* Update registration via invitation

Here, we still rely on "polymorphic" invitation structures,
hence the "unified by id" helper.

For now, it'll remain local unless we discover it's
needed in the broader `Teams.Invitations` context.

cc @zoldar

* Yet another round of test and bugfixes along the way

* Include team in site setup success e-mail

* Fix send_site_setup_emails worker

* Fixed almost all tests except CRM ones

* Update enterprise plan admin test

* Fix CRM + remaining tests

* Address credo warnings (modulo one FIXME)

* Remove last FIXME and rephrase the invitation test case description

* Set Team fields via User CRM transparently

* Map user reference in Enterprise Plan CRM via team owner

* Fix resource actions in user CRM

* Get rid of warning when opening create form in API keys CRM

* Stop emitting warnings when editing Enterprise Plans via CRM

* Tests: Bump await_clickhouse_count interval

* Remove XXX marker

* Fix register from invitation link in email sent for ownership transfer

* Simplify fetching all pending site ownership site IDs

* Remove commented out schema fields

* Remove unused functions

* Address flakiness in ingest counter tests

* Remove unused `Teams.Sites.create`

* Don't restart trial on team with subscription when creating site

* Account for cases of legacy teams with empty trial expiry date

* Revert "Address flakiness in ingest counter tests"

This reverts commit 60dc1e4115.

* Fix flaky ingest counters tests under load

* Attempt 2

* Pre-emptively hardcode site ids in sampling cache test

to avoid supplying the same IDs alongside with counters test,
that inserts through another repo (async).
what we're observing is, clickhouse not summing mergetree columns fast
enough, even though we wait quite a bit.

* Fix ingest counter tests by accounting for delayed summation

---------

Co-authored-by: Adam Rutkowski <hq@mtod.org>
2024-12-16 11:11:14 +00:00
..
accept_traffic_until_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
check_usage_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
clean_invitations_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
clean_user_sessions_test.exs Implement token-based sessions (#4463) 2024-09-03 11:34:37 +02:00
clickhouse_clean_sites_test.exs Refactor: remove transform_filters function from imported base (#4409) 2024-07-31 15:36:25 +03:00
expire_domain_change_transitions_test.exs Fix flaky log assertion (#3199) 2023-07-27 12:51:54 +02:00
import_analytics_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
lock_sites_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
notify_annual_renewal_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
notify_exported_analytics_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
oban_error_reporter_test.exs safe(r) Oban telemetry (#3743) 2024-02-14 10:12:03 +01:00
schedule_email_reports_test.exs Do not send email reports for locked sites 2021-06-17 10:20:54 +03:00
send_check_stats_emails_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
send_email_report_test.exs Switch reads to Teams schemas across the rest of the app (#4860) 2024-12-02 12:20:16 +00:00
send_site_setup_emails_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
send_trial_notifications_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00
traffic_change_notifier_test.exs Teams writes switch (#4883) 2024-12-16 11:11:14 +00:00