🔧 chore(schema.py): add 'last_tested_version' field to ComponentResponse and ListComponentResponse models for better tracking of component versions
🔧 chore(service.py): include 'last_tested_version' field in the list of fields to retrieve from the store API for better tracking of component versions
This commit is contained in:
parent
c581a958e3
commit
1f5ad28243
2 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ class ComponentResponse(BaseModel):
|
|||
downloads_count: Optional[int]
|
||||
parent: Optional[UUID]
|
||||
metadata: Optional[dict]
|
||||
last_tested_version: Optional[str]
|
||||
|
||||
|
||||
class TagsIdResponse(BaseModel):
|
||||
|
|
@ -49,6 +50,7 @@ class ListComponentResponse(BaseModel):
|
|||
user_created: Optional[dict]
|
||||
tags: Optional[List[TagResponse]] = None
|
||||
downloads_count: Optional[int]
|
||||
last_tested_version: Optional[str]
|
||||
|
||||
# tags comes as a TagsIdResponse but we want to return a list of TagResponse
|
||||
@validator("tags", pre=True)
|
||||
|
|
@ -83,3 +85,4 @@ class StoreComponentCreate(BaseModel):
|
|||
parent: Optional[UUID]
|
||||
is_component: Optional[bool]
|
||||
metadata: Optional[dict]
|
||||
last_tested_version: Optional[str]
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ class StoreService(Service):
|
|||
"count(liked_by)",
|
||||
"count(downloads)",
|
||||
"metadata",
|
||||
"last_tested_version",
|
||||
]
|
||||
|
||||
# Create a context manager that will use the api key to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue