test(kb): cover top-ticket-driving-articles endpoint (PMS-485) #388
Loading…
Reference in a new issue
No description provided.
Delete branch "test/PMS-485-top-ticket-driving-articles-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The "Top ticket-driving articles" server endpoint (GET /api/v1/kb/top-ticket-driving-articles) shipped under PMS-485 but had no integration coverage. This adds an end-to-end test through the real router asserting AC #1: the endpoint returns [{ id, title, ticket_count }] ordered by descending count, scoped to the caller's tenant, with tickets that have a NULL source_kb_article_id or fall outside the recency window excluded. It also exercises the empty state (a fresh tenant returns []), the configurable
dayswindow (a 365-day window pulls an ancient ticket back into article B's count), and thelimitcap.The client-side acceptance criteria (the KBHomePage widget, article links, empty-state UI) live in the separate mokosh-apps SPA, not this server repo, so they are out of scope here.
#PMS-485
Pull request closed