Skip to content

DBQnA: Unified POST data format, and fix judgment logic. #2153

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 2 commits into from
Aug 11, 2025
Merged

Conversation

ZePan110
Copy link
Collaborator

@ZePan110 ZePan110 commented Jul 30, 2025

Description

Further fixe judgment logic based on #2076

Issues

#2146

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

Describe the tests that you ran to verify your changes.

@Copilot Copilot AI review requested due to automatic review settings July 30, 2025 02:54
@ZePan110 ZePan110 requested a review from lvliang-intel as a code owner July 30, 2025 02:54
Copy link

github-actions bot commented Jul 30, 2025

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR unifies the POST data format for database connection requests and improves the success status judgment logic in the DBConnect component. The changes standardize how connection data is sent to the backend and make the success detection more robust.

  • Modified database connection request format to wrap connection parameters in a unified structure
  • Updated success status detection to be case-insensitive and use substring matching
  • Changed default host from a specific IP to localhost
Comments suppressed due to low confidence (1)

DBQnA/ui/react/src/components/DbConnect/DBConnect.tsx:45

  • [nitpick] The variable name 'unifiedConnData' uses inconsistent naming convention. Consider using camelCase 'unifiedConnectionData' or snake_case consistently throughout the codebase.
      let unifiedConnData = {"conn_str":formData};

@ZePan110
Copy link
Collaborator Author

Local test passed. The test will not be triggered because of CI hardware limitations.

@chensuyue chensuyue merged commit c0a826f into main Aug 11, 2025
18 checks passed
@chensuyue chensuyue deleted the ze-fix/2146 branch August 11, 2025 05:23
alexsin368 pushed a commit to alexsin368/GenAIExamples that referenced this pull request Aug 13, 2025
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