diff options
author | Audun Sutterud <[email protected]> | 2025-05-21 12:53:04 +0200 |
---|---|---|
committer | Audun Sutterud <[email protected]> | 2025-06-02 08:31:55 +0000 |
commit | afc38fb03f6027e446230f2c6ed1711da6e69e4f (patch) | |
tree | 129bee44158c1d82d2c660793e96ac1609e8fd1f | |
parent | e05665cf706ef2fb216ad35125836673d3718f4b (diff) |
The coordinator has some old work items. These do not contain the "repo"
field. This was added as part of QTQAINFRA-7160. The workaround should
only be necessary until the old work items are gone. This should take
about two weeks.
Change-Id: Ic001b07898d7d7121d838ce855828a57c185429d
Reviewed-by: Daniel Smith <[email protected]>
-rw-r--r-- | coordinator.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coordinator.py b/coordinator.py index 4a01e54..2d4d3e4 100644 --- a/coordinator.py +++ b/coordinator.py @@ -176,5 +176,13 @@ class Connection: async def _handle_send_work_event(self, data: Optional[Dict[str, Any]]) -> None: async with self.work_event_received: + # Older work items do not have the "repo" field. In that case, parse the repository from + # the integration URL. This workaround should only be necessary for about two weeks. + # + # 2025-05-21 + if data: + if not "repo" in data or data["repo"] is None: + data["repo"] = data["integrationURL"].split("/")[2] + self.work_item = data self.work_event_received.notify() |