Skip to content

Commit ff33b49

Browse files
committed
UI, pipeline
1 parent 206d4b3 commit ff33b49

File tree

3 files changed

+146
-11
lines changed

3 files changed

+146
-11
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
echo "branch_name=$branch_name" | tee -a $GITHUB_OUTPUT
4141
else
4242
raw=$(git branch -r --contains ${{ github.ref }})
43-
branch="$(echo ${raw//origin\//} | tr -d '\n')"
43+
branch="$(echo $raw | sed "s/.*origin\///" | tr -d '\n')"
4444
echo "branch_name=$branch" | tee -a $GITHUB_OUTPUT
4545
fi
4646

component_config/configRowSchema.json

Lines changed: 121 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,121 @@
1-
{}
1+
{
2+
"type": "object",
3+
"title": "Component configuration",
4+
"required": [
5+
"source",
6+
"destination",
7+
"debug"
8+
],
9+
"properties": {
10+
"source": {
11+
"type": "object",
12+
"title": "Data Source",
13+
"required": [
14+
"apps"
15+
],
16+
"properties": {
17+
"apps": {
18+
"type": "array",
19+
"items": {
20+
"enum": [],
21+
"type": "string"
22+
},
23+
"title": "Columns to extract",
24+
"format": "select",
25+
"options": {
26+
"tags": true,
27+
"async": {
28+
"label": "Re-load apps",
29+
"action": "list_apps"
30+
}
31+
},
32+
"uniqueItems": true,
33+
"propertyOrder": 1
34+
},
35+
"report_category": {
36+
"type": "array",
37+
"items": {
38+
"enum": [
39+
"APP_USAGE",
40+
"APP_STORE_ENGAGEMENT",
41+
"COMMERCE",
42+
"FRAMEWORK_USAGE",
43+
"PERFORMANCE"
44+
],
45+
"type": "string"
46+
},
47+
"title": "Report category",
48+
"format": "select",
49+
"uniqueItems": true,
50+
"propertyOrder": 2
51+
},
52+
"report_name": {
53+
"type": "array",
54+
"items": {
55+
"enum": [],
56+
"type": "string"
57+
},
58+
"title": "Columns to extract",
59+
"format": "select",
60+
"options": {
61+
"tags": true,
62+
"async": {
63+
"label": "Re-load columns",
64+
"action": "list_columns"
65+
}
66+
},
67+
"uniqueItems": true,
68+
"propertyOrder": 3
69+
},
70+
"granularity": {
71+
"enum": [
72+
"DAILY",
73+
"WEEKLY",
74+
"MONTHLY"
75+
],
76+
"type": "string",
77+
"title": "Granularity",
78+
"default": "DAILY",
79+
"required": true,
80+
"propertyOrder": 4
81+
}
82+
},
83+
"propertyOrder": 1
84+
},
85+
"destination": {
86+
"type": "object",
87+
"title": "Destination",
88+
"required": [
89+
"load_type"
90+
],
91+
"properties": {
92+
"load_type": {
93+
"enum": [
94+
"incremental_load",
95+
"full_load"
96+
],
97+
"type": "string",
98+
"title": "Load Type",
99+
"default": "incremental_load",
100+
"options": {
101+
"enum_titles": [
102+
"Incremental Load",
103+
"Full Load"
104+
]
105+
},
106+
"description": "If Full load is used, the destination table will be overwritten every run. If Incremental Load is used, data will be upserted into the destination table based on the primary key. Append modes do not contain any primary keys and are not deduplicated.",
107+
"propertyOrder": 1
108+
}
109+
},
110+
"propertyOrder": 2
111+
},
112+
"debug": {
113+
"type": "boolean",
114+
"title": "Debug mode",
115+
"format": "checkbox",
116+
"default": false,
117+
"description": "If enabled, the component will produce detailed logs",
118+
"propertyOrder": 3
119+
}
120+
}
121+
}

component_config/configSchema.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
{
22
"type": "object",
3-
"title": "extractor configuration",
3+
"title": "Authorization",
44
"required": [
5-
"print_hello"
5+
"vendor_id",
6+
"issuer_id",
7+
"key_id",
8+
"#key_string"
69
],
710
"properties": {
8-
"print_hello": {
9-
"type": "boolean",
10-
"title": "Print Hello",
11+
"vendor_id": {
12+
"type": "string",
13+
"title": "Vendor ID",
1114
"propertyOrder": 1
1215
},
13-
"debug": {
14-
"type": "boolean",
15-
"title": "Debug",
16+
"issuer_id": {
17+
"type": "string",
18+
"title": "Issuer ID",
1619
"propertyOrder": 2
20+
},
21+
"key_id": {
22+
"type": "string",
23+
"title": "Key ID",
24+
"propertyOrder": 3
25+
},
26+
"#key_string": {
27+
"type": "string",
28+
"title": "Key String",
29+
"format": "password",
30+
"description": "Whole content of the key file",
31+
"propertyOrder": 4
1732
}
1833
}
19-
}
34+
}

0 commit comments

Comments
 (0)