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
<!--
Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Real-time AI search with project-scoped analytics and dynamic query
execution; streaming AI responses replace the placeholder flow.
* External DB sync adds ClickHouse support: users sync, sync metadata
tracking, tenancy-aware status, and per-mapping throttling.
* AI assistant UI shows expandable tool-invocation results and streams
via the real AI pipeline.
* **Chores**
* Dashboard dependencies and workspace exclusions updated; development
OpenAI env var added; editor config flag toggled.
* **Tests**
* E2E coverage extended to validate ClickHouse user sync and analytics
queries.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: aadesh18 <110230993+aadesh18@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
"REVOKE ALL PRIVILEGES ON *.* FROM limited_user;",
18
22
"REVOKE ALL FROM limited_user;",
19
23
"GRANT SELECT ON default.events TO limited_user;",
24
+
"GRANT SELECT ON default.users TO limited_user;",
20
25
];
21
26
awaitclient.exec({
22
27
query: "CREATE ROW POLICY IF NOT EXISTS events_project_isolation ON default.events FOR SELECT USING project_id = getSetting('SQL_project_id') AND branch_id = getSetting('SQL_branch_id') TO limited_user",
23
28
});
29
+
awaitclient.exec({
30
+
query: "CREATE ROW POLICY IF NOT EXISTS users_project_isolation ON default.users FOR SELECT USING project_id = getSetting('SQL_project_id') AND branch_id = getSetting('SQL_branch_id') TO limited_user",
31
+
});
24
32
for(constqueryofqueries){
25
33
awaitclient.exec({ query });
26
34
}
@@ -52,6 +60,101 @@ SELECT *
52
60
FROM analytics_internal.events;
53
61
`;
54
62
63
+
// Normalizes legacy $token-refresh rows (camelCase JSON) to the new format:
64
+
// - Row identity stays in columns (project_id/branch_id/user_id)
0 commit comments