Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "koreo-core"
version = "0.1.16"
version = "0.1.17"
description = "Type-safe and testable KRM Templates and Workflows."
authors = [
{name = "Robert Kluin", email = "robert.kluin@realkinetic.com"},
Expand Down
17 changes: 15 additions & 2 deletions src/koreo/status.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import NamedTuple
import copy
import time

from koreo import cache
Expand Down Expand Up @@ -52,8 +53,20 @@ def list_resources():
resource_version=cached_resource.resource_version,
prepared_ago_seconds=prepared_ago_seconds,
resource_status=_get_resource_status_for_type(cached_resource.resource),
subscriptions=list(subscriptions),
subscribers=list(subscribers),
subscriptions=[
copy.replace(
subscription,
resource_type=subscription.resource_type.__qualname__,
)
for subscription in subscriptions
],
subscribers=[
copy.replace(
subscriber,
resource_type=subscriber.resource_type.__qualname__,
)
for subscriber in subscribers
],
)
)

Expand Down