Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User: performance improvement assessing enabled features #2904

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/Factory/UserGroupFactory.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright (C) 2024 Xibo Signage Ltd
* Copyright (C) 2025 Xibo Signage Ltd
*
* Xibo - Digital Signage - https://xibosignage.com
*
Expand Down Expand Up @@ -56,7 +56,7 @@
*/
public function createEmpty()
{
return new UserGroup($this->getStore(), $this->getLog(), $this->getDispatcher(), $this, $this->getUserFactory());

Check warning on line 59 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 121 characters
}

/**
Expand Down Expand Up @@ -447,8 +447,6 @@
foreach ($this->getStore()->select('
SELECT `group`.groupId, `group`.features
FROM `group`
INNER JOIN `lkusergroup`
ON `lkusergroup`.groupId = `group`.groupId
WHERE `group`.groupId = :groupId
OR `group`.groupId IN (SELECT groupId FROM lkusergroup WHERE userId = :userId)
', [
Expand Down Expand Up @@ -493,7 +491,7 @@
'schedule.view' => [
'feature' => 'schedule.view',
'group' => 'scheduling',
'title' => __('Page which shows all Events added to the Calendar for the purposes of Schedule Management')

Check warning on line 494 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 126 characters
],
'schedule.agenda' => [
'feature' => 'schedule.agenda',
Expand Down Expand Up @@ -538,7 +536,7 @@
'library.view' => [
'feature' => 'library.view',
'group' => 'library',
'title' => __('Page which shows all items that have been uploaded to the Library for the purposes of Media Management')

Check warning on line 539 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 139 characters
],
'library.add' => [
'feature' => 'library.add',
Expand All @@ -553,7 +551,7 @@
'dataset.view' => [
'feature' => 'dataset.view',
'group' => 'library',
'title' => __('Page which shows all DataSets that have been created which can be used in multiple Layouts')

Check warning on line 554 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 127 characters
],
'dataset.add' => [
'feature' => 'dataset.add',
Expand All @@ -578,7 +576,7 @@
'layout.view' => [
'feature' => 'layout.view',
'group' => 'layout-design',
'title' => __('Page which shows all Layouts that have been created for the purposes of Layout Management')

Check warning on line 579 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 126 characters
],
'layout.add' => [
'feature' => 'layout.add',
Expand All @@ -598,7 +596,7 @@
'campaign.view' => [
'feature' => 'campaign.view',
'group' => 'campaigns',
'title' => __('Page which shows all Campaigns that have been created for the purposes of Campaign Management')

Check warning on line 599 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 130 characters
],
'campaign.add' => [
'feature' => 'campaign.add',
Expand Down Expand Up @@ -658,7 +656,7 @@
'playlist.view' => [
'feature' => 'playlist.view',
'group' => 'playlist-design',
'title' => __('Page which shows all Playlists that have been created which can be used in multiple Layouts')

Check warning on line 659 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 128 characters
],
'playlist.add' => [
'feature' => 'playlist.add',
Expand All @@ -673,7 +671,7 @@
'user.profile' => [
'feature' => 'user.profile',
'group' => 'users',
'title' => __('Ability to update own Profile, including changing passwords and authentication preferences')

Check warning on line 674 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 127 characters
],
'drawer' => [
'feature' => 'drawer',
Expand Down Expand Up @@ -743,12 +741,12 @@
'dashboard.playlist' => [
'feature' => 'dashboard.playlist',
'group' => 'dashboards',
'title' => __('Playlist Dashboard showing only the Playlists configured in Layouts the user has access to modify.')

Check warning on line 744 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 135 characters
],
'displays.view' => [
'feature' => 'displays.view',
'group' => 'displays',
'title' => __('Page which shows all Displays added to the platform for the purposes of Display Management')

Check warning on line 749 in lib/Factory/UserGroupFactory.php

View workflow job for this annotation

GitHub Actions / phpcs

Line exceeds 120 characters; contains 127 characters
],
'displays.add' => [
'feature' => 'displays.add',
Expand Down
Loading