Fixes bug in Ddr::BuildBatchFromFileUpload that caused the problem in DDK-86.
There were really two bugs here - 1. Ddr::Index::Query (deprecated) has apparently been affected by a regression such that it does not add query params in the expected way. I strongly caution against using it, and I’m going to work on migrating affected code ASAP after the break. 2. The spec tests that covered the affected functionality had a subtle bug b/c the setup did not create an item parent for the component. While technically a Component can exist without a parent Item, the collection_id method will return nil (and, importantly, not be indexed) even if it belings to a collection (via admin_policy_id), because it traverses parent.parent to get to collection.
Edited by David Chandek-Stark