llama-stack-mirror/tests/integration/providers/utils
Derek Higgins fcd6370b34
fix: set SqlRecord owner to None when owner_principal is empty (#4284)
Changes SqlRecord creation in AuthorizedSqlStore.fetch_all to use
owner=None when owner_principal is empty/missing, matching the
ResourceWithOwner pattern used in routing tables. This fixes an
inconsistency where SQL store was creating User(principal="") while
routing tables use owner=None for public resources.

Changes:
o Update ProtectedResource Protocol to allow owner: User | None 
o Update SqlRecord.__init__ to accept owner: User | None 
o Update fetch_all to create owner=None for records without
owner_principal

Signed-off-by: Derek Higgins <derekh@redhat.com>
2025-12-03 10:28:33 -08:00
..
sqlstore fix: set SqlRecord owner to None when owner_principal is empty (#4284) 2025-12-03 10:28:33 -08:00
__init__.py fix: authorized sql store with postgres (#2641) 2025-07-07 19:36:34 -07:00