Skip to content

Commit

Permalink
feat: Add open_to_public to filter and order of endpoint relay API (#…
Browse files Browse the repository at this point in the history
…2954)

Co-authored-by: Sanghun Lee <[email protected]>
  • Loading branch information
agatha197 and fregataa authored Nov 22, 2024
1 parent 3ab5e13 commit effb70a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/2954.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add filtering and ordering by `open_to_public` field in endpoint queries
2 changes: 2 additions & 0 deletions src/ai/backend/manager/models/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand All @@ -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),
}

Expand Down

0 comments on commit effb70a

Please sign in to comment.