-
Notifications
You must be signed in to change notification settings - Fork 88
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
Fix UDF choice editing helper function #3259
Conversation
Replaces use of `urllib` and `urllib2` with Requests library while attempting to maintain backwards compatibility.
…ests Upgrade Omgeo to v5.1.0
Adds a command to write out the feature id, tree id, and the URL of all photos for an instance as a CSV. This CSV can then be processed on a developer workstation to export all of the instance photos.
Add create_photo_csv management command
Tapping on the layers control in Mobile Safari was not opening the layer selector. I was not able to reproduce this issue in a separate test application, only within OTM. After much trial and error I discovered that changing this line L.DomEvent.on(el, L.Draggable.START.join(' '), stop); to L.DomEvent.on(container, 'mousedown', stop); in DomEvent.disableClickPropagation resolved the issue. Effectively, this prevents the `touchstart` event from being stopped. I opted to implement this as a runtime patch applied within MapManager instead of a global patch to the Leaflet source because there are no other Leaflet behaviors that are known to be broken in Mobile Safari and I did not want to risk introducing a regression in some other event handling. I minimized the chance of forgetting about this patch if/when we upgrade our version of Leaflet by adding a comment to package.json.
…ector Monkey patch the Leaflet layer selector to work in Mobile Safari
Removes the configuration file used by Circle CI.
Remove Circle CI support
Copied from https://docs.rollbar.com/docs/browser-js Attempts to remove the "Telemetry requires the latest release of rollbar.js." message when viewing logged errors on the Rollbar dashboard.
Addresses the following error raised by Chrome when viewing an embedded map: SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
Update Rollbar JS client and catch localStorage security error
In the case where choice fields contain numeric values, this helper is called with a number and fails unless we force the value to a string.
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.
Tried on a variety of value types and does not generate an error. Side note, that's a really nice interface for adding choices.
Thanks. I am going to retarget this to the newly created |
Dealing with an issue retargeting this to the hotfix branch. Will reopen. |
Overview
In the case where choice fields contain numeric values, this helper is called with a number and fails unless we force the value to a string.
Connects https://github.com/OpenTreeMap/otm-clients/issues/441
Testing Instructions
develop
branch+ Add Field
Finish
to save it.* Refresh the page and click `Edit`. Start typing a new choice value and you will see an exception in the console
* Checkout this branch, reload the page, and click `Edit`. * Verify that you can successfully add a new choice value and save it.