Skip to content

Commit b771af3

Browse files
soxofaanPeter Van Bouwel
authored and
Peter Van Bouwel
committed
Issue Open-EO#379 add warnings on non-standard (e.g. "u:") namespace usage
1 parent c6c55c8 commit b771af3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openeo_driver/views.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -754,10 +754,11 @@ def processes():
754754
def processes_from_namespace(namespace):
755755
# TODO: this endpoint is in draft at the moment
756756
# see https://github.com/Open-EO/openeo-api/issues/310, https://github.com/Open-EO/openeo-api/pull/348
757-
# TODO: convention for user namespace? use '@' instead of "u:"
758757
# TODO: unify with `/processes` endpoint?
758+
_log.warning(f"Non-standard processes_from_namespace with {namespace=}")
759759
full = smart_bool(request.args.get("full", False))
760760
target_version = None
761+
# TODO: convention for user namespace? use '@' instead of "u:"
761762
if namespace.startswith("u:") and backend_implementation.user_defined_processes:
762763
user_id = namespace.partition("u:")[-1]
763764
user_udps = [p for p in backend_implementation.user_defined_processes.get_for_user(user_id) if p.public]
@@ -791,6 +792,7 @@ def processes_from_namespace(namespace):
791792
def processes_details(namespace, process_id):
792793
# TODO: this endpoint is in draft at the moment
793794
# see https://github.com/Open-EO/openeo-api/issues/310, https://github.com/Open-EO/openeo-api/pull/348
795+
_log.warning(f"Non-standard processes_details with {namespace=} {process_id=}")
794796
if namespace.startswith("u:") and backend_implementation.user_defined_processes:
795797
user_id = namespace.partition("u:")[-1]
796798
udp = backend_implementation.user_defined_processes.get(user_id=user_id, process_id=process_id)

0 commit comments

Comments
 (0)