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

New test user upload process #75

Closed
5 of 7 tasks
ghost opened this issue Mar 7, 2024 · 1 comment
Closed
5 of 7 tasks

New test user upload process #75

ghost opened this issue Mar 7, 2024 · 1 comment
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Mar 7, 2024

We want to create a new process which will enable our test user to directly upload their data to their blob storage and the Database.

We need to create a way for our trusted user to upload their data through our process. I leave this part of the issue to the backend/frontend team to figure how to connect us with the users.

Sequence of the uploading process

sequenceDiagram;
  actor User
  box grey Ai-Lab services
  participant Frontend
  participant Backend
  participant Datastore
  end
  box grey Storage services
  participant PostgreSQL Database
  participant Azure Storage
  end

    User ->> Frontend: Upload session request
    Frontend -->> User: Show session form
    User -) Frontend: Fill form :<br> Seed selection, nb Seeds/Pic, Zoom
    User -) Frontend: Upload: session folder
    Frontend ->> Backend: Upload from trusted user request: <br> Seed info, nbSeeds/Pic, Zoom ,<br> Session Folder & User
    Backend -) Datastore: upload_picture_set (cursor, pictures, user_id, seed_name, zoom_level, nb_seeds)
    Datastore --> PostgreSQL Database: is_seed_registered(seed_name)
    Datastore --> PostgreSQL Database: is_a_user_id(user_id)
    Datastore -) PostgreSQL Database: get_container_url()
    Datastore ->> Datastore: build_picture_set()
    Datastore -) PostgreSQL Database: new_picture_set(user_id)
    Datastore -) Azure Storage: create_folder(picture_set_id)
    loop for each picture_encoded in pictures
      Datastore -) PostgreSQL Database: new_picture(seed_id,picture_set_id)
      Datastore -) Azure Storage: upload_image(picture_encoded)
      Datastore ->> Datastore: build_picture(picture_encoded,blob_url)
      Datastore -) PostgreSQL: update_picture_metadata(picture_id,picture)
    end

Loading

Inputs needed:

  • userEmail
  • seed info (this needs to be validated)
  • number of seeds (integer)
  • zoom level (float)
  • folder (with the pictures)

Backend:

Frontend:

DataBase :

@ghost ghost added this to Database and Nachet Mar 7, 2024
@ghost ghost removed this from Database Mar 7, 2024
@MaxenceGui
Copy link

I think we should consider this issue as an epic since it could lead to tasks being done in the backend and the database (as well as eventually the frontend?)

@MaxenceGui MaxenceGui moved this to Todo in Nachet Mar 12, 2024
@ghost ghost mentioned this issue Mar 12, 2024
6 tasks
@ghost ghost added this to Database Mar 12, 2024
@ghost ghost added the Epic label Mar 12, 2024
@Francois-Werbrouck Francois-Werbrouck moved this to In Progress in Database Mar 14, 2024
@Francois-Werbrouck Francois-Werbrouck moved this from Todo to In Progress in Nachet Mar 19, 2024
@MaxenceGui MaxenceGui removed their assignment Apr 26, 2024
@Francois-Werbrouck Francois-Werbrouck moved this from In Progress to On Hold in Nachet May 22, 2024
@Francois-Werbrouck Francois-Werbrouck moved this from In Progress to Done in Database Jul 11, 2024
@github-project-automation github-project-automation bot moved this from On Hold to Done in Nachet Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Archived in project
Development

No branches or pull requests

2 participants