13.x Fix toResourceCollection() on filtered collections
13.x Fix toResourceCollection() on filtered collections: a task in github-trending-environments-10k (Harbor dataset). Title: 13.x Fix toResourceCollection() on filtered collections
The task
**Title:** [13.x] Fix `toResourceCollection()` on filtered collections