You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/priv/repo/migrations
hq1 53f94a9f82
Pages shield (#3918)
* Migration: Shield page rules

* Add Ecto schema for Page Rules

* Add Page Rule cache

* Fix typo

* BTW: Use already imported function

* Extend Shields context interface + split existing tests

* Ingestion: filter matching patches + refactor shield actions

* Add LV section for adding Page Rules

* Validate max page path length

* Put Pages Shield behind a feature flag

* Update CHANGELOG

* Update docs link anchor

As per https://github.com/plausible/docs/pull/477

* Update lib/plausible/shields.ex

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

* Update lib/plausible_web/live/shields/page_rules.ex

Co-authored-by: ruslandoga <doga.ruslan@gmail.com>

* Update lib/plausible_web/live/shields/page_rules.ex

Co-authored-by: ruslandoga <doga.ruslan@gmail.com>

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
Co-authored-by: ruslandoga <doga.ruslan@gmail.com>
3 years ago
..
.formatter.exs OpenAPI: first pass on Plugins API - Shared Links (#3378) 3 years ago
20181201181549_add_pageviews.exs Initial commit 7 years ago
20181214201821_add_new_visitor_to_pageviews.exs Remove historical migrations that stop test database from being created 7 years ago
20181215140923_add_session_id_to_pageviews.exs Initial commit 7 years ago
20190109173917_create_sites.exs Initial commit 7 years ago
20190117135714_add_uid_to_pageviews.exs Remove historical migrations that stop test database from being created 7 years ago
20190118154210_add_derived_data_to_pageviews.exs Initial commit 7 years ago
20190126135857_add_name_to_users.exs Initial commit 7 years ago
20190127213938_add_tz_to_sites.exs Formatting only changes - No code change (#75) 7 years ago
20190205165931_add_last_seen_to_users.exs Initial commit 7 years ago
20190213224404_add_intro_emails.exs Initial commit 7 years ago
20190219130809_delete_intro_emails_when_user_is_deleted.exs Formatting only changes - No code change (#75) 7 years ago
20190301122344_add_country_code_to_pageviews.exs Initial commit 7 years ago
20190324155606_add_password_hash_to_users.exs Initial commit 7 years ago
20190402145007_remove_device_type_from_pageviews.exs Initial commit 7 years ago
20190402145357_remove_screen_height_from_pageviews.exs Initial commit 7 years ago
20190402172423_add_index_to_pageviews.exs Initial commit 7 years ago
20190410095248_add_feedback_emails.exs Initial commit 7 years ago
20190424162903_delete_feedback_emails_when_user_is_deleted.exs Formatting only changes - No code change (#75) 7 years ago
20190430140411_use_citext_for_email.exs Initial commit 7 years ago
20190430152923_create_subscriptions.exs Initial commit 7 years ago
20190516113517_remove_session_id_from_pageviews.exs Initial commit 7 years ago
20190520144229_change_user_id_to_uuid.exs Remove historical migrations that stop test database from being created 7 years ago
20190523160838_add_raw_referrer.exs Initial commit 7 years ago
20190523171519_add_indices_to_referrers.exs Initial commit 7 years ago
20190618165016_add_public_sites.exs Remove obsolete migration config (#2769) 4 years ago
20190718160353_create_google_search_console_integration.exs Initial commit 7 years ago
20190723141824_associate_google_auth_with_site.exs Initial commit 7 years ago
20190730014913_add_monthly_stats.exs Initial commit 7 years ago
20190730142200_add_weekly_stats.exs Initial commit 7 years ago
20190730144413_add_daily_stats.exs Initial commit 7 years ago
20190809174105_calc_screen_size.exs Initial commit 7 years ago
20190810145419_remove_unused_indices.exs Initial commit 7 years ago
20190820140747_remove_rollup_tables.exs Initial commit 7 years ago
20190906111810_add_email_reporting.exs Add weekly email report template 7 years ago
20190907134114_add_unique_index_to_email_settings.exs Allow user to change email settings from settings page 7 years ago
20190910120900_add_email_address_to_settings.exs Remove unused fields from pageviews 7 years ago
20190911102027_add_monthly_reports.exs Formatting only changes - No code change (#75) 7 years ago
20191010031425_add_property_to_google_auth.exs [Continued] Google Analytics import (#1753) 5 years ago
20191015072730_remove_unused_fields.exs Remove unused fields from pageviews 7 years ago
20191015073507_proper_timestamp_for_pageviews.exs Proper timestamp 7 years ago
20191024062200_rename_pageviews_to_events.exs Rename pageviews to events 7 years ago
20191025055334_add_name_to_events.exs Remove stats from postgres (#74) 7 years ago
20191031051340_add_goals.exs Add goals and conversions 7 years ago
20191031063001_remove_goal_name.exs Remove goal name 7 years ago
20191118075359_allow_free_subscriptions.exs Create free subscriptions 7 years ago
20191216064647_add_unique_index_to_email_reports.exs Add unique index to monthly reports site id 7 years ago
20191218082207_add_sessions.exs Correct migration order 7 years ago
20191220042658_add_session_start.exs Capture session start 7 years ago
20200106090739_cascade_google_auth_deletion.exs Cascade google auth deletion 7 years ago
20200107095234_add_entry_page_to_sessions.exs Show bounce rate for referrers and pages 7 years ago
20200113143927_add_exit_page_to_session.exs Add exit page to sessions (#25) 7 years ago
20200114131538_add_tweets.exs Fetch and display tweets (#27) 7 years ago
20200120091134_change_session_referrer_to_text.exs Change session referrer to text 7 years ago
20200121091251_add_recipients.exs Add and remove recipients for email reports (#28) 7 years ago
20200122150130_add_shared_links.exs Shared links (#29) 7 years ago
20200130123049_add_site_id_to_events.exs Configurable site id (#30) 7 years ago
20200204093801_rename_site_id_to_domain.exs Configurable site id (#30) 7 years ago
20200204133522_drop_events_hostname_index.exs Configurable site id (#30) 7 years ago
20200210134612_add_fingerprint_to_events.exs Track fingerprint 7 years ago
20200211080841_add_raw_fingerprint.exs Store raw fingerprint for testing 7 years ago
20200211090126_remove_raw_fingerprint.exs Remove raw fingerprint 7 years ago
20200211133829_add_initial_source_and_referrer_to_events.exs Introduce initial referrer and initial referrer source (#32) 7 years ago
20200219124314_create_custom_domains.exs Custom domains (#34) 7 years ago
20200227092821_add_fingerprint_sesssions.exs Add fingerprint sessions (#36) 7 years ago
20200302105632_flexible_fingerprint_referrer.exs Make fingerprint referrer flexible 7 years ago
20200317093028_add_trial_expiry_to_users.exs Add field to track trial expiry date (#45) 7 years ago
20200317142459_backfill_fingerprints.exs Analytics without using cookies (#44) 7 years ago
20200320100803_add_setup_emails.exs Email flows (#46) 7 years ago
20200323083536_add_create_site_emails.exs Email flows (#46) 7 years ago
20200323084954_add_check_stats_emails.exs Email flows (#46) 7 years ago
20200324132431_make_cookie_fields_non_required.exs Formatting only changes - No code change (#75) 7 years ago
20200406115153_cascade_custom_domain_deletion.exs Cascade custom domain deletion 7 years ago
20200408122329_cascade_setup_emails_deletion.exs Cascade setup success emails deletion 7 years ago
20200529071028_add_oban_jobs_table.exs Schedule regular jobs with Oban (#69) 7 years ago
20200605134616_remove_events_and_sessions.exs Remove events and sessions table from postgres 7 years ago
20200605142737_remove_fingerprint_sessions_table.exs Remove fingerprint sessions table 7 years ago
20200619071221_create_salts_table.exs Rotate salts on a daily basis (#224) 6 years ago
20201130083829_add_email_verification_codes.exs Onboarding UX improvements (#441) 6 years ago
20201208173543_add_spike_notifications.exs Add basic spike notifications 6 years ago
20201210085345_add_email_verified_to_users.exs Add elixir action (#526) 6 years ago
20201214072008_add_theme_pref_to_users.exs Add elixir action (#526) 6 years ago
20201230085939_delete_email_records_when_user_is_deleted.exs Fix user deletion 6 years ago
20210115092331_cascade_site_deletion_to_spike_notification.exs Cascade deletion of site to spike notifications 6 years ago
20210119093337_add_unique_index_to_spike_notification.exs Do not allow duplicate spike notification to be created 6 years ago
20210128083453_cascade_site_deletion.exs Cascade site_membership deletion 6 years ago
20210128084657_create_api_keys.exs Stats API (#679) 6 years ago
20210209095257_add_last_payment_details.exs Track billing cycles (#697) 6 years ago
20210406073254_add_name_to_shared_links.exs Add name to shared links (#910) 6 years ago
20210409074413_add_unique_index_to_shared_link_name.exs Add unique index to shared link name 6 years ago
20210409082603_add_api_key_scopes.exs Add API key scopes 6 years ago
20210420075623_add_sent_renewal_notifications.exs Send renewal notification for annual subscriptions (#949) 6 years ago
20210426075157_upgrade_oban_jobs_to_v9.exs Upgrades Oban to v2.6.1 (#967) 6 years ago
20210513091653_add_currency_to_subscription.exs Localize billing screens 6 years ago
20210525085655_add_rate_limit_to_api_keys.exs Add rate limit to API requests 6 years ago
20210531080158_add_role_to_site_memberships.exs Invitations (#1122) 6 years ago
20210601090924_add_invitations.exs Invitations (#1122) 6 years ago
20210604085943_add_locked_to_sites.exs Invitations (#1122) 6 years ago
20210629124428_cascade_site_deletion_to_invitations.exs Cascade site deletion to invitations 5 years ago
20210726090211_make_invitation_email_case_insensitive.exs Make invitations email case insensitive 5 years ago
20210906102736_memoize_setup_complete.exs Memoize has_stats? (#1302) 5 years ago
20210908081119_allow_trial_expiry_to_be_null.exs Remove trial banner for admins & viewers (#1308) 5 years ago
20211020093238_add_enterprise_plans.exs Add enterprise plans 5 years ago
20211022084427_add_site_limit_to_enterprise_plans.exs Check site limit for enterprise customers 5 years ago
20211028122202_grace_period_end.exs Remove grace period if user upgrades 5 years ago
20211110174617_add_site_imported_source.exs [Continued] Google Analytics import (#1753) 5 years ago
20211202094732_remove_tweets.exs Remove Twitter stuff 5 years ago
20220405124819_add_stats_start_date.exs Add stats_start_date field 5 years ago
20220408071645_create_oban_peers.exs Upgrade Oban & configure Stager plugin (#1822) 5 years ago
20220408080058_swap_primary_oban_indexes.exs Upgrade Oban & configure Stager plugin (#1822) 5 years ago
20220421074114_create_feature_flags_table.exs Add fun with flags library 5 years ago
20221109082503_add_rate_limiting_to_sites.exs Add sites metadata rate limit migration (#2428) 4 years ago
20221123104203_index_updated_at_for_sites.exs Migration: index Sites.updated_at (#2467) 4 years ago
20221228123226_cascade_delete_sent_renewal_notifications.exs Cascade delete sent_renewal_notifications table when user is deleted (#2549) 4 years ago
20230301095227_add_native_stats_start_date.exs Add a migration for native_stats_start_at (#2716) 4 years ago
20230328062644_allow_domain_change.exs Migration: enable domain changes (upcoming feature) (#2802) 4 years ago
20230406110926_associate-goals-with-sites.exs Migrate and freeze goals creation (#2833) 4 years ago
20230410070312_fixup_goals_sites_assoc.exs Associate goals with sites, not domains (#2828) 4 years ago
20230417092745_add_monetary_value_to_goals.exs Add currency field to goals table (#2955) 4 years ago
20230417095029_init_funnels.exs Migration: add funnel related tables (#3022) 3 years ago
20230503094245_add_event_prop_allowlist_to_site.exs Postgres migration to add `allowed_event_props` field to `site` (#2894) 4 years ago
20230516131041_add_unique_index_to_api_keys.exs Add unique constraint to api keys (#2931) 4 years ago
20230530161856_add_enable_feature_fields_for_site.exs add migration (#2988) 3 years ago
20230724131709_change_allowed_event_props_type.exs Create props settings page (#3191) 3 years ago
20230802081520_cascade_delete_user.exs [pg migration] Delete account with multiple subscriptions (#3220) 3 years ago
20230914071244_fix_broken_goals.exs Make FixBrokenGoals migration idempotent (#3405) 3 years ago
20230914071245_goals_unique.exs OpenAPI: first pass on Plugins API - Shared Links (#3378) 3 years ago
20230925072840_plugins_api_tokens.exs Implement Plugins API Token schema (#3370) 3 years ago
20231003081927_add_user_previous_email.exs Add `previous_email` column to `users` (#3406) 3 years ago
20231010074900_add_unique_index_on_site_memberships_site_id_when_owner.exs Add constraint enforcing at most one owner membership per site (#3403) 3 years ago
20231011101825_add_email_activation_codes.exs Add `email_activation_codes` table (#3426) 3 years ago
20231018081657_add_last_used_at_to_plugins_api_tokens.exs Track tokens usage (#3438) 3 years ago
20231109090334_add_site_user_preferences.exs Create `site_user_preferences` table and apply LV fix (#3506) 3 years ago
20231115131025_add_limits_to_enterprise_plans.exs Configurable limits for enterprise plans (#3527) 3 years ago
20231115140646_add_totp_user_fields_and_recovery_codes.exs Create migration adding TOTP fields to `users` and recovery codes table (#3535) 3 years ago
20231121131602_create_plans_table.exs Dump plan information to PostgreSQL (#3543) 3 years ago
20231127132321_remove_custom_domains.exs Remove custom domains support + update build options (#3559) 3 years ago
20231129103158_add_allow_next_upgrade_override_to_users.exs Define a better monthly pageview usage (#3564) 3 years ago
20231129161022_add_totp_token_to_users.exs Add `totp_token` string field to `users` (#3592) 3 years ago
20231204151831_backfill_last_bill_date_to_subscriptions.exs add migration (#3590) 3 years ago
20231208125624_add_data_retention_in_years_to_plans.exs Add data retention to the choose plan page (#3605) 3 years ago
20231211092344_add_accept_traffic_until_to_sites.exs Migration: Add `accept_traffic_until` to "sites" (#3627) 3 years ago
20231219083050_track_accept_traffic_until_notifcations.exs Migrations for #3641 (#3644) 3 years ago
20231220072829_add_accept_traffic_until_to_user.exs Migrations for #3641 (#3644) 3 years ago
20231220101920_backfill_accept_traffic_until.exs Lock traffic data backfill (#3648) 3 years ago
20240103090304_upgrade_oban_jobs_to_v12.exs Upgrade stack (deps, elixir 1.16, OTP 26.2.1) (#3678) 3 years ago
20240123085318_add_ip_block_list_table.exs Shields IP blocklist: migration (#3779) 3 years ago
20240123095646_remove_google_analytics_imports_jobs.exs Add table migrations for supporting multiple imports per site (#3785) 3 years ago
20240123144308_add_site_imports.exs Add table migrations for supporting multiple imports per site (#3785) 3 years ago
20240129102900_migrate_accepted_traffic_until.exs Backfill accepted_traffic_until for active subscriptions (#3736) 3 years ago
20240129113531_backfill_accept_traffic_until_for_users_missing_notifications.exs Shift accepted_traffic_until for possibly delayed notifications (#3738) 3 years ago
20240214114158_add_legacy_flag_to_site_imports.exs Add `legacy` flag column to `site_imports` schema (#3842) 3 years ago
20240220144655_cascade_delete_ip_rules.exs Allow site deletion with IP Rules stored (#3804) 3 years ago
20240221122626_shield_country_rules.exs Migration: add country rules (#3834) 3 years ago
20240307083402_shield_page_rules.exs Pages shield (#3918) 3 years ago
20240319094940_add_label_to_site_imports.exs Add `label` column to `site_imports` schema (#3926) 3 years ago