feat(workspaces): enable move project region (#4135)
This commit is contained in:
@@ -21,4 +21,6 @@ extend type WorkspaceProjectMutations {
|
||||
- TODO: Eventually delete data in previous region
|
||||
"""
|
||||
moveToRegion(projectId: String!, regionKey: String!): String!
|
||||
@hasServerRole(role: SERVER_ADMIN)
|
||||
@hasStreamRole(role: STREAM_OWNER)
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
getAvailableRegionsFactory
|
||||
} from '@/modules/workspaces/services/regions'
|
||||
import { Roles } from '@speckle/shared'
|
||||
import { getFeatureFlags, isTestEnv } from '@/modules/shared/helpers/envHelper'
|
||||
import { getFeatureFlags } from '@/modules/shared/helpers/envHelper'
|
||||
import { WorkspacesNotYetImplementedError } from '@/modules/workspaces/errors/workspace'
|
||||
import { scheduleJob } from '@/modules/multiregion/services/queue'
|
||||
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
},
|
||||
WorkspaceProjectMutations: {
|
||||
moveToRegion: async (_parent, args, context) => {
|
||||
if (!FF_MOVE_PROJECT_REGION_ENABLED && !isTestEnv()) {
|
||||
if (!FF_MOVE_PROJECT_REGION_ENABLED) {
|
||||
throw new WorkspacesNotYetImplementedError()
|
||||
}
|
||||
|
||||
|
||||
@@ -522,7 +522,8 @@ isMultiRegionTestMode()
|
||||
const adminUser: BasicTestUser = {
|
||||
id: '',
|
||||
name: 'John Speckle',
|
||||
email: createRandomEmail()
|
||||
email: createRandomEmail(),
|
||||
role: Roles.Server.Admin
|
||||
}
|
||||
|
||||
const testWorkspace: SetOptional<BasicTestWorkspace, 'slug'> = {
|
||||
|
||||
@@ -572,6 +572,9 @@ Generate the environment variables for Speckle server and Speckle objects deploy
|
||||
- name: FF_WORKSPACES_NEW_PLANS_ENABLED
|
||||
value: {{ .Values.featureFlags.workspacesNewPlanEnabled | quote }}
|
||||
|
||||
- name: FF_MOVE_PROJECT_REGION_ENABLED
|
||||
value: {{ .Values.featureFlags.moveProjectRegionEnabled | quote }}
|
||||
|
||||
{{- if .Values.featureFlags.workspacesModuleEnabled }}
|
||||
- name: LICENSE_TOKEN
|
||||
valueFrom:
|
||||
|
||||
@@ -99,6 +99,11 @@
|
||||
"type": "boolean",
|
||||
"description": "Toggles whether the new (Q1 2025) plans for workspaces are available. workspacesModuleEnabled must also be enabled for this to take effect.",
|
||||
"default": false
|
||||
},
|
||||
"moveProjectRegionEnabled": {
|
||||
"type": "boolean",
|
||||
"description": "Enables the ability to move a project region (manually or automatically)",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -61,6 +61,8 @@ featureFlags:
|
||||
noPersonalEmailsEnabled: false
|
||||
## @param featureFlags.workspacesNewPlanEnabled Toggles whether the new (Q1 2025) plans for workspaces are available. workspacesModuleEnabled must also be enabled for this to take effect.
|
||||
workspacesNewPlanEnabled: false
|
||||
## @param featureFlags.moveProjectRegionEnabled Enables the ability to move a project region (manually or automatically)
|
||||
moveProjectRegionEnabled: false
|
||||
|
||||
analytics:
|
||||
## @param analytics.enabled Enable or disable analytics
|
||||
|
||||
Reference in New Issue
Block a user