Content
View differences
Updated by Jens Ulferts over 5 years ago
### **Environment**:
Your OpenProject Version: 11.0
### **Steps to reproduce:**
1. Have three work packages: WP1, WP2, WP3
2. Add relations, all of type "relates" from WP1 to WP2 and from WP2 to WP3 (assure this direction)
3. Fetch WP1 from the API
### **Actual Behavior**
The response has three relations embedded at `_embedded/relations/_embedded/results` and the collection has a count of 3. The transitive relation from WP1 to WP3 as well as the reflexive relation from WP1 to itself are included.
That behaviour is not visible in the UI but on larger installations, which might have 100k or more transitive relations for a work package, this will decrease the performance drastically.
### **Expected Behavior**
Only the direct relation from WP1 to WP2 should be embedded and the collection should have a count of 1.
Your OpenProject Version: 11.0
### **Steps to reproduce:**
1. Have three work packages: WP1, WP2, WP3
2. Add relations, all of type "relates" from WP1 to WP2 and from WP2 to WP3 (assure this direction)
3. Fetch WP1 from the API
### **Actual Behavior**
The response has three relations embedded at `_embedded/relations/_embedded/results` and the collection has a count of 3. The transitive relation from WP1 to WP3 as well as the reflexive relation from WP1 to itself are included.
That behaviour is not visible in the UI but on larger installations, which might have 100k or more transitive relations for a work package, this will decrease the performance drastically.
### **Expected Behavior**
Only the direct relation from WP1 to WP2 should be embedded and the collection should have a count of 1.