Bug 36031 - Disable autosearch for new wizards
Disable autosearch for new wizards
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Documentation
UCS@school 4.0 R2
Other Linux
: P5 normal with 2 votes (vote)
: UCS@school 4.1 R2
Assigned To: Florian Best
Daniel Tröder
: interim-1
Depends on:
Blocks: 41300
  Show dependency treegraph
 
Reported: 2014-10-01 07:00 CEST by Tim Petersen
Modified: 2017-10-26 12:02 CEST (History)
8 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): External feedback, Large environments, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2014-10-01 07:00:19 CEST
Reported at #2014093021000693:

The autosearch for the new school wizards (especially the school user wizard) should be disabled by default. Perhaps we can set "directory/manager/web/modules/.*/.*/search/autosearch" in postinst.
Comment 1 Florian Best univentionstaff 2014-10-01 09:09:21 CEST
Afaik the variables aren't evaluated for schoolwizards. Only real udm modules have the feature.
Comment 2 Michael Grandjean univentionstaff 2015-12-03 14:10:32 CET
This is REALLY annoying in larger environments (think 10.000+ users), because it makes the respective modules unusable for at least 30 seconds.
Comment 3 Michael Grandjean univentionstaff 2015-12-03 14:22:27 CET
So I got my stopwatch out:

School users: ~ 15.000
DC Master: virtualised on KVM, 16 GB RAM, 6 CPUs, not sure about I/O
Time from opening the "Users (school)" module until all users were shown: 79 seconds
Comment 4 Florian Best univentionstaff 2016-02-08 14:39:42 CET
This exists already:
# disable autosearch of all wizards
ucr set ucsschool/wizards/autosearch=false
# disable autosearch of only specific wizards
ucr set ucsschool/wizards/schoolwizards/computers/autosearch=false
ucr set ucsschool/wizards/schoolwizards/users/autosearch=false
ucr set ucsschool/wizards/schoolwizards/schools/autosearch=false
ucr set ucsschool/wizards/schoolwizards/classes/autosearch=false
Comment 5 Michael Grandjean univentionstaff 2016-02-08 14:54:59 CET
Yes, works fine, thx. 

But imho there should be at least a warning and a hint to this UCRV if the amount of objects exceeds a certain limit. Just like directory/manager/web/sizelimit does for the regular UMC modules.
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2016-02-09 12:59:25 CET
In UCS@school manual, we have a special section that should cover this topic:
"Hinweise für große UCS@school-Umgebungen":

http://docs.software-univention.de/ucsschool-handbuch-4.1.html#school:performance:general

Please add a small subsection, describing the problem and documenting the UCR variables for the workaround.
Comment 7 Michel Smidt 2016-02-10 10:57:28 CET
(In reply to Florian Best from comment #4)
> This exists already:
> # disable autosearch of all wizards
> ucr set ucsschool/wizards/autosearch=false
> # disable autosearch of only specific wizards
> ucr set ucsschool/wizards/schoolwizards/computers/autosearch=false
> ucr set ucsschool/wizards/schoolwizards/users/autosearch=false
> ucr set ucsschool/wizards/schoolwizards/schools/autosearch=false
> ucr set ucsschool/wizards/schoolwizards/classes/autosearch=false

How about the passwort reset (students) modul?
Do we have such a UCR variable as well?
Comment 8 Florian Best univentionstaff 2016-02-10 11:50:44 CET
(In reply to Michel Smidt from comment #7)
> How about the passwort reset (students) modul?
> Do we have such a UCR variable as well?

It uses the following variables (afaics):
directory/manager/web/modules/users/user/search/autosearch
directory/manager/web/modules/autosearch
Comment 9 Florian Best univentionstaff 2016-02-12 15:00:12 CET
Adapted the performance documentation.

The following variables exists now:
    Passwörter (Schüler), Passwörter (Lehrer): ucsschool/passwordreset/autosearch
    Lehrer zuordnen: ucsschool/assign-teacher/autosearch
    Klassen zuordnen: ucsschool/assign-classes/autosearch
    Arbeitsgruppen verwalten: ucsschool/workgroups/autosearch
    Benutzer: ucsschool/wizards/schoolwizards/users/autosearch
    Klassen: ucsschool/wizards/schoolwizards/classes/autosearch
    Rechner: ucsschool/wizards/schoolwizards/computers/autosearch
    Schulen: ucsschool/wizards/schoolwizards/schools/autosearch
    Benutzer/Klassen/Rechner/Schulen: ucsschool/wizards/autosearch

ucs-school-umc-users (11.0.2-1):
r67413 | Bug #36031: Update Copyright
r67412 | Bug #36031: make it possible to disable autosearch

ucs-school-umc-groups (5.0.1-1):
r67413 | Bug #36031: Update Copyright
r67412 | Bug #36031: make it possible to disable autosearch
Comment 10 Philipp Hahn univentionstaff 2016-02-17 15:51:48 CET
r67517 | Bug #36031 doc: Fix spelling
Comment 11 Daniel Tröder univentionstaff 2016-06-15 13:35:43 CEST
OK: manually tested: setting ucsschool/wizards/schoolwizards/users/autosearch=false / ucsschool/wizards/schoolwizards/classes/autosearch=false will disable the automatic initial search for users / groups.
Comment 12 Florian Best univentionstaff 2016-06-28 18:24:57 CEST
UCS@school 4.1 R2 has been released:
http://docs.software-univention.de/release-notes-ucsschool-4.1R2v1-de.pdf

If this error occurs again, please use "Clone This Bug".