diff --git a/docs/images/.gitignore b/docs/images/.gitignore index 756b22fa..e33609d2 100644 --- a/docs/images/.gitignore +++ b/docs/images/.gitignore @@ -1 +1 @@ -*.svg +*.png diff --git a/docs/images/deposit-delete-chart.png b/docs/images/deposit-delete-chart.png deleted file mode 100644 index d9ba8ec4..00000000 Binary files a/docs/images/deposit-delete-chart.png and /dev/null differ diff --git a/docs/images/deposit-delete-chart.uml b/docs/images/deposit-delete-chart.uml index cde4df7f..19727df1 100644 --- a/docs/images/deposit-delete-chart.uml +++ b/docs/images/deposit-delete-chart.uml @@ -1,38 +1,33 @@ @startuml participant CLIENT as "SWORD client\n(eg. HAL)" participant DEPOSIT as "swh-deposit" participant DEPOSIT_STORAGE as "deposit storage" activate CLIENT activate DEPOSIT activate DEPOSIT_STORAGE CLIENT ->> DEPOSIT: POST /1//\nHEADER In-Progress: true DEPOSIT ->> DEPOSIT_STORAGE: check authentication DEPOSIT_STORAGE -->> DEPOSIT: return ok (if client exists and credentials ok) DEPOSIT -->> CLIENT: return 201, - loop while status is 'partial' + CLIENT -> DEPOSIT: DELETE /1///media/\nDELETE /1///metadata/ - CLIENT -> DEPOSIT: DELETE /1///media/\nDELETE /1///metadata/ - - DEPOSIT ->> DEPOSIT_STORAGE: check authentication - DEPOSIT_STORAGE -->> DEPOSIT: return ok - - DEPOSIT ->> DEPOSIT_STORAGE: check inputs() + DEPOSIT ->> DEPOSIT_STORAGE: check authentication + DEPOSIT_STORAGE -->> DEPOSIT: return ok - alt status is 'partial' - DEPOSIT_STORAGE -->> DEPOSIT: return ok - DEPOSIT ->> DEPOSIT_STORAGE: delete-deposit-or-deposit-archives() - DEPOSIT_STORAGE -->> DEPOSIT: return ok - DEPOSIT -->> CLIENT: return 204 - else status is not 'partial' - DEPOSIT_STORAGE -->> DEPOSIT: return ko - DEPOSIT -->> CLIENT: return 400 - end + DEPOSIT ->> DEPOSIT_STORAGE: check inputs() + alt status is 'partial' + DEPOSIT_STORAGE -->> DEPOSIT: return ok + DEPOSIT ->> DEPOSIT_STORAGE: delete-deposit-or-deposit-archives() + DEPOSIT_STORAGE -->> DEPOSIT: return ok + DEPOSIT -->> CLIENT: return 204 + else status is not 'partial' + DEPOSIT_STORAGE -->> DEPOSIT: return ko + DEPOSIT -->> CLIENT: return 400, "You can only act on deposit with status partial" end @enduml -