Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
236
Issues
236
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
b79b3435
Commit
b79b3435
authored
39 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): ensure the date histogram is for the entire period
parent
edf8d29b
master
epic/pro-affiliate-launch
1 merge request
!368
WIP: Epic/pro affiliate launch
Pipeline
#89281892
passed with stages
in 12 minutes and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
Core/Analytics/Dashboards/Metrics/Earnings/AbstractEarningsMetric.php
...cs/Dashboards/Metrics/Earnings/AbstractEarningsMetric.php
+5
-1
Core/Analytics/Dashboards/Metrics/PageviewsMetric.php
Core/Analytics/Dashboards/Metrics/PageviewsMetric.php
+5
-1
Core/Analytics/Dashboards/Metrics/ViewsMetric.php
Core/Analytics/Dashboards/Metrics/ViewsMetric.php
+6
-1
No files found.
Core/Analytics/Dashboards/Metrics/Earnings/AbstractEarningsMetric.php
View file @
b79b3435
...
...
@@ -142,7 +142,11 @@ abstract class AbstractEarningsMetric extends AbstractMetric
'date_histogram'
=>
[
'field'
=>
'@timestamp'
,
'interval'
=>
$timespan
->
getInterval
(),
'min_doc_count'
=>
1
,
'min_doc_count'
=>
0
,
'extended_bounds'
=>
[
'min'
=>
$timespan
->
getFromTsMs
(),
'max'
=>
time
()
*
1000
,
],
],
'aggs'
=>
[
'2'
=>
[
...
...
This diff is collapsed.
Click to expand it.
Core/Analytics/Dashboards/Metrics/PageviewsMetric.php
View file @
b79b3435
...
...
@@ -139,7 +139,11 @@ class PageviewsMetric extends AbstractMetric
'date_histogram'
=>
[
'field'
=>
'@timestamp'
,
'interval'
=>
$timespan
->
getInterval
(),
'min_doc_count'
=>
1
,
'min_doc_count'
=>
0
,
'extended_bounds'
=>
[
'min'
=>
$timespan
->
getFromTsMs
(),
'max'
=>
time
()
*
1000
,
],
],
'aggs'
=>
[
'2'
=>
[
...
...
This diff is collapsed.
Click to expand it.
Core/Analytics/Dashboards/Metrics/ViewsMetric.php
View file @
b79b3435
...
...
@@ -149,12 +149,17 @@ class ViewsMetric extends AbstractMetric
'date_histogram'
=>
[
'field'
=>
'@timestamp'
,
'interval'
=>
$timespan
->
getInterval
(),
'min_doc_count'
=>
1
,
'min_doc_count'
=>
0
,
'extended_bounds'
=>
[
'min'
=>
$timespan
->
getFromTsMs
(),
'max'
=>
time
()
*
1000
,
],
],
'aggs'
=>
[
'2'
=>
[
'sum'
=>
[
'field'
=>
$field
,
//'min_doc_count' => 0,
],
],
],
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment