Ticket #206 (closed enhancement: fixed)
/collection problem
| Reported by: | Michiel.Schok | Owned by: | robert |
|---|---|---|---|
| Priority: | major | Milestone: | MediaMosa 2.3 |
| Component: | Core | Version: | |
| Keywords: | Cc: | ||
| MoSCoW: | Must Have | Estimated time after impact analysis: | |
| Related to project: | none | Tested: | yes |
| Accepted: | yes | Estimated Hours: | 16 |
Description
In the /collection results, the total number of assets per collection is given in the <numofvideos> element.
<request_uri>[GET] collection?limit=3</request_uri>
...
<items>
<item id="1">
<coll_id>MXxvBAAhJzEhEboFK7pp9sVd</coll_id>
...
<numofvideos>1</numofvideos>
</item>
</items>
If this collection is slaved to another application, it appears in their results with the same amount of videos.
But.... if only a subset of the videos contain mediafiles that are slaved to the same application, a subsequent
/collection/{id}/asset call can report quite different numbers.
At the moment (nov 18th 2009), at the Core staging environment, we observe that certain NIBG collections contain hundreds or thousands of assets using the /collection?title=acad&limit=20 call.
When we look into the collections and request the asset list using /collection/{id}/asset?limit=10 the collections appear empty (no assets found).
On Core production, there is a discrepancy of about 30 assets between certain collections (758 with 20k+ assets).
This behaviour is 'by design', but hardly documented. If master/slave gets an overhaul, maybe this kind of behaviour can be changed.
