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

Check for invalid min/max values from the server #45

Merged
merged 3 commits into from
Feb 15, 2018

Conversation

albarrentine
Copy link
Contributor

Hey @iandees, noticed a case in openaddresses/openaddresses/pull/3867 with ArcGIS 10.22 where the server returns an invalid min/max. pyesridump then tries to build requests based on those values, but none of the IDs in the range exist. This PR adds a simple returnIdsOnly query with a "WHERE {id} = {minval} OR {id} = {maxval}" to test whether the values returned by the server exist, and raises an error if not so OID enumeration will be tried. Now that OID enumeration is relatively fast, it shouldn't be as much of an issue to use it occasionally. Modified the test cases as well to add the new query where it's necessary.

@iandees
Copy link
Member

iandees commented Feb 15, 2018

Great, thanks!

@iandees iandees merged commit 1a02509 into openaddresses:master Feb 15, 2018
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.

2 participants