mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
4967960278
* Set log_comment with request information * CRMAuthPlug -> SuperAdminOnlyPlug * Super basic debug view * Handle clustered setups * Changelog entry * Cleanup * fragment trick to use ecto querying, filtering * Move clustered_table? function to IngestRepo module * Format * More resilient user_id getting in helper
12 lines
290 B
Elixir
12 lines
290 B
Elixir
defmodule PlausibleWeb.DebugView do
|
|
use PlausibleWeb, :view
|
|
|
|
def controller_name(phoenix_controller_name) do
|
|
phoenix_controller_name
|
|
|> String.to_existing_atom()
|
|
|> Module.split()
|
|
|> Enum.drop_while(&String.starts_with?(&1, "Plausible"))
|
|
|> Enum.join(".")
|
|
end
|
|
end
|