Get all images from Glance API rather than first 25
Fixes #46 (closed).
@julianpistorius and I decided to fetch the entire list of images from Glance rather than using the API's pagination, because we want to support fuzzy/partial text search. Glance doesn't support this so we need to do it client-side, which requires the whole list of images.
Problems to fix:
-
requestImages
is a fairly heavy API call (3 seconds and possibly hundreds/thousands of results) so we should keep track of when we last received a list of images, and only re-request if our cache is stale (rather than every time a user navigates to certain views).