Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve pictures and inferences for a given folder #69

Closed
3 tasks done
sylvanie85 opened this issue Jul 15, 2024 · 0 comments · Fixed by #89
Closed
3 tasks done

Retrieve pictures and inferences for a given folder #69

sylvanie85 opened this issue Jul 15, 2024 · 0 comments · Fixed by #89
Assignees

Comments

@sylvanie85
Copy link
Contributor

sylvanie85 commented Jul 15, 2024

ai-cfia/nachet-frontend#172 : "As a User, I'd like to be able to access the pictures from other folders"

backend related issue : ai-cfia/nachet-backend#105

We want two new functions that correspond to the backend routes : first, we want to retrieve only the names of the pictures, if they've been verified or come from a batch download, for example.
Then, if the user clicks on a picture, we'll retrieve the inference and the picture from blob storage.

sequenceDiagram
    participant User
    participant FE as Frontend
    participant BE as Backend
    participant DS as Datastore

    User->>FE: ApplicationStart()
        FE-->>BE:  /directories
            BE->>DS: get_picture_sets_info(user_id)
                loop for each picture set
                    DS-->DS: get_pictures(user_id, picture_set_id)
                end
            DS-->>BE: List of picture_set with pictures data
        BE-->>FE: Response : List of picture_set with pictures name
    User->>FE: Select Folder
    FE-->>User: Display folder content (list of pictures)
    User->>FE: Select Picture
        FE->>BE: /get-picture
            BE->>DS: get_picture_inference(user_id, picture_id)
                DS-->DS: get_picture_inference(user_id, picture_id)
            DS-->>BE: Return inference as a json if exist
            BE->>DS: get_picture_blob(user_id, picture_id)
                DS-->DS: get_blob(user_id, picture_set_id)
            DS-->>BE: Return blob from azure storage
        BE-->>FE: Response : blob and inference of the picture
    FE-->>User: Display picture with inference if exist
Loading
  • update get_picture_sets_info function to retrieve pictures names and other details
  • new get_picture_inference
  • new get_picture_blob
@github-project-automation github-project-automation bot moved this to Todo in Database Jul 15, 2024
@github-project-automation github-project-automation bot moved this to Todo in Nachet Jul 15, 2024
@sylvanie85 sylvanie85 moved this from Todo to In Progress in Database Jul 15, 2024
@sylvanie85 sylvanie85 moved this from Todo to In Progress in Nachet Jul 15, 2024
sylvanie85 added a commit that referenced this issue Jul 15, 2024
sylvanie85 added a commit that referenced this issue Jul 23, 2024
@sylvanie85 sylvanie85 linked a pull request Jul 24, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In Progress to Done in Database Aug 1, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Nachet Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants