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 = {
5050 publishOnTarget : values . publishOnTarget ,
5151 publicToAll : values . publicToAll ,
5252 publicToMarketplace : values . publicToMarketplace ,
53+ applicationGid : item . applicationGid ,
5354 } ;
5455 } ,
5556 execute : ( params : any ) => deployApp ( params )
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ export const dataSourcesConfig: DeployableItemConfig = {
2323 envId : sourceEnv . environmentId ,
2424 targetEnvId : targetEnv . environmentId ,
2525 datasourceId : item . id ,
26- updateDependenciesIfNeeded : values . updateDependenciesIfNeeded
26+ updateDependenciesIfNeeded : values . updateDependenciesIfNeeded ,
27+ datasourceGid : item . gid
2728 } ;
2829 } ,
2930 execute : ( params : any ) => deployDataSource ( params )
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ export const queryConfig: DeployableItemConfig = {
2424 envId : sourceEnv . environmentId ,
2525 targetEnvId : targetEnv . environmentId ,
2626 queryId : item . id ,
27- updateDependenciesIfNeeded : values . updateDependenciesIfNeeded
27+ updateDependenciesIfNeeded : values . updateDependenciesIfNeeded ,
28+ queryGid : item . gid ,
2829 } ;
2930 } ,
3031 execute : ( params : any ) => deployQuery ( params )
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface DeployAppParams {
1818 envId : string ;
1919 targetEnvId : string ;
2020 applicationId : string ;
21+ applicationGid : string ;
2122 updateDependenciesIfNeeded ?: boolean ;
2223 publishOnTarget ?: boolean ;
2324 publicToAll ?: boolean ;
@@ -125,7 +126,7 @@ export const deployApp = async (params: DeployAppParams): Promise<boolean> => {
125126
126127 if ( response . status === 200 ) {
127128 await transferManagedObject (
128- params . applicationId ,
129+ params . applicationGid ,
129130 params . envId ,
130131 params . targetEnvId ,
131132 ManagedObjectType . APP
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ export interface DeployDataSourceParams {
2020 envId : string ;
2121 targetEnvId : string ;
2222 datasourceId : string ;
23+ datasourceGid : string ;
2324 updateDependenciesIfNeeded ?: boolean ;
25+
2426}
2527// Get data sources for a workspace - using your correct implementation
2628export async function getWorkspaceDataSources (
@@ -157,12 +159,12 @@ export async function deployDataSource(params: DeployDataSourceParams): Promise<
157159 envId : params . envId ,
158160 targetEnvId : params . targetEnvId ,
159161 datasourceId : params . datasourceId ,
160- updateDependenciesIfNeeded : params . updateDependenciesIfNeeded ?? false
162+ updateDependenciesIfNeeded : params . updateDependenciesIfNeeded ?? false ,
161163 }
162164 } ) ;
163165 if ( response . status === 200 ) {
164166 await transferManagedObject (
165- params . datasourceId ,
167+ params . datasourceGid ,
166168 params . envId ,
167169 params . targetEnvId ,
168170 ManagedObjectType . DATASOURCE
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface MergedQueriesResult {
1515 targetEnvId : string ;
1616 queryId : string ;
1717 updateDependenciesIfNeeded ?: boolean ;
18+ queryGid : string ;
1819 }
1920
2021
@@ -84,7 +85,7 @@ export interface MergedQueriesResult {
8485 } ) ;
8586 if ( response . status === 200 ) {
8687 await transferManagedObject (
87- params . queryId ,
88+ params . queryGid ,
8889 params . envId ,
8990 params . targetEnvId ,
9091 ManagedObjectType . QUERY
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export async function deployWorkspace(params: {
9999 // After successful deployment, set the managed object in target environment
100100 if ( response . status === 200 ) {
101101 await transferManagedObject (
102- params . workspaceId ,
102+ params . workspaceId , // first param has to be GID
103103 params . envId ,
104104 params . targetEnvId ,
105105 ManagedObjectType . ORG
You can’t perform that action at this time.
0 commit comments