-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_code_flow.qmd
More file actions
57 lines (55 loc) · 1.97 KB
/
_code_flow.qmd
File metadata and controls
57 lines (55 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: ""
format:
html:
toc: false
gfm:
mermaid-format: png
---
```{mermaid}
%%| fig-width: 7
flowchart TD
subgraph sg1["<b>CCIEA Uploader: code flowchart</b>"]
direction LR
subgraph sg2[<br>]
direction TB
Z(main.yml) -. Daily GitHub Action .- B(get_status.R)
B -- <b>1</b> --> V[[check_upload]]
V -- metadata file --> S[[update_metadata]] --> K
V -- data file --> T[[clean_file]] --> I[\Data Provider<br> ESR year Folders\]
V -- other file --> I
I --> C --> F[/uploader_status.json/] ---> N(status.qmd)
J[\Data Figure Naming <br> Conventions\] -->E
R[\Data Provider<br> Upload Folder\] ----> V
K[\Metadata\] --> D
B -- <b>2</b> --> E[[get_file_conventions]] -->H[/cciea_naming_conventions.json/] ---> M
B -. <b>3</b> .-> D[[get_indices]] --> G[/items_meta.json/] ---> M(uploader.qmd) -- File check --> R
B -. <b>4</b> .- C[[generate_file_status]]
D --> G1[/metadata.csv/]
Q(_quarto.yml) -.- M & N
M & N --> X(GitHub Uploader<br> Web Page)
end
subgraph sg3[Legend]
direction LR
L1(yaml) ~~~ L2(R code) ~~~ L3(Google Drive) ~~~ L4(Google Sheet) ~~~ L5(Data commit<br>to GitHub) ~~~ L6(Quarto doc)
end
end
classDef yaml fill:#ffffc5,stroke:#333,stroke-width:2px,color:#000;
classDef drive fill:#f96,stroke:#333,stroke-width:2px,color:#000;
classDef sheet fill:#d0f0c0,stroke:#333,stroke-width:2px,color:#000;
classDef rcode fill:#ffcccb,stroke:#333,stroke-width:2px,color:#000;
classDef datain fill:#add8e6,stroke:#333,stroke-width:2px,color:#000;
classDef qmd fill:#d6a9d6,stroke:#333,stroke-width:2px,color:#000;
classDef htm fill:#4682b4,stroke:#333,stroke-width:2px,color:#fff;
classDef sg1 fill:#ffffff,stroke:#fff,stroke-width:2px,color:#000;
classDef sg3 fill:#ffffff,stroke:#333,stroke-width:1px,color:#000;
class Z,Q,L1 yaml
class I,P,R,L3 drive
class J,K,L4 sheet
class B,C,D,E,L2,S,T,V rcode
class F,G,G1,H,L5 datain
class M,N,L6 qmd
class X htm
class sg1,sg2 sg1
class sg3 sg3
```