Skip to content
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

fixed connections not compatible error on new job source page #447

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions frontend/app/new/job/flow/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default function Page({ searchParams }: PageProps): ReactElement {
type: 'string',
message: `Destination connection type must one of ${getErrorConnectionTypes(
isSource,
value,
sourceConn,
connections
)}`,
}
Expand Down Expand Up @@ -490,11 +490,11 @@ function getErrorConnectionTypes(
return '[Mysql, Postgres]';
}
if (conn.connectionConfig?.config.case == 'mysqlConfig') {
return isSource ? '[Mysql]' : '[Mysql, AWS S3]';
return isSource ? '[Postgres]' : '[Mysql, AWS S3]';
}

if (conn.connectionConfig?.config.case == 'pgConfig') {
return isSource ? '[Postgres]' : '[Postgres, AWS S3]';
return isSource ? '[Mysql]' : '[Postgres, AWS S3]';
}
return '';
}
Expand Down