mirror of
https://github.com/plausible/analytics.git
synced 2024-09-11 09:56:02 +03:00
* 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>
16 lines
569 B
Elixir
16 lines
569 B
Elixir
{:ok, _} = Application.ensure_all_started(:ex_machina)
|
|
Mox.defmock(Plausible.HTTPClient.Mock, for: Plausible.HTTPClient.Interface)
|
|
Application.ensure_all_started(:double)
|
|
FunWithFlags.enable(:window_time_on_page)
|
|
FunWithFlags.enable(:imports_exports)
|
|
FunWithFlags.enable(:shield_pages)
|
|
Ecto.Adapters.SQL.Sandbox.mode(Plausible.Repo, :manual)
|
|
|
|
if Mix.env() == :small_test do
|
|
IO.puts("Test mode: SMALL")
|
|
ExUnit.configure(exclude: [:slow, :minio, :full_build_only])
|
|
else
|
|
IO.puts("Test mode: FULL")
|
|
ExUnit.configure(exclude: [:slow, :minio, :small_build_only])
|
|
end
|