GNOME Bugzilla – Bug 768516
photos-query: Add query for items in a collection
Last modified: 2018-01-23 10:04:55 UTC
It'd be nice to have a function to get all the items from a collection. Such function can be used for calculating the save size and for exporting items from a collection. A tentative name could be 'photos_query_collection_items_job_run' which should get as parameter the name of the collection. The _finish function would then return the GList of PhotosBaseItem with the items in the collection. The challenge of adding such a function is dealing with the use of the current state context in the QueryBuilder code. The easiest solution is to create a new SearchContext inside photos_query_collection_items_job. The "proper" solution is to take the dependency of search context out of the QueryBuilder.
Created attachment 331115 [details] [review] Add job to query items in a collection Not quite happy with how this turned out, but it's time to gather some feedback on the overall approach.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-photos/issues/48.