-
Notifications
You must be signed in to change notification settings - Fork 107
refactor: type replacement tracker supports shortening ranges #547
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
Changes from 28 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
c0ed76c
ok?
juleswritescode fd0d198
ok?
juleswritescode d4ece2e
testie testie
juleswritescode dae4b9a
ok so far
juleswritescode c35c596
Merge branch 'main' of https://github.com/supabase-community/postgres…
juleswritescode 2823ca0
ack
juleswritescode a2ae8f0
OKJ
juleswritescode 802a0d2
install em toolz
juleswritescode 934a44b
oke then
juleswritescode e3b5e30
amazing!
juleswritescode 79cb776
Merge branch 'main' of https://github.com/supabase-community/postgres…
juleswritescode b472454
remove unneeded
juleswritescode 48ade40
better api
juleswritescode 38741b4
almost there…
juleswritescode 7e63009
ok?
juleswritescode 4e0ef81
ack ack
juleswritescode 5f1d273
comment
juleswritescode d503333
Update crates/pgt_text_size/src/text_range_replacement.rs
juleswritescode bb9bfba
ok
juleswritescode 3eb2f61
simple
juleswritescode 79109a0
Merge branch 'main' into feat/longer-type-replacements
juleswritescode 52cd007
intermediary
juleswritescode 00fe8ef
resolve conflicts
juleswritescode e669094
ok then…
juleswritescode 0cf105e
its not dead
juleswritescode 7c7549c
no more spaces
juleswritescode 53e2429
ok
juleswritescode 41405a6
we got em tests
juleswritescode 8cfef05
Update crates/pgt_typecheck/tests/diagnostics.rs
juleswritescode f653ea5
Merge branch 'main' into feat/shorter-type-replacements
juleswritescode 6ec8115
better
juleswritescode 1ddbc5e
Merge branch 'feat/shorter-type-replacements' of https://github.com/s…
juleswritescode 36345c6
ack
juleswritescode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
--- | ||
source: crates/pgt_typecheck/tests/diagnostics.rs | ||
expression: normalized | ||
snapshot_kind: text | ||
expression: content | ||
--- | ||
typecheck ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
select id, ~~~unknown~~~ from contacts; | ||
|
||
<strong><span style="color: Tomato;">✖</span></strong> <span style="color: Tomato;">column "unknown" does not exist</span> | ||
|
||
<strong><span style="color: Tomato;">✖</span></strong> <span style="color: Tomato;">Error Code: </span><span style="color: Tomato;"><strong>42703</strong></span> | ||
column "unknown" does not exist |
7 changes: 7 additions & 0 deletions
7
crates/pgt_typecheck/tests/snapshots/invalid_type_in_function_longer_default.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: crates/pgt_typecheck/tests/diagnostics.rs | ||
expression: content | ||
--- | ||
delete from public.contacts where id = ~~~uid~~~; | ||
|
||
invalid input syntax for type integer: "00000000-0000-0000-0000-000000000000" |
7 changes: 7 additions & 0 deletions
7
crates/pgt_typecheck/tests/snapshots/invalid_type_in_function_shorter_default.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
source: crates/pgt_typecheck/tests/diagnostics.rs | ||
expression: content | ||
--- | ||
delete from public.contacts where id = ~~~contact_name~~~; | ||
|
||
invalid input syntax for type integer: "" |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.