mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
17b12ddaeb
* Extend schemas with new fields and relationships for teams * Implement listing sites and sites with invitations with teams * Implement creating invitations with teams * Implement accepting invites with teams * Add `Teams.SiteTransfer` schema * Implement creating ownership transfers * Implement accepting site transfer between teams * Make results shapes from `Teams.Memberships` role functions more consistent * Remove :team relation from ApiKey schema * Pass and provision team on subscription creation * Pass and provision team on enterprise plan creation * Implement creating site for a team * Keep team in sync during legacy ownership transfer and invitations * Resolve conflict in `Teams.get_or_create` without transaction * Abstract `GracePeriod` manipulation behind `Plausible.Users` * Put `User.start_trial` behind `Plausible.Users` API * Sync team fields on user update, if team exists * Sync cleaning invitations, updating and removing members * Transfer invitations too * Implement backfill script * Allow separate pg repo for backfill script * Rollback purposefully at the end * Update backfill script with parallel processing * Use `IS DISTINCT FROM` when comparing nullable fields * Handle no teams to backfill case gracefully when reporting * Parallelize guest memberships backfill * Remove transaction wrapping and query timeouts * Make team sync check more granular and fix formatting * Wrap single team backfill in a transatction for consistent restarts * Make invitation and site transfer backfills preserve invitation ID * Update migration repo config for easier dev access * Backfill teams for users with subscriptions without sites * Log timestamps * Put teams sync behind a compile-time flag * Keep timestamps in sync and fix subscriptions backfill * Fix formatting * Make credo happy * Don't `use Plausible.Migration` to avoid dialyzer complaining None of the tooling from there is used anywhere and `@repo` can be defined directly in the migration script. * Drop SSL workarounds in the backfill script --------- Co-authored-by: Adam Rutkowski <hq@mtod.org> |
||
---|---|---|
.. | ||
activation_email.html.heex | ||
approaching_accept_traffic_until.html.heex | ||
cancellation_email.html.heex | ||
check_stats_email.html.heex | ||
create_site_email.html.heex | ||
csv_import.html.heex | ||
dashboard_locked.html.heex | ||
drop_notification.html.heex | ||
enterprise_over_limit_internal.html.heex | ||
error_report_email.html.heex | ||
existing_user_invitation.html.heex | ||
export_failure.html.heex | ||
export_success.html.heex | ||
google_analytics_import.html.heex | ||
invitation_accepted.html.heex | ||
invitation_rejected.html.heex | ||
new_user_invitation.html.heex | ||
over_limit.html.heex | ||
ownership_transfer_accepted.html.heex | ||
ownership_transfer_rejected.html.heex | ||
ownership_transfer_request.html.heex | ||
password_reset_email.html.heex | ||
site_member_removed.html.heex | ||
site_setup_help_email.html.heex | ||
site_setup_success_email.html.heex | ||
spike_notification.html.heex | ||
trial_one_week_reminder.html.heex | ||
trial_over_email.html.heex | ||
trial_upgrade_email.html.heex | ||
two_factor_disabled_email.html.heex | ||
two_factor_enabled_email.html.heex | ||
welcome_email.html.heex | ||
yearly_expiration_notification.html.heex | ||
yearly_renewal_notification.html.heex |