Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339406
D4257.id15088.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D4257.id15088.diff
View Options
diff --git a/docs/images/.gitignore b/docs/images/.gitignore
--- a/docs/images/.gitignore
+++ b/docs/images/.gitignore
@@ -1 +1,2 @@
*.png
+*.svg
diff --git a/docs/images/deposit-update-chart.png b/docs/images/deposit-update-chart.png
deleted file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/docs/images/deposit-update-chart.uml b/docs/images/deposit-update-chart.uml
--- a/docs/images/deposit-update-chart.uml
+++ b/docs/images/deposit-update-chart.uml
@@ -14,24 +14,26 @@
DEPOSIT -->> CLIENT: return 201, <deposit receipt>
- loop while status is 'partial'
- CLIENT -> DEPOSIT: POST/PUT /1/<collection-name>/<deposit-id>/media/\nPOST/PUT /1/<collection-name>/<deposit-id>/metadata/
+ CLIENT -> DEPOSIT: POST/PUT /1/<collection-name>/<deposit-id>/media/\nPOST/PUT /1/<collection-name>/<deposit-id>/metadata/
- DEPOSIT ->> DEPOSIT_STORAGE: check authentication
- DEPOSIT_STORAGE -->> DEPOSIT: return ok
+ DEPOSIT ->> DEPOSIT_STORAGE: check authentication
+ DEPOSIT_STORAGE -->> DEPOSIT: return ok
- DEPOSIT ->> DEPOSIT_STORAGE: check inputs()
- DEPOSIT_STORAGE -->> DEPOSIT: return ok
+ DEPOSIT ->> DEPOSIT_STORAGE: check inputs()
+ alt status is 'partial'
+ DEPOSIT_STORAGE -->> DEPOSIT: return ok
alt HEADER: In-Progress = true
DEPOSIT ->> DEPOSIT_STORAGE: add-or-replace-data-and-update-status('partial')
else HEADER: In-Progress = false
- DEPOSIT ->> DEPOSIT_STORAGE: add-or-replace-data-and-update-status('ready')
+ DEPOSIT ->> DEPOSIT_STORAGE: add-or-replace-data-and-update-status('deposited')
end
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
- DEPOSIT -->> CLIENT: return 201, <deposit receipt>\nreturn 204
@enduml
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 9:40 AM (6 w, 23 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225686
Attached To
D4257: deposit-update-chart: Clarify sequence diagram
Event Timeline
Log In to Comment