# Bug OP-15345 - Filter autocompleter not loading results

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15345

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.3.0 |
| Observed in versions | 14.1.0 |
| Sprint | 14.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Eric Schubert |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user to community instance

2.  Go to the work packages page 

3.  Click on "Filter"

4.  Add filter by Parent

### What is the buggy behavior?

Drop down with available work packages takes way too long to load with more than 3k WPs on community instance. It still loads but on our instance we have ten times more WPs and request just failing due to timeout. Besides, i'm not sure if clients' browser will handle that amount of records in simple dropdown.

### What is the expected behavior?

Drop down successfully loaded. 

In cases with a lot of WPs, it will be great to have pagination and simple by-name filter.

### Important note

Found some of workaround: [that example](https://community.openproject.org/api/v3/projects/14/work_packages?filters=%5B%5D&pageSize=-1) of failing api request contains empty filter and when I remove from it "filter=\[\]" request successfully runs on our instance.

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition

- [ ] Packaged installation
  
    - What distribution?

- [ ] Docker All-in-one container

- [x] Docker-compose installation

- [x] Other (please specify)

**OpenProject version**

*14.1.1 docker-compose installation with dedicated psql instance.*

*Community instance has some symptoms.*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*Any language.*
