mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(kanban): filter dashboard board by selected tenant
This commit is contained in:
parent
f4de3810ef
commit
162ad3dd16
2 changed files with 19 additions and 1 deletions
|
|
@ -147,6 +147,23 @@ def test_dashboard_select_filters_use_sdk_value_change_handler():
|
|||
assert "selectChangeHandler(props.setAssigneeFilter)" in js
|
||||
|
||||
|
||||
def test_dashboard_client_side_filtering_includes_tenant_filter():
|
||||
"""The rendered board must also filter by tenant.
|
||||
|
||||
The API request includes ``?tenant=...``, but the dashboard also filters the
|
||||
locally cached board for search/assignee changes. Without checking
|
||||
``tenantFilter`` here, switching tenants can leave stale cards visible until a
|
||||
full reload finishes.
|
||||
"""
|
||||
|
||||
repo_root = Path(__file__).resolve().parents[2]
|
||||
bundle = repo_root / "plugins" / "kanban" / "dashboard" / "dist" / "index.js"
|
||||
js = bundle.read_text()
|
||||
|
||||
assert "if (tenantFilter && t.tenant !== tenantFilter) return false;" in js
|
||||
assert "[boardData, tenantFilter, assigneeFilter, search]" in js
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# GET /tasks/:id returns body + comments + events + links
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue