But I missed the significance of these.. a buildrequest does not have a single branch, repository, or codebase - it has several.  The DB `getBuildRequests` method filters by these using *any* sourcestamp attached to a buildrequest, but as you've modified things here, we would only be filtering by *one* of a buildrequest's sourcestamps.  In fact, an arbitrary one of those sourcestamps, since the code uses `[0]` and they're not in a deterministic order.

I don't see anywhere in the codebase where we're filtering on branch/repository/codebase, so I think it's safe to just omit these as potential filters.  It does raise the larger question of how to filter on attributes of sub-objects, but that doesn't need to get solved just yet.

I'm sorry to have led you astray by not seeing this in the last go-round.