Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SQL file and text imports now show a localized size-limit message when the server rejects a request with HTTP 413, while ordinary SQL errors retain their original messages.
Multipart uploads preserve status 413 for plain-text, HTML, and empty responses, with regression coverage for both import modes.
Validation
Passed frontend typecheck, production build, ESLint, all 209 tests, backend
go build ./..., and the pre-commit secret scan; the frontend build reported non-blocking PostCSS and bundle warnings.Sequence Diagram
sequenceDiagram participant User participant Modal as DatabaseImportModal participant Client as GraphQL Client participant Server User->>Modal: Import SQL file or text Modal->>Client: ImportSQL mutation Client->>Server: Send import request alt HTTP 413 Server-->>Client: Reject oversized request Client-->>Modal: Network error with statusCode 413 Modal-->>User: Localized size-limit message else Ordinary SQL error Server-->>Client: SQL error Client-->>Modal: Original error Modal-->>User: Original error message end