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 0873f09
Browse filesBrowse the repository at this point in the historyBrowse files
perf(webapp): bound checkSchedule environment load to the requested ids
CheckScheduleService.call loaded every environment of a project and then
narrowed to the requested environmentIds via resolveProjectScopedEnvironments.
On preview-heavy projects that meant loading hundreds of archived branch rows
to validate one env, on a path called per-scheduled-task on deploy and from
upsertTaskSchedule.
Bound the environments relation load to boundedIn(environmentIds) so it returns
<= the number of requested envs instead of the whole project. Foreign-id
rejection and archived-branch rejection are both preserved: a requested id
absent from the bounded result is still treated as foreign, and a requested
archived branch still comes back with archivedAt set.
Validating a schedule when deploying or updating a schedule now does less work on projects with many preview branches, so those operations stay fast as branches accumulate.
0 commit comments