Content
View differences
Updated by Jan Sandbrink 7 months ago
**As** a user
**I want to** have the autocompleter for WP relation candidates indicate required attributes to the API,
**so that** the API is able to generate autocompletion results faster.
**Acceptance criteria**
* Usability of the autocompleter for adding a work package relation remains the same
**Technical notes**
* The API request currently looks like `/api/v3/work_packages/:id/available_relation_candidates?type=relates&filters=some-filters&sortBy=some-sorting`
* It should include a `select` parameter, that reduces the result to what's necessary to show the autocompleter
* also see [https://www.openproject.org/docs/api/signaling/](https://www.openproject.org/docs/api/signaling/)
* Specifically, the `total` should not not selected
**QA Notes**
It should be possible to test that work package autocompleters work no worse than before (e.g. show all relevant information for selectable work packages still). The core of the intended change can only be seen from the network tab: When entering something into the autocompleter, the network requests should include a "select" query parameter.
**I want to** have the autocompleter for WP relation candidates indicate required attributes to the API,
**so that** the API is able to generate autocompletion results faster.
**Acceptance criteria**
* Usability of the autocompleter for adding a work package relation remains the same
**Technical notes**
* The API request currently looks like `/api/v3/work_packages/:id/available_relation_candidates?type=relates&filters=some-filters&sortBy=some-sorting`
* It should include a `select` parameter, that reduces the result to what's necessary to show the autocompleter
* also see [https://www.openproject.org/docs/api/signaling/](https://www.openproject.org/docs/api/signaling/)
* Specifically, the `total` should not not selected
**QA Notes**
It should be possible to test that work package autocompleters work no worse than before (e.g. show all relevant information for selectable work packages still). The core of the intended change can only be seen from the network tab: When entering something into the autocompleter, the network requests should include a "select" query parameter.