From 2994cbfbc3aa346816a0d1ba268c89754711e967 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Wed, 6 Dec 2023 21:18:00 +0000 Subject: [PATCH] feat: put all year in hog images under a single URL path (#19147) * feat: add the survey year in hog imageS * feat: all year in hog images from one root --- posthog/api/test/test_feature_flag.py | 4 ++-- posthog/year_in_posthog/2023.html | 2 +- posthog/year_in_posthog/hibernating.html | 4 ++-- .../images/{ => year_in_hog}/background.png | Bin .../badges/2023_astronaut.png} | Bin .../badges/2023_astronaut.webp} | Bin .../badges/2023_champion.png} | Bin .../badges/2023_champion.webp} | Bin .../badges/2023_curator.png} | Bin .../badges/2023_curator.webp} | Bin .../badges/2023_deep_diver.png} | Bin .../badges/2023_deep_diver.webp} | Bin .../badges/2023_flag_raiser.png} | Bin .../badges/2023_flag_raiser.webp} | Bin .../badges/2023_popcorn_muncher.png} | Bin .../badges/2023_popcorn_muncher.webp} | Bin .../images/year_in_hog/badges/2023_reporter.png | Bin 0 -> 57327 bytes .../year_in_hog/badges/2023_reporter.webp | Bin 0 -> 43116 bytes .../badges/2023_scientist.png} | Bin .../badges/2023_scientist.webp} | Bin .../images/{ => year_in_hog}/logomark.png | Bin .../open-graph/2023_astronaut.png} | Bin .../open-graph/2023_champion.png} | Bin .../open-graph/2023_curator.png} | Bin .../open-graph/2023_deep_diver.png} | Bin .../open-graph/2023_flag_raiser.png} | Bin .../open-graph/2023_popcorn_muncher.png} | Bin .../year_in_hog/open-graph/2023_reporter.png | Bin 0 -> 53168 bytes .../open-graph/2023_scientist.png} | Bin .../images/{ => year_in_hog}/sleeping-hog.png | Bin posthog/year_in_posthog/sharing-buttons.html | 14 +++++++------- posthog/year_in_posthog/year_in_posthog.py | 6 +++--- 32 files changed, 15 insertions(+), 15 deletions(-) rename posthog/year_in_posthog/images/{ => year_in_hog}/background.png (100%) rename posthog/year_in_posthog/images/{badges/2022_astronaut.png => year_in_hog/badges/2023_astronaut.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_astronaut.webp => year_in_hog/badges/2023_astronaut.webp} (100%) rename posthog/year_in_posthog/images/{badges/2022_champion.png => year_in_hog/badges/2023_champion.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_champion.webp => year_in_hog/badges/2023_champion.webp} (100%) rename posthog/year_in_posthog/images/{badges/2022_curator.png => year_in_hog/badges/2023_curator.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_curator.webp => year_in_hog/badges/2023_curator.webp} (100%) rename posthog/year_in_posthog/images/{badges/2022_deep_diver.png => year_in_hog/badges/2023_deep_diver.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_deep_diver.webp => year_in_hog/badges/2023_deep_diver.webp} (100%) rename posthog/year_in_posthog/images/{badges/2022_flag_raiser.png => year_in_hog/badges/2023_flag_raiser.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_flag_raiser.webp => year_in_hog/badges/2023_flag_raiser.webp} (100%) rename posthog/year_in_posthog/images/{badges/2022_popcorn_muncher.png => year_in_hog/badges/2023_popcorn_muncher.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_popcorn_muncher.webp => year_in_hog/badges/2023_popcorn_muncher.webp} (100%) create mode 100644 posthog/year_in_posthog/images/year_in_hog/badges/2023_reporter.png create mode 100644 posthog/year_in_posthog/images/year_in_hog/badges/2023_reporter.webp rename posthog/year_in_posthog/images/{badges/2022_scientist.png => year_in_hog/badges/2023_scientist.png} (100%) rename posthog/year_in_posthog/images/{badges/2022_scientist.webp => year_in_hog/badges/2023_scientist.webp} (100%) rename posthog/year_in_posthog/images/{ => year_in_hog}/logomark.png (100%) rename posthog/year_in_posthog/images/{open-graph/2022_astronaut.png => year_in_hog/open-graph/2023_astronaut.png} (100%) rename posthog/year_in_posthog/images/{open-graph/2022_champion.png => year_in_hog/open-graph/2023_champion.png} (100%) rename posthog/year_in_posthog/images/{open-graph/2022_curator.png => year_in_hog/open-graph/2023_curator.png} (100%) rename posthog/year_in_posthog/images/{open-graph/2022_deep_diver.png => year_in_hog/open-graph/2023_deep_diver.png} (100%) rename posthog/year_in_posthog/images/{open-graph/2022_flag_raiser.png => year_in_hog/open-graph/2023_flag_raiser.png} (100%) rename posthog/year_in_posthog/images/{open-graph/2022_popcorn_muncher.png => year_in_hog/open-graph/2023_popcorn_muncher.png} (100%) create mode 100644 posthog/year_in_posthog/images/year_in_hog/open-graph/2023_reporter.png rename posthog/year_in_posthog/images/{open-graph/2022_scientist.png => year_in_hog/open-graph/2023_scientist.png} (100%) rename posthog/year_in_posthog/images/{ => year_in_hog}/sleeping-hog.png (100%) diff --git a/posthog/api/test/test_feature_flag.py b/posthog/api/test/test_feature_flag.py index 9e33e55ca1a51..d5135c1dc1a93 100644 --- a/posthog/api/test/test_feature_flag.py +++ b/posthog/api/test/test_feature_flag.py @@ -1125,7 +1125,7 @@ def test_my_flags_is_not_nplus1(self) -> None: format="json", ).json() - with self.assertNumQueries(10): + with self.assertNumQueries(FuzzyInt(10, 11)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags/my_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -1140,7 +1140,7 @@ def test_my_flags_is_not_nplus1(self) -> None: format="json", ).json() - with self.assertNumQueries(10): + with self.assertNumQueries(FuzzyInt(10, 11)): response = self.client.get(f"/api/projects/{self.team.id}/feature_flags/my_flags") self.assertEqual(response.status_code, status.HTTP_200_OK) diff --git a/posthog/year_in_posthog/2023.html b/posthog/year_in_posthog/2023.html index 04a533f0288cd..dca77a75bc656 100644 --- a/posthog/year_in_posthog/2023.html +++ b/posthog/year_in_posthog/2023.html @@ -16,7 +16,7 @@ - +