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

feat(source-connection-string): Postgres connection string configuration #27559

Merged
merged 5 commits into from
Jan 16, 2025

Conversation

phixMe
Copy link
Contributor

@phixMe phixMe commented Jan 15, 2025

image

Problem

Provides a faster way to provide a postgres connection string which can be added to other db providers easily. It avoids users from input each field manually and instead attempts to autofill every other field once a valid connection string is found.

De-risked by not being manditory and not attempting to do 2 way data binding between individual fields

Changes

  • pg connection string parser (to be exapanded upon)
  • Added "Connection String" special handling as a form field

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Tried multiple different formats of pg connection strings which parse correctly and provide an optional fast-track to get through this config page as fast as possible.

@phixMe phixMe requested a review from EDsCODE January 15, 2025 18:36
Copy link
Contributor

github-actions bot commented Jan 15, 2025

Size Change: 0 B

Total Size: 1.13 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.13 MB

compressed-size-action

const sourceFieldToElement = (field: SourceFieldConfig, sourceConfig: SourceConfig, lastValue?: any): JSX.Element => {
if (field.type === 'text' && field.name === 'connection_string') {
Copy link
Member

@EDsCODE EDsCODE Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally field is just determined by "type" but fine leaving this for now and refactoring later if we have a bunch of conditionals

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@EDsCODE EDsCODE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@phixMe phixMe merged commit a2eda38 into master Jan 16, 2025
99 checks passed
@phixMe phixMe deleted the feat(source-connection-string) branch January 16, 2025 00:53
thmsobrmlr pushed a commit that referenced this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants