Create issues from dashboard: Project drop-down is slow to load

When I want to create another issue from the issue dashboard, I can use a drop-down to select which project the new issue should go to. Populating that drop-down with a list of relevant projects is really slow at the moment:

Screenshot_from_2018-03-20_23-10-01

The drop-down uses this endpoint for me:

https://gitlab.com/api/v4/projects.json?search=&per_page=20&simple=true&membership=true&order_by=last_activity_at&with_issues_enabled=true

On the API endpoint, we use ProjectsFinder to find projects:

 ProjectsFinder.new(current_user: current_user, params: project_finder_params).execute

with

project_finder_params = {:non_public=>true, :archived=>false, :search=>""}

From Grafana:

Screenshot_from_2018-03-21_12-19-22

Screenshot_from_2018-03-21_12-19-31

Screenshot_from_2018-03-21_12-19-49

TODOs

  • Can we use user_interacted_projects here?
Edited Mar 21, 2018 by Andreas Brandl
Assignee Loading
Time tracking Loading