Bug #21580
Updated by Peter Amstutz 2 months ago
h2. Problem The Public Favorites view seems to load a different (or incomplete?) list of items on the first load than the second load # Start from Home Projects # Click "Public Favorites" and note the names in the Data Explorer # Click "Public Favorites" again and the names will be different In addition, paging favorites is weird because it does not behave like project pages where it displays all the projects, then all the workflows, then all the collections; instead you get a few projects, a few workflows and a few collections split across multiple pages. This is because the underlying request is for links instead of the targeted records. h2. Proposed Solution Favorites should mimic the behavior of the group contents query. It should make a query of links to projects first, with a filter @["head_uuid", "is_a", "arvados#group"]@, then workflow runs, then workflow definitions, then collections. For paging, with offset > 0, it needs to provide the offset in the first query and subtract the value of items available from offset to determine the value of offset for the subsequent query, and so forth.