Fix/queue configurations (#585)

* Fix config-svc startup dupe CLI args

* Fix missing params on collection service

* Fix collection management handling
This commit is contained in:
cybermaggedon 2025-12-06 14:54:47 +00:00 committed by GitHub
parent ba95fa226b
commit 39f6a8b940
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 59 additions and 63 deletions

View file

@ -41,9 +41,7 @@ class Collection:
collection = v["collection"],
name = v["name"],
description = v["description"],
tags = v["tags"],
created_at = v["created_at"],
updated_at = v["updated_at"]
tags = v["tags"]
)
for v in collections
]
@ -76,9 +74,7 @@ class Collection:
collection = v["collection"],
name = v["name"],
description = v["description"],
tags = v["tags"],
created_at = v["created_at"],
updated_at = v["updated_at"]
tags = v["tags"]
)
return None
except Exception as e:

View file

@ -49,8 +49,6 @@ class CollectionMetadata:
name : str
description : str
tags : List[str]
created_at : str
updated_at : str
# Streaming chunk types

View file

@ -15,8 +15,6 @@ class CollectionManagementRequestTranslator(MessageTranslator):
name=data.get("name"),
description=data.get("description"),
tags=data.get("tags"),
created_at=data.get("created_at"),
updated_at=data.get("updated_at"),
tag_filter=data.get("tag_filter"),
limit=data.get("limit")
)
@ -38,10 +36,6 @@ class CollectionManagementRequestTranslator(MessageTranslator):
result["description"] = obj.description
if obj.tags is not None:
result["tags"] = list(obj.tags)
if obj.created_at is not None:
result["created_at"] = obj.created_at
if obj.updated_at is not None:
result["updated_at"] = obj.updated_at
if obj.tag_filter is not None:
result["tag_filter"] = list(obj.tag_filter)
if obj.limit is not None:
@ -73,9 +67,7 @@ class CollectionManagementResponseTranslator(MessageTranslator):
collection=coll_data.get("collection"),
name=coll_data.get("name"),
description=coll_data.get("description"),
tags=coll_data.get("tags"),
created_at=coll_data.get("created_at"),
updated_at=coll_data.get("updated_at")
tags=coll_data.get("tags", [])
))
return CollectionManagementResponse(
@ -104,9 +96,7 @@ class CollectionManagementResponseTranslator(MessageTranslator):
"collection": coll.collection,
"name": coll.name,
"description": coll.description,
"tags": list(coll.tags) if coll.tags else [],
"created_at": coll.created_at,
"updated_at": coll.updated_at
"tags": list(coll.tags) if coll.tags else []
})
print("RESULT IS", result, flush=True)