danbooru
danbooru copied to clipboard
Saved Searches Improvements
-
[ ] 1a . Add
refreshed_at
andpost_count
to the API responseThese are already included in the HTML response.
-
[ ] 1b. Optionally, or in addition to, provide a single boolean to the API response which indicates whether it still has something in Redis.
-
[ ] 2. Provide an endpoint to trigger a refresh of expired saved searches for all or relevant labels
That way the user doesn't have to use the
/posts
endpoint to refresh them, thus not executing the much heavier code on that endpoint. -
[ ] 3. Change the page provided saved search links so that it uses Javascript to load the posts page
This would include the Saved searches link that appears in the secondary menu on the posts page, and the
search:
links that appear in the side menu after having executed asearch:all
query. It would first execute 2. and then periodically poll 1. at an interval until all of a label/all has been searched. Or optional to that, only navigate to the post page once enough posts have been found to fill the post page or all searches have completed, whichever happens sooner. Maybe even provide the user with 3 behavior options for saved searches.- Right away (current behavior)
- When things fill up
- When every search completes (relevant ones only)
Probably only the 3rd behavior would require GUI feedback to let the user know that the request is processing.