Skip to content

Update regis.get_layer_names() to return pre 2.2.3 names#433

Merged
bdestombe merged 6 commits intodevfrom
get-old-regis-names
Mar 26, 2025
Merged

Update regis.get_layer_names() to return pre 2.2.3 names#433
bdestombe merged 6 commits intodevfrom
get-old-regis-names

Conversation

@bdestombe
Copy link
Collaborator

If regis version would receive a small version bump, the origional code would crash. With the proposed changes less likely so.
@bdestombe bdestombe requested a review from rubencalje March 24, 2025 09:20
@bdestombe
Copy link
Collaborator Author

The failed test is unrelated to the changes proposed here. They are related to a firewall at nhi.nu.

url = 'https://gwo.nhi.nu/api/v1/well_filters/', page = 1, properties = []
params = {'format': 'csv', 'n_well_filters': 1000, 'page': 1, 'well__organization': 'Brabant Water'}
r = <Response [403]>
content = '<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <title>Web App - Unavailable</title>\r\n    <style type="text/css">\r\n   ...app you have attempted to reach has blocked your access.</p>\r\n        </div>\r\n    </div>\r\n</body>\r\n</html>\r\n'

Copy link
Collaborator

@rubencalje rubencalje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition! I have one request to make it a bit more robust.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in NHFLO Mar 26, 2025
@bdestombe bdestombe requested a review from rubencalje March 26, 2025 15:41
@bdestombe
Copy link
Collaborator Author

Failing tests are not related again with the changes made here

@bdestombe bdestombe merged commit 08e70a3 into dev Mar 26, 2025
2 of 3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in NHFLO Mar 26, 2025
@bdestombe bdestombe deleted the get-old-regis-names branch March 26, 2025 17:45
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