mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-25 10:39:36 -04:00
[PR #343] [MERGED] refact: make collections in apiserver models lazy #407
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/343
Author: @masci
Created: 10/29/2024
Status: ✅ Merged
Merged: 10/31/2024
Merged by: @masci
Base:
main← Head:massi/apiserver-fix📝 Commits (2)
b3eb67crefact: make collections in apiserver models lazyeee25f5Merge branch 'main' into massi/apiserver-fix📊 Changes
4 files changed (+73 additions, -58 deletions)
View changed files
📝
e2e_tests/apiserver/test_deploy.py(+2 -4)📝
e2e_tests/apiserver/test_status.py(+1 -1)📝
llama_deploy/client/models/apiserver.py(+67 -50)📝
tests/client/models/test_apiserver.py(+3 -3)📄 Description
Adjust
client.apiserver.deploymentsandclient.apiserver.sessionsso that they don't actually load the items in a collection, deferring that tolist. This waysessionsanddeploymentscan be regular properties, accessible withoutawait.This was originally implemented for the
coreclient, this PR makes it consistent with the rest of the models.Part of #337
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.