-
Notifications
You must be signed in to change notification settings - Fork 0
feat: support id:n123 is the same as id:node/123 #19
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
Open
Gigaszi
wants to merge
1
commit into
main
Choose a base branch
from
shorthand-osm-types
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
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
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
2 changes: 1 addition & 1 deletion
2
tests/approved/test_main.py--test_build_tree[120394598].approved.txt
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 +1 @@ | ||
| ([] ([64] ([2 64] ([84 2 64] type : node)) and ([107 64] ([79 107 64] ([116 79 107 64] natural) = ([118 79 107 64] tree)))) <EOF>) | ||
| ([] ([66] ([2 66] ([86 2 66] type : node)) and ([109 66] ([81 109 66] ([118 81 109 66] natural) = ([120 81 109 66] tree)))) <EOF>) |
2 changes: 1 addition & 1 deletion
2
tests/approved/test_main.py--test_build_tree[3829097196].approved.txt
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 +1 @@ | ||
| ([] ([64] ([2 64] ([89 2 64] id : ( node/1 , way/2 ))) and ([107 64] ([84 107 64] type : way))) <EOF>) | ||
| ([] ([66] ([2 66] ([91 2 66] id : ( ([203 91 2 66] node/1) , ([205 91 2 66] way/2) ))) and ([109 66] ([86 109 66] type : way))) <EOF>) |
2 changes: 1 addition & 1 deletion
2
tests/approved/test_main.py--test_build_tree[489910419].approved.txt
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 +1 @@ | ||
| ([] ([64] ([79 64] ([116 79 64] natural) = ([118 79 64] tree))) <EOF>) | ||
| ([] ([66] ([81 66] ([118 81 66] natural) = ([120 81 66] tree))) <EOF>) |
5 changes: 5 additions & 0 deletions
5
tests/approved/test_main.py--test_short_type_id_list_match[1296904949].approved.txt
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,5 @@ | ||
| id:n4540889804 | ||
|
|
||
| (osm_type = 'node' AND osm_id = 4540889804) | ||
|
|
||
| [<Record count=8>] |
5 changes: 5 additions & 0 deletions
5
tests/approved/test_main.py--test_short_type_id_list_match[1336911958].approved.txt
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,5 @@ | ||
| id:(r4540889804) | ||
|
|
||
| (osm_id = 4540889804 AND osm_type = 'relation') | ||
|
|
||
| [<Record count=0>] |
5 changes: 5 additions & 0 deletions
5
tests/approved/test_main.py--test_short_type_id_list_match[2566310075].approved.txt
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,5 @@ | ||
| id:w4540889804 | ||
|
|
||
| (osm_type = 'way' AND osm_id = 4540889804) | ||
|
|
||
| [<Record count=0>] |
5 changes: 5 additions & 0 deletions
5
tests/approved/test_main.py--test_short_type_id_list_match[3919668473].approved.txt
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,5 @@ | ||
| id:r4540889804 | ||
|
|
||
| (osm_type = 'relation' AND osm_id = 4540889804) | ||
|
|
||
| [<Record count=0>] |
2 changes: 1 addition & 1 deletion
2
tests/approved/test_main.py--test_type_id_list_match_invalid[3559956843].approved.txt
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,3 +1,3 @@ | ||
| id:(node/4540889804, way/1136431018, ) | ||
|
|
||
| line 1:37 missing OSMID at ')' | ||
| line 1:37 missing {OSMID, SHORT_OSMID} at ')' |
1 change: 1 addition & 0 deletions
1
tests/cassettes/test_main.py--test_short_type_id_list_match.cassette.json
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 @@ | ||
| {"2299538076": {"results": [{"count": 0}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_id = 4540889804 AND osm_type = 'relation')", "args": [], "limit": 0, "timeout": null, "record_class": null}, "3010097021": {"results": [{"count": 0}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_type = 'relation' AND osm_id = 4540889804)", "args": [], "limit": 0, "timeout": null, "record_class": null}, "3569995583": {"results": [{"count": 0}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_type = 'way' AND osm_id = 4540889804)", "args": [], "limit": 0, "timeout": null, "record_class": null}, "2392719313": {"results": [{"count": 8}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_type = 'node' AND osm_id = 4540889804)", "args": [], "limit": 0, "timeout": null, "record_class": null}} |
1 change: 1 addition & 0 deletions
1
tests/cassettes/test_main.py--test_shorthand_osm_type_comparison.cassette.json
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 @@ | ||
| {"2299538076": {"results": [{"count": 0}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_id = 4540889804 AND osm_type = 'relation')", "args": [], "limit": 0, "timeout": null, "record_class": null}, "437655465": {"results": [{"count": 0}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_id = 4540889804 AND osm_type = 'way')", "args": [], "limit": 0, "timeout": null, "record_class": null}, "2355357960": {"results": [{"count": 8}], "query": "SELECT COUNT(*) FROM contributions WHERE (osm_id = 4540889804 AND osm_type = 'node')", "args": [], "limit": 0, "timeout": null, "record_class": null}} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe for consistency change this to