Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
46c42fef
Commit
46c42fef
authored
10 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Sequence diagram for requests
parent
74a7ec25
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/uml/requests.png
+0
-0
0 additions, 0 deletions
doc/uml/requests.png
doc/uml/requests.pu
+50
-0
50 additions, 0 deletions
doc/uml/requests.pu
doc/uml/tx_lifecycle.png
+0
-0
0 additions, 0 deletions
doc/uml/tx_lifecycle.png
with
50 additions
and
0 deletions
doc/uml/requests.png
0 → 100644
+
0
−
0
View file @
46c42fef
57.4 KiB
This diff is collapsed.
Click to expand it.
doc/uml/requests.pu
0 → 100644
+
50
−
0
View file @
46c42fef
@startuml
QModel -->o "Core Component" : Connect to data_changed()
QModel -> "Core Component" : Data access
activate "Core Component"
"Core Component" -> Community : Request data
Community -> Cache : Request cache
ref over Cache
Data is obsolete
(new block mined
since last caching)
end ref
Cache -> QNetworkManager : HTTP GET
create QNetworkReply
QNetworkManager -> QNetworkReply : Instantiate
Cache <- QNetworkManager : QNetworkReply
create ReceiverSlot
Cache -> ReceiverSlot : Instantiate Slot
QNetworkReply o<-- ReceiverSlot : Connect to finished()
Community <- Cache : Cached data
"Core Component" <- Community : Cached data
"Core Component" -> "Core Component" : Compute data
QModel <- "Core Component" : Data
deactivate "Core Component"
...Network request is processed...
ReceiverSlot <-- QNetworkReply : finished()
activate ReceiverSlot
ReceiverSlot -> Cache : Update cache data
ReceiverSlot -> "Core Component" : emit data_changed()
deactivate ReceiverSlot
destroy ReceiverSlot
destroy QNetworkReply
|||
QModel <-- "Core Component" : data_changed()
QModel -> "Core Component" : Data access
activate "Core Component"
ref over "Core Component", Community
Community is requested again,
and last cached data are returned
No new block mined, so no HTTP GET
initialized between cache
and QNetworkManager
end ref
QModel <- "Core Component" : Data
deactivate "Core Component"
@enduml
\ No newline at end of file
This diff is collapsed.
Click to expand it.
doc/uml/tx_lifecycle.png
+
0
−
0
View replaced file @
74a7ec25
View file @
46c42fef
22 KiB
|
W:
|
H:
21.4 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment