fix(managed-ne): keep API list behavior for UI while MCP remains restricted

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-07-02 11:24:49 +08:00
parent 987b501e53
commit 3a35b54f0e
2 changed files with 4 additions and 12 deletions

View file

@ -238,10 +238,6 @@ def list_managed_ne(
kw = str(keyword or "").strip()
v = str(vendor or "").strip()
cs = str(connect_status or "").strip()
if not (kw or v or cs):
raise HTTPException(status_code=400, detail="managed_ne_filter_required")
if kw and len(kw) < 2:
raise HTTPException(status_code=400, detail="managed_ne_keyword_too_short")
if kw:
like = f"%{kw}%"
stmt = stmt.filter(