Content
View differences
Updated by Markus Kahl over 4 years ago
### **Environment**:
Your OpenProject Version: 12.0.5
### **Steps to reproduce:**
1. Choose N and set the minimum objects per page under Admin -> System Settings -> General to N (e.g. 5)
2. Create N + 1 101 projects
3. 2. Create a new project and try to set the first project you created in step 1 as its parent (without going to said project first)
Note: the same issues applies when trying to change an existing project's parent.
### **Actual Behavior**
Only the N most 100 most recently created projects are offered in the parent selection.
### **Expected Behavior**
Every suitable project should be offered.
**Discussion**
When loading the project settings or creating a new project the available projects API is called without any filters once. It just returns all projects. Since it's paginated, it only returns the last N. 100.
This result then is filtered client-side in the parent selection auto completer.
Instead when the user types in the auto-completer the available projects API should be called with the user's query as a project name filter.
Your OpenProject Version: 12.0.5
### **Steps to reproduce:**
1. Choose N and set the minimum objects per page under Admin -> System Settings -> General to N (e.g. 5)
2. Create N + 1
3.
Note: the same issues applies when trying to change an existing project's parent.
### **Actual Behavior**
Only the N most
### **Expected Behavior**
Every suitable project should be offered.
**Discussion**
When loading the project settings or creating a new project the available projects API is called without any filters once. It just returns all projects. Since it's paginated, it only returns the last N.
This result then is filtered client-side in the parent selection auto completer.
Instead when the user types in the auto-completer the available projects API should be called with the user's query as a project name filter.