From 58f7361b92ebad989929854da51bf6cdde07a1af Mon Sep 17 00:00:00 2001 From: Monique Rio Date: Thu, 12 Dec 2024 21:38:29 +0000 Subject: [PATCH] updated the Process Barcodes High Level Overview --- docs/digifeeds/overview.md | 53 +++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/docs/digifeeds/overview.md b/docs/digifeeds/overview.md index 56ff963..051af1a 100644 --- a/docs/digifeeds/overview.md +++ b/docs/digifeeds/overview.md @@ -187,31 +187,42 @@ sequenceDiagram ## Process Barcodes High Level Overview -```mermaidjs +```meramaidjs flowchart TD A(Get list of barcodes from zips in S3 Bucket) - B1(Add Barcode to Digifeeds Alma Set) - B2(Check Zephir for Barcode) - B3(Move zip from S3 to Google Drive if Ready) - - C1(Add Barcode to Digifeeds Alma Set) - C2(Check Zephir for Barcode) - C3(Move zip from S3 to Google Drive if Ready) - - D(Send metrics to Prometheus) - - A --> B1 - A --> C1 - subgraph "barcode 1" - B1 --> B2 - B2 --> B3 - end - subgraph "barcode 2" - C1 --> C2 + B(Divide barcodes into batches of 50 barcodes) + + C1{Is there another barcode in the list?} + C2(Add Barcode to Digifeeds Alma Set) + C3(Check Zephir for Barcode) + C4(Move zip from S3 to Google Drive if Ready) + + D1{Is there another barcode in the list?} + D2(Add Barcode to Digifeeds Alma Set) + D3(Check Zephir for Barcode) + D4(Move zip from S3 to Google Drive if Ready) + + Z(Send metrics to Prometheus) + + A --> B + B --> C1 + B --> D1 + + subgraph "batch of 50 barcodes" + C1 -- yes --> C2 C2 --> C3 + C3 --> C4 + C4 --> C1 end + - B3 --> D - C3 --> D + subgraph "batch of 50 barcodes" + D1 -- yes --> D2 + D2 --> D3 + D3 --> D4 + D4 --> D1 + end +C1 -- no --> Z +D1 -- no --> Z ```