View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 18875 | Bug reports | User / Groups / Roles | public | 2023-06-12 14:46 | 2026-11-24 21:42 |
| Reporter | gabrieljenik | Assigned To | |||
| Priority | normal | Severity | tweak | ||
| Status | closed | Resolution | won't fix | ||
| Product Version | 5.4.x | ||||
| Summary | 18875: Refactor models/services/SurveyPermissions.php | ||||
| Description | When working on 18468, a complexity check was not passed:
Agreed with Olle we should: Now we need to refactor. The method getUserGroupNames is not called by any other method in the class, and it also does not use this, and seems semantically kinda unrelated since it does not deal with permissions. Moving it out would reduce the complexity of the class slightly. Hm but only from 56 to 52, when I test it on this branch. Current limit is set to 50. What about also moving out getTooltipAllPermissions to another class? It's kinda related to presentation, and the only this access is survey id, which can be given as an argument, or constructor in a new class. More relevant on dev branch than 5.x branch tho. Maybe just suppress it in LS5 then? @SuppressWarnings(PHPMD.ExcessiveClassComplexity) | ||||
| Tags | No tags attached. | ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 6.x | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Chrome | ||||
| Database type & version | MariaDB 10.1.48 | ||||
| Server OS (if known) | Ubuntu 20 | ||||
| Webserver software & version (if known) | Apache | ||||
| PHP Version | 8.1 | ||||
| Git branch / Pull Request URL | |||||
|
I don't really understand the point under this file ? A lot must be in Permisssion , not link to Survey. Must have on all other object with Permission. And for some object there are some specificity. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-06-12 14:46 | gabrieljenik | New Issue | |
| 2023-06-12 14:46 | gabrieljenik | Issue generated from: 18468 | |
| 2023-06-12 14:46 | gabrieljenik | Relationship added | related to 18468 |
| 2023-06-12 14:47 | gabrieljenik | Status | new => confirmed |
| 2023-06-12 15:05 | DenisChenu | Note Added: 75547 | |
| 2023-06-12 15:05 | DenisChenu | Bug heat | 0 => 2 |
| 2023-08-07 16:08 | gabrieljenik | Priority | none => normal |
| 2023-08-07 16:08 | gabrieljenik | Severity | block => tweak |
| 2023-08-07 16:08 | gabrieljenik | Project | Bug reports => @10@ |
| 2026-11-24 21:42 | c_schmitz | Status | confirmed => closed |
| 2026-11-24 21:42 | c_schmitz | Resolution | open => won't fix |