mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix(servers): address CodeRabbit review on linked-server automation
Scope session permission modes and schedule locks by server, keep remote schedule cleanup working when a server is disabled or removed, harden the session server-scope migration and rollback, reject local server multi-run targets, widen schedule query invalidation, and update CLI fixtures for server-scoped schemas.
This commit is contained in:
1 parent
780d31087b
commit
9ec2ed5903
13 files changed
+426
-49
No files matched your search
@@ -41,10 +41,14 @@ export type ScheduleTargetRef =
|
||||
function invalidateScheduleQueries(queryClient: ReturnType<typeof useQueryClient>): void {
|
||||
queryClient.invalidateQueries({ queryKey: ['all-schedules'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['all-schedule-runs'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['repo-schedules'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['repo-schedule'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['repo-schedule-runs'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['repo-schedule-run'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['server-schedule'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['server-schedule-runs'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['server-schedule-run'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['schedule-run-detail'] })
|
||||
}
|
||||
|
||||
export function useAllSchedules() {
|
||||
|
||||
Reference in new issue
Block a user