Skip to content

Commit 510ff45

Browse files
committed
LAST COMMIT BEFORE RELEASE 0.10.0 - SMALL EDITS
1 parent 5e15a1a commit 510ff45

6 files changed

Lines changed: 26 additions & 20 deletions

File tree

GeoHealthCheck/plugins/probe/ogcfeat.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -232,32 +232,36 @@ def perform_request(self):
232232
continue
233233

234234
if len(items['features']) > 0:
235+
item = items['features'][0]
236+
237+
fid = item.get('id', None)
238+
if fid is not None:
239+
try:
240+
item = oa_feat.collection_item(coll_id, fid)
241+
except Exception as e:
242+
msg = 'GetItem by id=%s from %s: OWSLib err: %s' \
243+
% (str(fid), coll_id, str(e))
244+
result = push_result(
245+
self, result, False, msg, 'Test GetItem')
246+
continue
247+
248+
# At least these attributes should be present, 'id' and 'links'
249+
# not strictly required.
250+
for attr in ['properties', 'geometry', 'type']:
235251

236-
fid = items['features'][0]['id']
237-
try:
238-
item = oa_feat.collection_item(coll_id, fid)
239-
except Exception as e:
240-
msg = 'GetItem %s: OWSLib err: %s' \
241-
% (str(e), coll_id)
242-
result = push_result(
243-
self, result, False, msg, 'Test GetItem')
244-
continue
245-
246-
for attr in \
247-
['id', 'links', 'properties', 'geometry', 'type']:
248252
val = item.get(attr, None)
249253
if val is None:
250254
msg = '%s:%s missing attr: %s' \
251255
% (coll_id, str(fid), attr)
252256
result = push_result(
253-
self, result, False, msg, 'Test GetItem')
257+
self, result, False, msg, 'Test Feature attrs present')
254258
continue
255259

256260
if attr == 'type' and val != 'Feature':
257261
msg = '%s:%s type not Feature: %s' \
258262
% (coll_id, str(fid), val)
259263
result = push_result(
260-
self, result, False, msg, 'Test GetItem')
264+
self, result, False, msg, 'Test attr type=Feature')
261265
continue
262266

263267
except Exception as err:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.10.0dev
1+
0.10.0

docs/admin.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,7 @@ Then copy-paste the hash-string into the `password`-field of the User-record in
123123
Build Documentation
124124
-------------------
125125

126-
Open a command line, (if needed activate your virtualenv) and move into the directory ``GeoHealthCheck/doc/``.
127-
In there, type ``make html`` plus ENTER and the documentation should be built locally.
126+
Open a command line, (if needed activate your virtualenv or your `pixi` environment) and
127+
enter `invoke refresh_docs` or `pixi run docs`.
128+
Find the generated HTML docs under `docs/_build/html/index.html`.
129+

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ In summary there are three options to run GHC and its healthchecks:
126126
Language Translations
127127
---------------------
128128

129-
GHC supports multiple languages by using [Babel](http://babel.pocoo.org) with [Flask-Babel](https://pythonhosted.org/Flask-Babel/).
129+
GHC supports multiple languages by using `Babel <http://babel.pocoo.org>`_ with Flask-Babel `<https://pythonhosted.org/Flask-Babel/>`_.
130130

131131
*"Babel is an integrated collection of utilities that assist in internationalizing*
132132
*and localizing Python applications, with an emphasis on web-based applications."*

docs/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ See `closed issues/merged PRs for related Milestone 0.9.0 <https://github.com/ge
225225
Upgrade notes v0.10.0
226226
.....................
227227

228-
This is a major upgrade. 27 issues and PRs went in from 0.9.0 to 0.10.0.
228+
This is a major upgrade. About 35 issues and PRs went in from 0.9.0 to 0.10.0.
229229
The main breaking change is that the project switched from `requirements.txt` plus `Paver` to
230230
`pyproject.toml` with the `Invoke Task executor <https://www.pyinvoke.org/>`_ and the `Pixi Python Environment Manager <https://pixi.prefix.dev/>`_.
231231
This affects the installation and management steps and the Docker Image (much smaller!) plus Docker and Docker Compose deployment settings.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "GeoHealthCheck"
3-
version = "0.9.1dev"
3+
version = "0.10.0"
44
description = "Monitor uptime and availability of OGC web services and REST APIs"
55
readme = "README.md"
66
requires-python = ">=3.12,<3.14"

0 commit comments

Comments
 (0)