Open sylvanie85 opened 2 weeks ago
I love the new look of this issue. tagging @ChromaticPanic for him to take a look at what will be needed for the FE 👍🏻
Looks good, we should probably deal with Retrieve first. Since that's more useful to the user for processing images and providing feedback. Create -> Retrieve -> Update -> Delete . Not sure if we already have all the back end for retrieving pictures from a folder, retrieving inferences for a picture, retrieving feedback for a picture.
Not sure if we already have all the back end for retrieving pictures from a folder, retrieving inferences for a picture, retrieving feedback for a picture.
Currently, the backend can only retrieve the directory ID and name, as well as the number of images uploaded to it. This could be a new issue on datastore to create functions to retrieve images and their inference with the directory.
This could be a new issue on datastore to create functions to retrieve images and their inference with the directory. It would also be a low effort issue for the datastore in my opinion. Most of the function to get the objects exists, we need to create a high level function to exactly output the right json.
Would we want to load all the inferences of a directory and store them in the cache of the BE which can then send them over depending on the user's requests without needing to operate a transaction with the DB each time a user access a picture within it's folder?
Context :
There are already endpoints to manage blob storage folders: one to create a directory, one to delete it, and another to get all directory names of a container. Since we now have a database, these folders are related to the picture set table.
Objective :
Therefore, we need to update these routes to create a picture set when a folder is created, delete it when the delete route is called, and retrieve the directories from the database instead of the blob storage because it's more efficient.
Delete use case diagram:
Acceptance criteria :
name
column/create-dir
route also add a picture set in the database/dir
route retrieves directories names from the database instead of from the blob storage/delete-request
route checks for validated pictures in the folder/delete-permanently
route delete all pictures, picture set, blobs using datastore function/delete-with-archive
route move verified pictures and delete others using datastore function