Skip to content

Commit 9fced81

Browse files
committed
Start warning about deprecated evaluate_process_from_url usage
refs: Open-EO/openeo-api#515 eu-cdse/openeo-cdse-infra#167
1 parent 4215641 commit 9fced81

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ and start a new "In Progress" section above it.
2121

2222
## In progress
2323

24+
## 0.103.2
25+
26+
- Start warning about deprecated `evaluate_process_from_url` usage (eu-cdse/openeo-cdse-infra#167)
27+
2428
## 0.103.0, 0.103.1
2529

2630
- Add helper for finding changelog path

openeo_driver/ProcessGraphDeserializer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1851,9 +1851,10 @@ def evaluate_udp(process_id: str, udp: UserDefinedProcessMetadata, args: dict, e
18511851

18521852

18531853
def evaluate_process_from_url(process_id: str, namespace: str, args: dict, env: EvalEnv):
1854+
# TODO: only support the simple case "namespace=direct URL" (without process_id appending attempts) https://github.com/Open-EO/openeo-api/issues/515 infra#167
18541855
if namespace.endswith("/"):
18551856
# Assume namespace is a folder possibly containing multiple processes
1856-
# TODO: these "candidates" are probably not going to be in the spec, so start warning about these? https://github.com/Open-EO/openeo-api/issues/515
1857+
_log.warning(f"Deprecated evaluate_process_from_url usage with {namespace=} {process_id=}")
18571858
candidates = [
18581859
f"{namespace}{process_id}",
18591860
f"{namespace}{process_id}.json",

openeo_driver/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.103.1a1"
1+
__version__ = "0.103.2a1"

0 commit comments

Comments
 (0)