Information about bug
When agent's view is loaded get_users API is called, which loads all the users basic data into pinia store for faster retrieval.
Now assuming you can have more then 100k or upto 300k users, the API response time is way over 1mins, which in turn get cancelled by the CF level rules. It also blocks the listview of tickets until the users are loaded.
ref: https://github.com/frappe/helpdesk/blob/develop/helpdesk/api/session.py#L8
Possible solution:
- Limit the number of users which are loaded initially from API.
- Add function in the store to validate and fetch the missing user data on the fly.
- Store data in pinia store and return.
Version
frappe: 16.14.0
helpdesk: 1.22.1
Installation method
None
Relevant log output / Stack trace / Full Error Message.
Information about bug
When agent's view is loaded
get_usersAPI is called, which loads all the users basic data into pinia store for faster retrieval.Now assuming you can have more then 100k or upto 300k users, the API response time is way over 1mins, which in turn get cancelled by the CF level rules. It also blocks the listview of tickets until the users are loaded.
ref: https://github.com/frappe/helpdesk/blob/develop/helpdesk/api/session.py#L8
Possible solution:
Version
frappe: 16.14.0
helpdesk: 1.22.1
Installation method
None
Relevant log output / Stack trace / Full Error Message.