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
perf(platform): join readable projects in the automation readers #5201
Split from #5193, which was split from #5156 (item 4 of 7 of #4708). The change for #5193 (TALE-283, branch perf/join-readable-projects-readers, on its way to feature-train) joins readableProjectsSql in the document search, the create-task fallback and the chat hand-over; this issue takes the automation readers.
What the reads do now
readableProjectIds (services/platform/backend/domains/automations/project-visibility.ts) reads every project the caller may read, archived ones included, with listProjects, and hands the id list on. Its callers filter runs, bindings and templates by that list:
backend/domains/automations/templates.ts, which takes the list as a parameter.
What to do
Where a statement filters automations, bindings or runs by the projects the caller may read, join readableProjectsSql(sql, auth, { includeArchived: true }) (backend/domains/projects/service.ts) in that statement instead of reading the list first.
Where a reader checks a few named projects, ask for those alone (readableProjectsAmong).
Keep the rule for archived projects: they stay readable here.
Done means:
no automation reader sends the caller's whole project-id list back as ANY(<ids>), and none reads an unbounded project list;
tests cover the visibility rules (PROJ-R1, PROJ-R2) through the join, and project-visibility.integration.ts proves them on Postgres.
Landed on release/0.6 with feature train #5221 (merged by rebase on 2026-10-31 at 20:26:51 UTC) as commit 4d8dba7 (perf(platform): join readable projects in the automation readers). It ships with Tale 0.6.0. GitHub closes issues only for commits on main, so the feature-train role closes this one. Task: TALE-286.
Activity
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
tale-code-bot commentedon Oct 31, 2026
Landed on
release/0.6with feature train #5221 (merged by rebase on 2026-10-31 at 20:26:51 UTC) as commit 4d8dba7 (perf(platform): join readable projects in the automation readers). It ships with Tale 0.6.0. GitHub closes issues only for commits onmain, so the feature-train role closes this one. Task: TALE-286.perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
20 remaining items
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers
perf(platform): join readable projects in three server readers
perf(platform): join readable projects in the automation readers