Skip to content

Replace ldap group select2 selector

What does this MR do and why?

Describe in detail what your merge request does and why.

Replace ldap group select2 selector

  • replaces select2 instance with GlListbox
  • retrieve initial values on load
  • debounce search
  • track provider element changes and update search on change of provider
  • update form element with selected value
  • add error state if groups can not be retrieved
  • update feature specs

Changelog: changed

EE: true

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Scenario Before After
video berfore after
default Screen_Shot_2022-12-04_at_14.55.47 Screen_Shot_2022-12-04_at_14.52.07
open Screen_Shot_2022-12-04_at_14.55.54 image
searching Screen_Shot_2022-12-04_at_14.56.00 Screen_Shot_2022-12-04_at_14.52.34
results Screen_Shot_2022-12-04_at_14.57.44 Screen_Shot_2022-12-04_at_14.52.18
selected Screen_Shot_2022-12-04_at_14.57.52 Screen_Shot_2022-12-04_at_14.52.26
error on group load error_-_old error_search_-_new

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Add LDAP to your GDK
  2. Login as root under standard => Navigate to https://gdk.test:3443/groups/flightjs/-/ldap_group_links
  3. Select LDAP Group cn from the sync option
  4. Select a group to add

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #374117 (closed)

Edited by Alexander Turinske

Merge request reports