Content-Length: 471998 | pFad | http://github.com/lowcoder-org/lowcoder/pull/1694/commits/7ead10b00426e09aee2ea94bcd96b1d497f41ff4

FB Add error component on invalid URL and managed-obj endpoint by iamfaran · Pull Request #1694 · lowcoder-org/lowcoder · GitHub
Skip to content

Add error component on invalid URL and managed-obj endpoint #1694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix link managed issue for the deployable items
  • Loading branch information
iamfaran committed May 20, 2025
commit 7ead10b00426e09aee2ea94bcd96b1d497f41ff4
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const appsConfig: DeployableItemConfig = {
publishOnTarget: values.publishOnTarget,
publicToAll: values.publicToAll,
publicToMarketplace: values.publicToMarketplace,
applicationGid: item.applicationGid,
};
},
execute: (params: any) => deployApp(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const dataSourcesConfig: DeployableItemConfig = {
envId: sourceEnv.environmentId,
targetEnvId: targetEnv.environmentId,
datasourceId: item.id,
updateDependenciesIfNeeded: values.updateDependenciesIfNeeded
updateDependenciesIfNeeded: values.updateDependenciesIfNeeded,
datasourceGid: item.gid
};
},
execute: (params: any) => deployDataSource(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const queryConfig: DeployableItemConfig = {
envId: sourceEnv.environmentId,
targetEnvId: targetEnv.environmentId,
queryId: item.id,
updateDependenciesIfNeeded: values.updateDependenciesIfNeeded
updateDependenciesIfNeeded: values.updateDependenciesIfNeeded,
queryGid: item.gid,
};
},
execute: (params: any) => deployQuery(params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface DeployAppParams {
envId: string;
targetEnvId: string;
applicationId: string;
applicationGid: string;
updateDependenciesIfNeeded?: boolean;
publishOnTarget?: boolean;
publicToAll?: boolean;
Expand Down Expand Up @@ -125,7 +126,7 @@ export const deployApp = async (params: DeployAppParams): Promise<boolean> => {

if (response.status === 200) {
await transferManagedObject(
params.applicationId,
params.applicationGid,
params.envId,
params.targetEnvId,
ManagedObjectType.APP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export interface DeployDataSourceParams {
envId: string;
targetEnvId: string;
datasourceId: string;
datasourceGid: string;
updateDependenciesIfNeeded?: boolean;

}
// Get data sources for a workspace - using your correct implementation
export async function getWorkspaceDataSources(
Expand Down Expand Up @@ -157,12 +159,12 @@ export async function deployDataSource(params: DeployDataSourceParams): Promise<
envId: params.envId,
targetEnvId: params.targetEnvId,
datasourceId: params.datasourceId,
updateDependenciesIfNeeded: params.updateDependenciesIfNeeded ?? false
updateDependenciesIfNeeded: params.updateDependenciesIfNeeded ?? false,
}
});
if (response.status === 200) {
await transferManagedObject(
params.datasourceId,
params.datasourceGid,
params.envId,
params.targetEnvId,
ManagedObjectType.DATASOURCE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface MergedQueriesResult {
targetEnvId: string;
queryId: string;
updateDependenciesIfNeeded?: boolean;
queryGid: string;
}


Expand Down Expand Up @@ -84,7 +85,7 @@ export interface MergedQueriesResult {
});
if (response.status === 200) {
await transferManagedObject(
params.queryId,
params.queryGid,
params.envId,
params.targetEnvId,
ManagedObjectType.QUERY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export async function deployWorkspace(params: {
// After successful deployment, set the managed object in target environment
if (response.status === 200) {
await transferManagedObject(
params.workspaceId,
params.workspaceId, // first param has to be GID
params.envId,
params.targetEnvId,
ManagedObjectType.ORG
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lowcoder-org/lowcoder/pull/1694/commits/7ead10b00426e09aee2ea94bcd96b1d497f41ff4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy