Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove intervals feature flag (#2474)

Vini Brasil90786cb3bcf8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70c7e2fc23..d1e98c321e 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 183d65bb4a..8f8e8c40f6 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 &&
- <IntervalPicker site={site} query={query} graphData={graphData} metric={metric} updateInterval={this.props.updateInterval}/> }
+ <IntervalPicker site={site} query={query} graphData={graphData} metric={metric} updateInterval={this.props.updateInterval}/>
</div>
<FadeIn show={graphData}>
<canvas id="main-graph-canvas" className={'mt-4 select-none ' + extraClass} width="1054" height="342"></canvas>
diff --git a/lib/plausible_web/controllers/stats_controller.ex b/lib/plausible_web/controllers/stats_controller.ex
index b18872357c..fc99b47729 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