-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.template.json
189 lines (189 loc) · 7.13 KB
/
configuration.template.json
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"siteTitle": "Datacity CKAN Automation",
"kinds": [
{
"name": "ckan_sync",
"display": "Sync CKAN Instances",
"fields": [
{
"name": "source_instance_name",
"display": "Source CKAN Instance",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "target_instance_name",
"display" : "Target CKAN Instance",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "target_organization_id",
"display": "Target CKAN Organization ID"
},
{
"name": "target_package_name_prefix",
"display": "Target CKAN Package Name Prefix",
"description": "This should be a unique prefix which will be added to all synced package names in the target CKAN instance"
},
{
"name": "target_package_title_prefix",
"display": "Target CKAN Package Title Prefix",
"description": "An optional prefix to append to package titles"
}
]
},
{
"name": "instance_initializer",
"display": "Initialize Datacity CKAN Instances",
"fields": [
{
"name": "instance_name",
"display": "CKAN Instance to initialize (safe to run multiple times)",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "default_organization_title",
"display": "The main organization title, e.g. עיריית נווה חמציצים"
},
{
"name": "muni_filter_texts",
"display": "Comma-separated names of the municipality for filtering packages from external sources"
}
]
},
{
"name": "packages_processing",
"display": "Continuous processing tasks for Datacity CKAN Instances",
"fields": [
{
"name": "instance_name",
"display": "CKAN Instance to run the processing task for",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "task",
"display": "The processing task to run",
"type": "enum",
"options": ["geojson", "xlsx"]
}
]
},
{
"name": "db_fetcher",
"display": "Fetch a DB Table into a CKAN Package",
"fields": [
{
"name": "db_url",
"display": "Source Database",
"type": "enum",
"options": ["__DB_INSTANCES__"]
},
{
"name": "db_table",
"display": "Database Table to fetch",
"type": "text"
},
{
"name": "target_instance_name",
"display": "Target CKAN Instance",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "target_package_id",
"display": "ID of Package to Update (or Create)",
"type": "text"
},
{
"name": "target_organization_id",
"display": "Owner Organization of created package",
"type": "text"
}
]
},
{
"name": "gis_fetcher",
"display": "Fetch data from GIS Server into a CKAN Package",
"fields": [
{
"name": "gis_url",
"display": "GIS URL",
"type": "text"
},
{
"name": "target_instance_name",
"display": "Target CKAN Instance",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "target_package_id",
"display": "ID of Package to Update (or Create)",
"type": "text"
},
{
"name": "target_organization_id",
"display": "Owner Organization of created package",
"type": "text"
}
]
},
{
"name": "generic_fetcher",
"display": "Fetch/Update data from different source types into a CKAN Package. See details about the fetchers in DESCRIPTION of each fetcher at https://github.com/hasadna/datacity-ckan-dgp/blob/main/datacity_ckan_dgp/generic_fetchers/",
"fields": [
{
"name": "source_url",
"display": "Source URL (source type will be inferred from the URL)",
"type": "text"
},
{
"name": "source_filter",
"display": "Source Filter (optional, value depends on the source type)",
"type": "text"
},
{
"name": "target_instance_name",
"display": "Target CKAN Instance",
"type": "enum",
"options": ["__CKAN_INSTANCES__"]
},
{
"name": "target_package_id",
"display": "ID of Package to Update (or Create)",
"type": "text"
},
{
"name": "target_organization_id",
"display": "Owner Organization of created package",
"type": "text"
}
]
}
],
"theme": {
"primary": "#333",
"primary_dark": "#222",
"secondary": "#fff"
},
"schedules": [
{"name": "@hourly", "display": "Hourly"},
{"name": "@daily", "display": "Daily"},
{"name": "@weekly", "display": "Weekly"},
{"name": "@monthly", "display": "Monthly"},
{"name": "@yearly", "display": "Yearly"},
{"name": "manual", "display": "Manual"}
],
"homepage": "https://www.datacity.org/",
"taskDescription": "Task description",
"dateFormats": [
{"display": "Automatic", "format": "auto"},
{"display": "Automatic - YMD", "format": "auto_ymd"},
{"display": "Automatic - DMY", "format": "auto_dmy"},
{"display": "Automatic - YDM", "format": "auto_ydm"},
{"display": "Automatic - MDY", "format": "auto_mdy"}
]
}