UserOfficeProject / issue-tracker

Shared place for features and bugs from all collaborators.
0 stars 0 forks source link

The user experience of selecting beamline manager for a new experimental area is terrible #974

Closed ACLay closed 7 months ago

ACLay commented 9 months ago

What is the problem and why is it a problem

The user list for beamline manager selection shown when attempting to create a new experimental area is incredibly unpleasant to use. It's

Steps to reproduce (if it's a bug).

ACLay commented 9 months ago

I wonder if this is related to, and if so how much is due to #970

Bhaswati1148 commented 9 months ago

The api getUsers is fetching the entire set of user's records (approx. more than 11.5k) from postgress database Although user role is passed but its never been used while querying the database.

The user numbers fetched from postgress is then used in getStfcBasicPeopleByUserNumbers Effectively two database calls with large set of users seems to be a probable cause for slow loading of the beam line manager drop down list.

Bhaswati1148 commented 8 months ago

INSTRUMENT_SCIENTIST user role is passed from front end. If this is taken into consideration while querying the postgress database, only two records are fetched as of now. This seems a little weird in production. Discussed the situation with @ACLay and @srconway. We need to clarify from Emma Gozzard