Ticket #7324 (closed enhancement: fixed)

Opened 3 years ago

Last modified 10 months ago

Add support for autocomplete users on admin permissions page

Reported by: chrisheller Assigned to: rjollos
Priority: normal Component: AutocompleteUsersPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

We have added support for doing autocompletion of the subject on the Trac admin permissions page.

Autocompleting the "Add Subject to Group" is relatively straightforward.

Autocompleting the "Grant Permission" is a little bit trickier because you may also be granting permissions to groups. For that, we added general support to optionally specify that the returned list should include groups and pass that along in the request for subjects when granting permissions.

The PermissionSystem component does not have direct support for just getting the list of groups, so SQL is done against the permission table to dig out the list, which is then also filtered by the search criteria. Any matching groups are then added to the end of the user list (as opposed to sorting them into the user list itself).

Attachments

autocomplete_perms.js (216 bytes) - added by chrisheller on 07/02/10 01:23:08.
JavaScript? for autocompletion on admin permission page
autocomplete_perms.patch (3.1 kB) - added by chrisheller on 07/02/10 01:24:41.
Modifications to autocompleteusers.py for autocompleting admin perms

Change History

07/02/10 01:23:08 changed by chrisheller

  • attachment autocomplete_perms.js added.

JavaScript? for autocompletion on admin permission page

07/02/10 01:24:41 changed by chrisheller

  • attachment autocomplete_perms.patch added.

Modifications to autocompleteusers.py for autocompleting admin perms

09/08/10 10:12:47 changed by rjollos

  • owner changed from k0s to rjollos.

Changing ticket owner to be new maintainer.

07/16/12 02:27:23 changed by rjollos

This has been implemented in mitar's branch a91a35e5f6f7 and will be pulled in shortly.

07/16/12 03:50:52 changed by rjollos

#4832 closed as a duplicate.

07/16/12 03:54:21 changed by rjollos

#4832 also requests autocomplete support for the Components admin panel (and provides a patch) and for the SvnAuthzAdminPlugin. For the latter, we should add generalized support for adding autocomplete to fields, specified through trac.ini options.

07/16/12 05:34:04 changed by rjollos

  • status changed from new to assigned.

There are a couple of potential issues with this patch:

  • It assumes groups starts with an '@' character.
  • The sg_group field is not autocompleted.

07/16/12 05:52:03 changed by rjollos

(In [11730]) Refs #7324: Added support for autocompleting users and groups on the admin permissions page. Thanks to chrisheller for the initial patch.

07/16/12 06:19:22 changed by rjollos

Code review and other feedback are welcome and appreciated. My development plan is:

  • #6427 + #6444 + #7324 + #8477 (and possibly #4442) -> 0.4.2 (Trac 0.11+)
  • #8438 + #9599 (and possibly #7605) -> 0.5 (Trac 0.12+)
  • Make compatible with Trac 1.0 by using jQuery UI that ships with Trac, assuming that it has Autocomplete support bundled in. This would be similar to the work I'm doing for the DateFieldPlugin in #10107.

07/23/12 14:47:44 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

Fix is in the current dev version of the trunk and will be released with version 0.4.2 of the plugin.


Add/Change #7324 (Add support for autocomplete users on admin permissions page)




Change Properties
Action