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

Bounding boxes added to priority rules through API get altered. #886

Open
atiannicelli opened this issue Mar 10, 2021 · 0 comments
Open

Comments

@atiannicelli
Copy link

atiannicelli commented Mar 10, 2021

When I use the API to create or update a challenge that has a bounding box highPriorityRule, the first value (x_min) gets munged.

If add this json to the high priority rule:
{"type": "bounds", "operator": "contains", "value": "-98.805051,29.2562939,-98.023766,29.777227"},

then the resulting high priority rule set in the challenge looks like this:
Screen Shot 2021-03-10 at 12 42 53 PM

The full text in the value box is: "805051,29.2562939,-98.023766,29.777227"

The first value seems to be getting altered from what was passed in as I would expect it to be
"-98.805051,29.2562939,-98.023766,29.777227"

From the code I gathered that it thinks that the "value" string is a two part string separated by a "."
So I tried adding a garbage string to my value...
{"type": "bounds", "operator": "contains", "value": "bbox.-98.805051,29.2562939,-98.023766,29.777227"},
And that worked!

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

No branches or pull requests

1 participant