File tree Expand file tree Collapse file tree 7 files changed +14
-7
lines changed
client/packages/lowcoder/src/pages/setting/environments Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ export const appsConfig: DeployableItemConfig = {
50
50
publishOnTarget : values . publishOnTarget ,
51
51
publicToAll : values . publicToAll ,
52
52
publicToMarketplace : values . publicToMarketplace ,
53
+ applicationGid : item . applicationGid ,
53
54
} ;
54
55
} ,
55
56
execute : ( params : any ) => deployApp ( params )
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ export const dataSourcesConfig: DeployableItemConfig = {
23
23
envId : sourceEnv . environmentId ,
24
24
targetEnvId : targetEnv . environmentId ,
25
25
datasourceId : item . id ,
26
- updateDependenciesIfNeeded : values . updateDependenciesIfNeeded
26
+ updateDependenciesIfNeeded : values . updateDependenciesIfNeeded ,
27
+ datasourceGid : item . gid
27
28
} ;
28
29
} ,
29
30
execute : ( params : any ) => deployDataSource ( params )
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ export const queryConfig: DeployableItemConfig = {
24
24
envId : sourceEnv . environmentId ,
25
25
targetEnvId : targetEnv . environmentId ,
26
26
queryId : item . id ,
27
- updateDependenciesIfNeeded : values . updateDependenciesIfNeeded
27
+ updateDependenciesIfNeeded : values . updateDependenciesIfNeeded ,
28
+ queryGid : item . gid ,
28
29
} ;
29
30
} ,
30
31
execute : ( params : any ) => deployQuery ( params )
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface DeployAppParams {
18
18
envId : string ;
19
19
targetEnvId : string ;
20
20
applicationId : string ;
21
+ applicationGid : string ;
21
22
updateDependenciesIfNeeded ?: boolean ;
22
23
publishOnTarget ?: boolean ;
23
24
publicToAll ?: boolean ;
@@ -125,7 +126,7 @@ export const deployApp = async (params: DeployAppParams): Promise<boolean> => {
125
126
126
127
if ( response . status === 200 ) {
127
128
await transferManagedObject (
128
- params . applicationId ,
129
+ params . applicationGid ,
129
130
params . envId ,
130
131
params . targetEnvId ,
131
132
ManagedObjectType . APP
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ export interface DeployDataSourceParams {
20
20
envId : string ;
21
21
targetEnvId : string ;
22
22
datasourceId : string ;
23
+ datasourceGid : string ;
23
24
updateDependenciesIfNeeded ?: boolean ;
25
+
24
26
}
25
27
// Get data sources for a workspace - using your correct implementation
26
28
export async function getWorkspaceDataSources (
@@ -157,12 +159,12 @@ export async function deployDataSource(params: DeployDataSourceParams): Promise<
157
159
envId : params . envId ,
158
160
targetEnvId : params . targetEnvId ,
159
161
datasourceId : params . datasourceId ,
160
- updateDependenciesIfNeeded : params . updateDependenciesIfNeeded ?? false
162
+ updateDependenciesIfNeeded : params . updateDependenciesIfNeeded ?? false ,
161
163
}
162
164
} ) ;
163
165
if ( response . status === 200 ) {
164
166
await transferManagedObject (
165
- params . datasourceId ,
167
+ params . datasourceGid ,
166
168
params . envId ,
167
169
params . targetEnvId ,
168
170
ManagedObjectType . DATASOURCE
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface MergedQueriesResult {
15
15
targetEnvId : string ;
16
16
queryId : string ;
17
17
updateDependenciesIfNeeded ?: boolean ;
18
+ queryGid : string ;
18
19
}
19
20
20
21
@@ -84,7 +85,7 @@ export interface MergedQueriesResult {
84
85
} ) ;
85
86
if ( response . status === 200 ) {
86
87
await transferManagedObject (
87
- params . queryId ,
88
+ params . queryGid ,
88
89
params . envId ,
89
90
params . targetEnvId ,
90
91
ManagedObjectType . QUERY
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export async function deployWorkspace(params: {
99
99
// After successful deployment, set the managed object in target environment
100
100
if ( response . status === 200 ) {
101
101
await transferManagedObject (
102
- params . workspaceId ,
102
+ params . workspaceId , // first param has to be GID
103
103
params . envId ,
104
104
params . targetEnvId ,
105
105
ManagedObjectType . ORG
You can’t perform that action at this time.
0 commit comments