Skip to content

Commit a7c9e9c

Browse files
committed
fixup! Issue #668 eliminate FederationExtension abstraction
1 parent 7297d9f commit a7c9e9c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

openeo/rest/models/federation_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_federation_missing(data: dict, *, resource_name: str, auto_warn: bool =
1717
Get "federation:missing" field from response data, if present.
1818
:param data: response data
1919
:param resource_name: name of the requested resource (listing)
20-
:param auto_warn: whether to automatically a warning if missing federation components are detected
20+
:param auto_warn: whether to automatically log a warning if missing federation components are detected.
2121
"""
2222
# TODO: options to return richer objects (e.g. resolve backend id to URL/title)
2323
missing = data.get("federation:missing", None)

openeo/rest/models/general.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def ext_federation_missing(self, *, auto_warn: bool = False) -> Union[None, List
7171
List of backends IDs (from the federation)
7272
that were not available during the resource listing request.
7373
74-
.. seealso:: :ref:`federation-extension`
74+
:param auto_warn: whether to automatically log a warning if missing federation components are detected.
7575
76+
.. seealso:: :ref:`federation-extension`
7677
"""
7778
return federation_extension.get_federation_missing(
7879
data=self._data, resource_name="collection listing", auto_warn=auto_warn
@@ -121,6 +122,8 @@ def ext_federation_missing(self, *, auto_warn: bool = False) -> Union[None, List
121122
List of backends IDs (from the federation)
122123
that were not available during the resource listing request.
123124
125+
:param auto_warn: whether to automatically log a warning if missing federation components are detected.
126+
124127
.. seealso:: :ref:`federation-extension`
125128
"""
126129
return federation_extension.get_federation_missing(
@@ -169,6 +172,8 @@ def ext_federation_missing(self, *, auto_warn: bool = False) -> Union[None, List
169172
List of backends IDs (from the federation)
170173
that were not available during the resource listing request.
171174
175+
:param auto_warn: whether to automatically log a warning if missing federation components are detected.
176+
172177
.. seealso:: :ref:`federation-extension`
173178
"""
174179
return federation_extension.get_federation_missing(
@@ -244,6 +249,8 @@ def ext_federation_missing(self, *, auto_warn: bool = False) -> Union[None, List
244249
List of backends IDs (from the federation)
245250
that were not available during the resource listing request.
246251
252+
:param auto_warn: whether to automatically log a warning if missing federation components are detected.
253+
247254
.. seealso:: :ref:`federation-extension`
248255
"""
249256
return federation_extension.get_federation_missing(

0 commit comments

Comments
 (0)