Opened 4 years ago
Closed 4 years ago
#2216 closed enhancement (fixed)
Improve API for adding and removing items to an item list
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.17 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
There currently existing methods for adding or removing items to item lists typically require that Listable
items are passed. It would be nice and more efficient to have some more possibilities:
add(ItemQuery)
andremove(ItemQuery)
: This could useItemQuery.idList()
method to only load id values which should be a lot more efficient thanItemQuery.iterate()
which load full items.add(Collection<Integer>)
andremove(Collection<Integer>)
: ID values are typically easy to pass around and there is really no need to first load the full items.
Note:
See TracTickets
for help on using tickets.
In 7833: