Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Systemstatistiken
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Oldenburg
Plugins
Systemstatistiken
Commits
53c79c3a
Commit
53c79c3a
authored
5 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
fixes #18
parent
8a99ad8a
No related branches found
No related tags found
No related merge requests found
Pipeline
#31094
passed
5 months ago
Stage: packaging
Stage: release
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
controllers/statistics.php
+9
-4
9 additions, 4 deletions
controllers/statistics.php
plugin.manifest
+1
-1
1 addition, 1 deletion
plugin.manifest
with
10 additions
and
5 deletions
controllers/statistics.php
+
9
−
4
View file @
53c79c3a
...
@@ -35,6 +35,7 @@ class StatisticsController extends PluginController
...
@@ -35,6 +35,7 @@ class StatisticsController extends PluginController
$this
->
getCached
(
$this
->
semester
->
id
,
function
()
{
$this
->
getCached
(
$this
->
semester
->
id
,
function
()
{
$query
=
"SELECT `pluginid` AS id,
$query
=
"SELECT `pluginid` AS id,
`pluginclassname` AS class,
`pluginname` AS name,
`pluginname` AS name,
COUNT(`seminare`.`Seminar_id`) AS quantity
COUNT(`seminare`.`Seminar_id`) AS quantity
FROM `plugins`
FROM `plugins`
...
@@ -45,13 +46,17 @@ class StatisticsController extends PluginController
...
@@ -45,13 +46,17 @@ class StatisticsController extends PluginController
LEFT JOIN `semester_courses`
LEFT JOIN `semester_courses`
ON `Seminar_id` = `course_id`
ON `Seminar_id` = `course_id`
WHERE `semester_courses`.`semester_id` = ?
WHERE `semester_courses`.`semester_id` = ?
AND FIND_IN_SET('StandardPlugin', `plugintype`)
AND (
FIND_IN_SET('StandardPlugin', `plugintype`)
OR FIND_IN_SET('StudipModule', `plugintype`)
)
AND `plugins`.`enabled` = 'yes'
AND `plugins`.`enabled` = 'yes'
GROUP BY `pluginid`
GROUP BY `pluginid`
ORDER BY quantity DESC"
;
ORDER BY quantity DESC"
;
$plugins
=
DBManager
::
get
()
->
fetchAll
(
$query
,
[
$plugins
=
DBManager
::
get
()
->
fetchAll
(
$this
->
semester
->
id
,
$query
,
]);
[
$this
->
semester
->
id
]
);
return
array_merge
(
compact
(
'plugins'
),
[
return
array_merge
(
compact
(
'plugins'
),
[
'timestamp'
=>
time
(),
'timestamp'
=>
time
(),
...
...
This diff is collapsed.
Click to expand it.
plugin.manifest
+
1
−
1
View file @
53c79c3a
pluginname=Systemstatistiken
pluginname=Systemstatistiken
pluginclassname=SysStats
pluginclassname=SysStats
origin=UOL
origin=UOL
version=1.3
version=1.3
.1
studipMinVersion=5.0
studipMinVersion=5.0
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