Fix metadata loading upon `Resource.objects()`
Given the discussions in !10 (merged) especially
!10 (comment 2097758) I tried to get all metadata correctly into the FileObject
s. If I saw it correctly, the items of the two dictionaries are in the correct order and can simply be zip
ed?! If this is not the case, this MR would result in an inconsistent data-metadata-mapping.
Merge request reports
Activity
No, I think this isn't possible. I had this in an earlier version (like way before 0.5 or 0.4). The problem is, that the fileStorage contains files without metadata and the metadata storage does not have any entry for those. So you have files A, B, C, D and metadata M_A, M_C, M_D, but B would get M_C and c would get M_D.
The ordering could also be inconsistent in general I think. It would certainly a lot easier, if it would just be one dict with the fileStorage including the metadata. Or at least identical keys in both dictionaries - and what is it with using lists instead of dicts anways? AFAIK filesnames cannot appear twice, so this is kinda stupid. Hope they'll fix these design decisions with their APIv2...mentioned in merge request !13 (closed)