From 67b63a9a6e59b76c0aa53d733045f4ddba31ad8d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 7 Nov 2022 09:02:09 +0100 Subject: [PATCH 1/2] Fix ecto dev warning Signed-off-by: Thomas Citharel --- lib/mobilizon.ex | 10 +++++++--- mix.exs | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/mobilizon.ex b/lib/mobilizon.ex index e7f7448b1..999e315d3 100644 --- a/lib/mobilizon.ex +++ b/lib/mobilizon.ex @@ -77,9 +77,7 @@ defmodule Mobilizon do ErrorReporting.configure() - if @env == :dev do - Ecto.DevLogger.install(Storage.Repo) - end + setup_ecto_dev_logger(@env) # Only attach the telemetry logger when we aren't in an IEx shell unless Code.ensure_loaded?(IEx) && IEx.started?() do @@ -156,4 +154,10 @@ defmodule Mobilizon do restart: :temporary } end + + defp setup_ecto_dev_logger(:dev) do + Ecto.DevLogger.install(Storage.Repo) + end + + defp setup_ecto_dev_logger(_), do: nil end diff --git a/mix.exs b/mix.exs index 8e1037401..8c98771aa 100644 --- a/mix.exs +++ b/mix.exs @@ -223,7 +223,7 @@ defmodule Mobilizon.Mixfile do {:sobelow, "~> 0.8", only: [:dev, :test]}, {:doctor, "~> 0.20.0", only: :dev}, {:haversine, "~> 0.1.0"}, - {:ecto_dev_logger, "~> 0.7", only: :dev} + {:ecto_dev_logger, "~> 0.7"} ] ++ oauth_deps() end From 8f49c66b3f912becf10c1bb67eb6481c40f6fab5 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 7 Nov 2022 09:02:20 +0100 Subject: [PATCH 2/2] Fix upcoming event groups on homeview Signed-off-by: Thomas Citharel --- js/src/views/Event/MyEventsView.vue | 6 +++--- js/src/views/HomeView.vue | 32 ++++++++++++++++++----------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/js/src/views/Event/MyEventsView.vue b/js/src/views/Event/MyEventsView.vue index 286e73090..f34ba4443 100644 --- a/js/src/views/Event/MyEventsView.vue +++ b/js/src/views/Event/MyEventsView.vue @@ -213,9 +213,9 @@