From effb70a8ccc3674f4cad7d0de020bac45b851c99 Mon Sep 17 00:00:00 2001 From: Sujin Kim Date: Thu, 21 Nov 2024 22:58:15 -0500 Subject: [PATCH] feat: Add `open_to_public` to filter and order of endpoint relay API (#2954) Co-authored-by: Sanghun Lee --- changes/2954.feature.md | 1 + src/ai/backend/manager/models/endpoint.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changes/2954.feature.md diff --git a/changes/2954.feature.md b/changes/2954.feature.md new file mode 100644 index 0000000000..b7052c3392 --- /dev/null +++ b/changes/2954.feature.md @@ -0,0 +1 @@ +Add filtering and ordering by `open_to_public` field in endpoint queries diff --git a/src/ai/backend/manager/models/endpoint.py b/src/ai/backend/manager/models/endpoint.py index faddd5dc6a..d22f7b0440 100644 --- a/src/ai/backend/manager/models/endpoint.py +++ b/src/ai/backend/manager/models/endpoint.py @@ -771,6 +771,7 @@ class Meta: "domain": ("endpoints_domain", None), "url": ("endpoints_url", None), "lifecycle_stage": (EnumFieldItem("endpoints_lifecycle_stage", EndpointLifecycle), None), + "open_to_public": ("endpoints_open_to_public", None), "created_user_email": ("users_email", None), } @@ -781,6 +782,7 @@ class Meta: "domain": ("endpoints_domain", None), "url": ("endpoints_url", None), "lifecycle_stage": (EnumFieldItem("endpoints_lifecycle_stage", EndpointLifecycle), None), + "open_to_public": ("endpoints_open_to_public", None), "created_user_email": ("users_email", None), }