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

chore(wren-ui): improve host validator for data sources #847

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

fredalai
Copy link
Contributor

Description

This PR adds validation to the Host field in the database connection settings to guide users on correctly setting up a local database in a Docker environment.

Task

  • Add frontend validation for the Host field.
    • Apply ClickHouse, MySQL, PostgreSQL, SQLServer, Trino

Expected behavior

Show the error message - Invalid host. Use 'host.docker.internal' on macOS/Windows to connect to the local database. when a user fills localhost or 127.0.0.1 value as the host.

UI screenshots

截圖 2024-10-30 下午9 06 20 截圖 2024-10-30 下午9 01 38 截圖 2024-10-30 下午9 09 01 截圖 2024-10-30 下午9 09 16

@fredalai fredalai marked this pull request as ready for review October 30, 2024 13:36
Copy link
Contributor

@onlyjackfrost onlyjackfrost left a comment

Choose a reason for hiding this comment

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

LGTM

@fredalai fredalai merged commit afb5d9c into main Nov 1, 2024
7 checks passed
@fredalai fredalai deleted the chore/improve-host-validator branch November 1, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants