Skip to content

Commit 1f24f02

Browse files
authored
Merge pull request #5 from keboola/orch-id-as-string
changed orch id to string
2 parents 04f09a1 + 9584f58 commit 1f24f02

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

component_config/configSchema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
}
5252
},
5353
"orchestrationId": {
54-
"type": "integer",
54+
"type": "string",
5555
"title": "Flow ID",
5656
"propertyOrder": 30,
5757
"enum": [],
@@ -139,7 +139,7 @@
139139
}
140140
},
141141
"failureConfigurationId": {
142-
"type": "integer",
142+
"type": "string",
143143
"title": "Flow ID",
144144
"enum": [],
145145
"format": "select",

src/component.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,23 @@ def process_action_status(status: str, fail_on_warning: bool, jobs_ids: List[str
307307
def list_orchestration(self):
308308
self._init_clients()
309309
configurations = self._configurations_client.list(FLOW_COMPONENT_ID)
310-
return [SelectElement(label=f"[{c['id']}] {c['name']}", value=c['id']) for c in configurations]
310+
return [
311+
SelectElement(
312+
label="[%s] %s" % (c["id"], c["name"]),
313+
value=str(c["id"])
314+
) for c in configurations
315+
]
311316

312317
@sync_action('list_failure_orchestrations')
313318
def list_failure_orchestrations(self):
314319
self._init_clients()
315320
configurations = self._configurations_on_failure_client.list(FLOW_COMPONENT_ID)
316-
return [SelectElement(label=f"[{c['id']}] {c['name']}", value=c['id']) for c in configurations]
321+
return [
322+
SelectElement(
323+
label="[%s] %s" % (c["id"], c["name"]),
324+
value=str(c["id"])
325+
) for c in configurations
326+
]
317327

318328
@sync_action('sync_trigger_metadata')
319329
def sync_trigger_metadata(self):

0 commit comments

Comments
 (0)