feat(regions): move project automations (#3925)
* feat(regions): repo functions for copying project branches and commits * chore(regions): wire up move to resolver * chore(regions): successful basic test of project region change * fix(regions): sabrina carpenter please please please * fix(regions): repair multiregion test setup * chore(regions): appease ts * chore(multiregion): update test multiregion config * chore(multiregion): fix test docker config and test * chore(multiregion): use transaction * chore(multiregion): maybe this will work * fix(multiregion): drop subs synchronously * chore(multiregion): desperate test logs * chore(multiregion): somehow that worked? * chore(multiregion): add load-bearing log statement * chore(multiregion): move services * fix(multiregion): test drop waits * chore(regions): fix import * chore(regions): make test a bit more thorough for good measure * fix(regions): move project objects * chore(regions): add tests for object move * feat(regions): move project automations * chore(regions): add tests for moving automations * chore(regions): more tests for moving automate data * fix(regions): speed up inserts * fix(regions): simplify postgres usage * chore(regions): repair build * fix(regions): improve queries * chore(regions): again
This commit is contained in:
@@ -56,7 +56,7 @@ import { Users } from '@/modules/core/dbSchema'
|
||||
import { getStreamPendingModelsFactory } from '@/modules/fileuploads/repositories/fileUploads'
|
||||
import { FileUploadRecord } from '@/modules/fileuploads/helpers/types'
|
||||
import {
|
||||
AutomateRevisionFunctionRecord,
|
||||
AutomationRevisionFunctionRecord,
|
||||
AutomationRecord,
|
||||
AutomationRevisionRecord,
|
||||
AutomationRunTriggerRecord,
|
||||
@@ -595,7 +595,7 @@ const dataLoadersDefinition = defineRequestDataloaders(
|
||||
})
|
||||
return ids.map((i) => results[i] || [])
|
||||
}),
|
||||
getRevisionFunctions: createLoader<string, AutomateRevisionFunctionRecord[]>(
|
||||
getRevisionFunctions: createLoader<string, AutomationRevisionFunctionRecord[]>(
|
||||
async (ids) => {
|
||||
const results = await getRevisionsFunctions({
|
||||
automationRevisionIds: ids.slice()
|
||||
|
||||
Reference in New Issue
Block a user