Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kpi_analytics
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
kpi_analytics
Commits
f1277ef9
Commit
f1277ef9
authored
1 year ago
by
Maksym.Fedorchuk
Committed by
Taras Kruts
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3386056
: Add compatibility with Drupal 10
parent
198ed442
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kpi_analytics.info.yml
+1
-1
1 addition, 1 deletion
kpi_analytics.info.yml
src/Plugin/KPIVisualization/MorrisTagFollowGraphKPIVisualization.php
+2
-0
2 additions, 0 deletions
...KPIVisualization/MorrisTagFollowGraphKPIVisualization.php
with
3 additions
and
1 deletion
kpi_analytics.info.yml
+
1
−
1
View file @
f1277ef9
name
:
'
KPI
Analytics'
type
:
module
description
:
'
KPI
Analytics
architecture
used
in
the
Open
Social
Drupal
distribution.'
core_version_requirement
:
^9
core_version_requirement
:
^9
|| ^10
package
:
Social
php
:
8.0
dependencies
:
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/KPIVisualization/MorrisTagFollowGraphKPIVisualization.php
+
2
−
0
View file @
f1277ef9
...
...
@@ -48,6 +48,7 @@ class MorrisTagFollowGraphKPIVisualization extends KPIVisualizationBase {
$new_followers
=
0
;
if
(
!
empty
(
$tids
))
{
$flags
=
$flagging_storage
->
getAggregateQuery
()
->
accessCheck
(
TRUE
)
->
condition
(
'entity_id'
,
$tids
,
'IN'
)
->
condition
(
'entity_type'
,
'taxonomy_term'
)
->
groupBy
(
'uid'
)
...
...
@@ -55,6 +56,7 @@ class MorrisTagFollowGraphKPIVisualization extends KPIVisualizationBase {
->
execute
();
$new_followers
=
$flagging_storage
->
getAggregateQuery
()
->
accessCheck
(
TRUE
)
->
condition
(
'entity_id'
,
$tids
,
'IN'
)
->
condition
(
'entity_type'
,
'taxonomy_term'
)
->
condition
(
'created'
,
strtotime
(
'first day of this month'
),
'>='
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment