ai-cfia / ai-cfia/ailab-datastore
Rework the Fertiscan Inspection CRUD Workflow
- Lingua principale
- Python
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Currently the POST of an Inspection in the datastore goes at follows:
```mermaid
sequenceDiagram
participant User
participant FertiScan
participant datastore
participant db.metadata.inspection
participant db.queries.inspection
User->>FertiScan: Call register_analysis(cursor, container_client, user_id, hashed_pictures, analysis_dict)
FertiScan->>datastore: Create folder for all the pictures receive
FertiScan->>datastore: Upload pictures to storage in the Inspection folder created
FertiScan->>db.metadata.inspection: Build formatted analysis (build_inspection_import)
FertiScan->>db.queries.inspection: Register analysis in the database (new_inspection_with_label_info)
db.queries.inspection->>FertiScan: Return analysis_db
FertiScan->>User: Return analysis_db
```
We would like to separate this all in one process into a two steps process for the BE.
1. Upload the pictures[BLOB] of an Inspection
2. Upload analysis_dict, the data returned by the pipeline which analysed the previous pictures
With the same train of thought, we would like to have a getter that allows to fetch an inspection pictures and data separately
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.