You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2b4de28
Browse filesBrowse the repository at this point in the historyBrowse files
feat(search): count Search use per integration (#10681)
* feat(search): count Search use per integration
Adds organization_search_integration_daily, a content-free daily count per
organization, surface, integration and member of how each search reached an
integration (ok, partial, reconnect, rate limited, unavailable, timeout) and
of results opened from it. Searches count on the same surfaces member
activity counts, set by the adapter that knows the surface. Opens are
recorded through a member-only organization endpoint from the Search page
and organization chats. Rows cascade with the member or organization and are
swept with adoption history after 400 days.
* fix(search): drop non-null assertions and unused exports in Search opens
- Pass organizationId in the open mutation's variables, so the caller's
organization check types it instead of a non-null assertion
- Keep the open contract's body and surface schemas file-local
- Tighten comments that overstated what the counts and migration promise
- Assert the outsider refusal by its error class; drop a test that only
exercised input validation and a client test that asserted on mocks
* fix(search): count opens from recently viewed sources on the Search page
* fix(search): keep integration counts on listings, tool results and recovered chats
- Key a Search page listing's repeat rule by the filters the caller sent, not the end date the
listing implies, so a refetch within the minute counts nothing.
- Open chat tool-activity results through the shared source navigation, so they count like other
opened sources.
- Give a recovered interactive chat turn the surface its chat post set, so its searches still
count; unattended turns still count nothing.
* fix(search): give the search activity result link a props interface
* refactor(search): reuse the account status and open surface types for integration counts
---------
Co-authored-by: Waleed Latif <walif6@gmail.com>
| Stale execution cleanup | `/api/cron/cleanup-stale-executions` | `*/30 * * * *` | Fails runs whose worker died without finishing — workflow executions, background jobs, table jobs and table runs — so they stop showing as running |
184
184
| OAuth token cleanup | `/api/cron/cleanup-oauth-tokens` | `0 * * * *` | Deletes access and refresh tokens after the retention tail |
185
-
| Activity history cleanup | `/api/cron/cleanup-activity-history` | `45 4 * * *` | Deletes organization adoption history past its retention: daily member activity and Search MCP call metadata after 400 days |
185
+
| Activity history cleanup | `/api/cron/cleanup-activity-history` | `45 4 * * *` | Deletes organization adoption history past its retention: daily member activity, daily Search integration counts and Search MCP call metadata after 400 days |
186
186
| Workspace source staging cleanup | `/api/cron/cleanup-source-staging` | `30 * * * *` | Deletes binary files staged for a workspace source apply a day after they were last staged |
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/agent-group/search-activity-results.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-history-context.tsx
0 commit comments