From 90786cb3bcf82a358c436075878470f29da73d01 Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Tue, 29 Nov 2022 10:12:36 -0300 Subject: [PATCH] Remove intervals feature flag (#2474) This commit removes the intervals feature flag, as this feature has already been released to 100% of the users. --- CHANGELOG.md | 1 + assets/js/dashboard/stats/graph/visitor-graph.js | 3 +-- lib/plausible_web/controllers/stats_controller.ex | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 70c7e2fc2..d1e98c321 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ## Unreleased ### Added +- Set a different interval on the top graph plausible/analytics#1574 (thanks to @Vigasaurus for this feature) - A `tagged-events` script extension for out-of-the-box custom event tracking - The ability to escape `|` characters with `\` in Stats API filter values - An upper bound of 1000 to the `limit` parameter in Stats API diff --git a/assets/js/dashboard/stats/graph/visitor-graph.js b/assets/js/dashboard/stats/graph/visitor-graph.js index 183d65bb4..8f8e8c40f 100644 --- a/assets/js/dashboard/stats/graph/visitor-graph.js +++ b/assets/js/dashboard/stats/graph/visitor-graph.js @@ -295,8 +295,7 @@ class LineGraph extends React.Component { { this.downloadLink() } { this.samplingNotice() } { this.importedNotice() } - { site.flags && site.flags.intervals && - } + diff --git a/lib/plausible_web/controllers/stats_controller.ex b/lib/plausible_web/controllers/stats_controller.ex index b18872357..fc99b4772 100644 --- a/lib/plausible_web/controllers/stats_controller.ex +++ b/lib/plausible_web/controllers/stats_controller.ex @@ -308,8 +308,7 @@ defmodule PlausibleWeb.StatsController do defp get_flags(user) do %{ - custom_dimension_filter: FunWithFlags.enabled?(:custom_dimension_filter, for: user), - intervals: FunWithFlags.enabled?(:intervals, for: user) + custom_dimension_filter: FunWithFlags.enabled?(:custom_dimension_filter, for: user) } end