Open-EO / Open-EO/openeo-python-driver

Inconsistency between namespace usage in `describe_process` and `datacube_from_process` for UDP

Open
#159 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12
Forks
8
Avg merge
6d 3h
Merged PRs (30d)
4

Description

There is a difference in using the usage of namespaces for UDPs in different functions within the python client. The examples below show the different functions for a service called Emergence_detection_V2022_TERRA, created by user u:5e15639083f8407aaf106d87fd5bc26738619baf2bdc48bece79b1225ffbcaee@egi.eu.

When you want to use the describe_process function, the namespace should be set to u:<userid> as shown below. The code gives an error when using the full public URL.

service = "Emergence_detection_V2022_TERRA"
namespace = "u:5e15639083f8407aaf106d87fd5bc26738619baf2bdc48bece79b1225ffbcaee@egi.eu"

# Working function call
eoconn.describe_process(service, namespace=namespace)

# Returns an error
eoconn.describe_process(service, namespace=f'https://openeo.vito.be/openeo/1.1/processes/{namespace}/{service}')

However, when you want to use the datacube_from_process function to execute the actual service, you need to specify the namespace as <backend>/u:<userid>/<service>:


# Working function call
eoconn.datacube_from_process(service, namespace=f'https://openeo.vito.be/openeo/1.1/processes/{namespace}/{service}', date=date , polygon=aoi)

# Returns an error when executing the resulting datacube
eoconn.datacube_from_process(service, namespace=namespace, date=date , polygon=aoi)


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the implementations of describe_process and datacube_from_process in the Python client and reproduce the two namespace examples from the issue. Compare how each function parses or forwards UDP namespaces, then run the relevant client tests or calls to verify that both accepted forms behave consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.