-
Notifications
You must be signed in to change notification settings - Fork 144
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
Convert ANALYSIS_COORDINATE_SYSTEM_SRID to int in map_filter #11715
Convert ANALYSIS_COORDINATE_SYSTEM_SRID to int in map_filter #11715
Conversation
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.
Could you include an entry in the changelog?
Also, regarding your comment about using 3857 if the SRID isn't an int - if it can't be converted to an integer, then I think we want it to break rather than do the calculation with a different SRID. Using 3857 instead of the SRID the user thinks they are using might cause unexpected behavior.
@chiatt Changelog entry added in 94f34cc. I agree with the reasons why the search should break rather than use the default SRID value. Also in the commit, I added a raise error, as currently the error produced can come across as unhelpful: The new error prevents the search and informs the user that their value isn't a number because cannot be converted to int: This can be tested by setting ANALYSIS_COORDINATE_SYSTEM_SRID to a value like "test". Does this seem like a helpful improvement? |
I see coverage has decreased because of this - should I write a test for it? |
That would be great. It should be an easy one since @whatisgalen has already blazed that trail. You could just copy his
|
Sorry @SDScandrettKint - Could you move your changelog entry to the 7.6.7 release notes? |
Types of changes
Description of Change
Simple fix to convert ANALYSIS_COORDINATE_SYSTEM_SRID to int.
Not sure if this fix is sufficient, or whether I should go with the approach of below, just in case the settings value for ANALYSIS_COORDINATE_SYSTEM_SRID is incorrect and can't be converted to an int (as this fix could cause another problem).
Issues Solved
Closes #11714
Checklist
Accessibility Checklist
Developer Guide
Ticket Background
Further comments