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
228
Issues
228
List
Boards
Labels
Service Desk
Milestones
Merge Requests
34
Merge Requests
34
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
Compare Revisions
fffb5e9018caffd3b125b2222c5fe8134623da64...c451b8fea3bd34bcfec3a5c2ffd25d7c9143fbb0
Source
c451b8fea3bd34bcfec3a5c2ffd25d7c9143fbb0
Select Git revision
...
Target
fffb5e9018caffd3b125b2222c5fe8134623da64
Select Git revision
Compare
Commits (2)
(chore): export metric as object, temporarily
· 3ab958f4
Mark Harding
authored
3 hours ago
3ab958f4
(fix): selected filters
· c451b8fe
Mark Harding
authored
2 hours ago
c451b8fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
AbstractFilter.php
Core/Analytics/Dashboards/Filters/AbstractFilter.php
+16
-0
PlatformFilter.php
Core/Analytics/Dashboards/Filters/PlatformFilter.php
+1
-1
TrafficDashboard.php
Core/Analytics/Dashboards/TrafficDashboard.php
+1
-1
No files found.
Core/Analytics/Dashboards/Filters/AbstractFilter.php
View file @
c451b8fe
...
...
@@ -19,6 +19,22 @@ abstract class AbstractFilter
/** @var string */
protected
$selectedOption
;
/**
* Set the selected option and toggle if selected
* @param string $selectedOptionId
* @return self
*/
public
function
setSelectedOption
(
string
$selectedOptionId
)
:
self
{
$this
->
selectedOption
=
$selectedOptionId
;
foreach
(
$this
->
options
->
getOptions
()
as
$k
=>
$option
)
{
if
(
$option
->
getId
()
===
$selectedOptionId
)
{
$option
->
setSelected
(
true
);
}
}
return
$this
;
}
/**
* Export
* @param array $extras
...
...
This diff is collapsed.
Click to expand it.
Core/Analytics/Dashboards/Filters/PlatformFilter.php
View file @
c451b8fe
...
...
@@ -7,7 +7,7 @@ class PlatformFilter extends AbstractFilter
protected
$id
=
"platform"
;
/** @var string */
protected
$label
=
"Platform
types
"
;
protected
$label
=
"Platform"
;
public
function
__construct
()
{
...
...
This diff is collapsed.
Click to expand it.
Core/Analytics/Dashboards/TrafficDashboard.php
View file @
c451b8fe
...
...
@@ -92,7 +92,7 @@ class TrafficDashboard implements DashboardInterface
'category'
=>
'traffic'
,
'timespan'
=>
$this
->
timespansCollection
->
getSelected
()
->
getId
(),
'timespans'
=>
$this
->
timespansCollection
->
export
(),
'metric'
=>
$this
->
metricsCollection
->
getSelected
()
->
getId
(),
'metric'
=>
$this
->
metricsCollection
->
getSelected
()
->
export
(),
'metrics'
=>
$this
->
metricsCollection
->
export
(),
'filter'
=>
$this
->
filtersCollection
->
getSelectedIds
(),
'filters'
=>
$this
->
filtersCollection
->
export
(),
...
...
This diff is collapsed.
Click to expand it.