@@ -5,22 +5,75 @@ the external system, that would be another sync run.
5
5
Each sync run is comprised out of phases. Phases follow sequentially, and each can consist of one or more invocations
6
6
of the snap-in.
7
7
8
- ![ ADaaS extraction phases] ( ../../img/adaas/adaas-extraction-phases.svg )
8
+ ``` mermaid
9
+ sequenceDiagram
10
+ %%{init: { "fontFamily": "Segoe UI" } }%%
11
+ actor user as User
12
+ participant gw as REST API Gateway
13
+ participant ad as Airdrop components
14
+ participant ee as External extractor
15
+
16
+ note over gw,ad: Extract External Sync Units
17
+ user ->> gw: Select import connection
18
+ gw ->> ad: Start External Sync Unit extraction
19
+ ad ->> ee: Start External Sync Unit extraction
20
+ ee -->> gw: List of External Sync Units
21
+ gw ->> ad: List of External Sync Units
22
+ ad ->> gw: List of External Sync Units
23
+ gw -->> user: Show available External Sync Units
24
+
25
+
26
+ note over gw,ad: Extract Metadata
27
+ ad ->> ee: Start Metadata extraction
28
+ ee -->> gw: List of extracted metadata artifacts
29
+ gw ->> ad: List of extracted metadata artifacts
30
+
31
+ note over gw,ad: Extract data
32
+ ad ->> ee: Start data extraction
33
+ ee -->> gw: List of extracted data artifacts
34
+ gw ->> ad: List of extracted data artifacts
35
+
36
+ note over ad: Transform and import data into DevRev
37
+
38
+ note over gw,ad: Extract attachments
39
+ ad ->> ee: Start attachment extraction
40
+ ee -->> gw: List of extracted attachments
41
+ gw ->> ad: List of extracted attachments
42
+
43
+ ad -->> gw: Finished import
44
+ gw -->> user: Show finished import and report
45
+
46
+ note over gw,ad: Delete data
47
+ user ->> gw: Delete import
48
+ gw ->> ad: Delete import
49
+ ad ->> ee: Delete data
50
+ ee -->> gw: Finished deleting data
51
+ gw ->> ad: Finished deleting data
52
+
53
+ note over gw,ad: Delete attachments
54
+ ad ->> ee: Delete attachments
55
+ ee -->> gw: Finished deleting attachments
56
+ gw ->> ad: Finished deleting attachments
57
+ note over ad: Deletes internal data
58
+ ad -->> gw: Finished deleting import
59
+ gw -->> user: Import deleted
60
+ ```
9
61
10
62
## Sync modes
11
63
12
64
### Initial import
13
65
14
66
An _ initial import_ is the first import of data from the external system to DevRev.
15
- It is triggered manually by the end user in DevRev's Imports UI.
67
+ It is triggered manually by the end user in DevRev's ** Imports** UI.
16
68
17
69
An _ initial import_ consists of the following phases:
18
70
1 . External sync units extraction
19
71
2 . Metadata extraction
20
72
3 . Data extraction
21
73
4 . Attachments extraction
22
74
23
- ## 1-way sync
75
+
76
+ ### 1-way sync
24
77
25
78
A _ 1-way sync_ refers to any extraction after the initial import has been successfully completed.
26
79
An extractor extracts data that was created and/or updated in the external system
@@ -35,10 +88,10 @@ A 1-way sync consists of the following phases:
35
88
2 . Data extraction
36
89
3 . Attachments extraction
37
90
38
- A 1-way sync extracts only the domain objects updated and/ or created since the previous successful sync run.
91
+ A 1-way sync extracts only the domain objects updated or created since the previous successful sync run.
39
92
40
93
41
- ## Deletion mode
94
+ ### Deletion mode
42
95
43
96
A _ deletion_ consists of the following phases:
44
97
1 . Data deletion
0 commit comments