Iterate over the selected sets to list the elements
The ListDatasetElements now supports filtering by one set. If all sets were not selected, we should iterate over the selected sets and accumulate all ListDatasetElements results.
Workflow:
- Case 1 (
dataset.sets==dataset.selected_sets): nothing changes, callListDatasetElementsas right now - Case 2 (
dataset.sets!=dataset.selected_sets): make one call toListDatasetElementsper set indataset.selected_setsand return the results of all these calls in one big iterator.
The call is done here.
Edited by Yoann Schneider