illinois / queue

A microservice queue for holding open office hours
University of Illinois/NCSA Open Source License
82 stars 36 forks source link

Bug: Autocomplete does not filter out existing staff and admins in selection list #309

Open andrewstec opened 4 years ago

andrewstec commented 4 years ago

Severity: Low

Description: Autocomplete does not filter out existing staff and admins in the autocomplete list on the ManageStaffPanel.tsx (Manage Staff) view.

Expected behaviour: Autocomplete should filter out existing staff and admins from the autocomplete list so that admins cannot be added as a staff member (since they already have admin privileges) and staff members cannot be re-added.

Steps to Reproduce: 1) Add an admin or staff member to a course, as a staff member. 2) Type the admin or staff member into the autocomplete search box again. 3) Error appears: You will see the user appear again.

Screenshot of step 3 below: image

Screenshot of admin and staff member on team: image (Please ignore their duplicate names. I used the same name twice for quickly bootstrapping these roles in my development environment)