Skip to content

upgrade OWSLib to 0.20.0 and fix WFS3 (OAPIF) Probes - #333

Merged
justb4 merged 3 commits into
masterfrom
owslib-upgrade
Oct 27, 2020
Merged

upgrade OWSLib to 0.20.0 and fix WFS3 (OAPIF) Probes#333
justb4 merged 3 commits into
masterfrom
owslib-upgrade

Conversation

@justb4

@justb4 justb4 commented Oct 26, 2020

Copy link
Copy Markdown
Member

This PR supersedes PR #312

  • upgrades OWSLib from 0.17.1 to 0.20.0
  • should fix WFS v1 v2 probes for Authentication Headers
  • WFS3 (OAPIF) Probes now use the new OWSLib ogcapi client classes
  • includes adding a "WFS3 (OAPIF) Capabilities" that is now default when adding this Resource type

NB renaming all in GHC from WFS3 to OAPIF is too involved now, as this would require DB updates in existing installations...

@justb4
justb4 requested review from borrob and tomkralidis October 26, 2020 14:34
@justb4 justb4 self-assigned this Oct 26, 2020
@justb4 justb4 added this to the Version 0.8.1 milestone Oct 26, 2020

@tomkralidis tomkralidis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Only comments are to consider harmonizing based on the following long and short names (in the name of more OGC API support in GHC in the future):

  • OGC API - Features
  • OAFeat

@@ -1,25 +1,64 @@
import requests

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we rename this file to GeoHealthCheck/plugins/probe/oafeat.py?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Normally would agree. Only this is not a simple name change: like resource_type OGC:WFS3, the Probe class package string is stored in the DB (probe_vars table, column probe_class) like GeoHealthCheck.plugins.probe.wfs3.WFS3Caps. So this would require an Alembic DB upgrade as well. I propose to do this in separate issue/PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK. +1 to cover in another issue/PR.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

See my comment above. I agree that we should align naming for OAFeat. (Was not even aware of the most recent naming.) But this PR is mainly the OWSLib upgrade, causing bugs fixed for OWS Authentication (headers param WFS and TMS) and a need to rewrite WFS3/OAFeat Probe code. Was more involved than planned. That next PR would then be for #313.

@justb4 justb4 Oct 26, 2020

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Though renaming OAPIF to OAFeat (is that the new name?) in the comments and some code is ok. Only the Probe class names GeoHealthCheck.plugins.probe.wfs3.* and Resource Type OGC:WFS3 have DB-impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants