-
-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Opening up discussion on a findUpdatedScenes API, first described in stashapp/stash/issues/2903. Original author @mmenanno described it as follows:
Stash-Box Backend Side
For the sake of making the process optimal Stash-Box should have a new query
findUpdatedScenesthat takes an array ofSceneUpdateInputstructured something like:{ "scene_id": "stash_id", "last_recorded_update": "external_updated_at" }This call can return a
updatedBoolean, deleted Boolean, andSceneobject for each input.
If the
last_recorded_updateis NOT older than theupdated_aton thescene_id, it will returnupdated: false,deleted: false, and no scene objectIf the
last_recorded_updateis older than theupdated_aton thescene_idbut the scene has been deleted,updated: true,deleted: true, and no scene objectIf the
last_recorded_updateis older than theupdated_aton thescene_idand the scene is not deleted,updated: true,deleted: false, and the updated Scene object
To me maybe this seems to do too much on the stash-box backend, perhaps the input would be better as the list of stash_id's and the response could be the stash_id's and their last updated time, leaving the identification of more recently scenes to the local stash application. This also seems to mirror what @stg-annon was saying. Curious to hear people's thoughts.