Skip to content

helpdesk pulls all the users in agent's view on initial load #3335

Description

@niraj2477

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions