eclipse-edc / eclipse-edc/Connector

Filter on Contract Negotiation on contractOffers

Open
#5,990 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
424
Forks
300
Avg merge
12h 19m
Merged PRs (30d)
37

Description

# Feature Request

On the endpoint `/management/v4/contractnegotiations/request`
the query:
```json
{
"@context":[
"https://w3id.org/edc/connector/management/v2"
],
"@type":"QuerySpec",
"filterExpression":[
{
"@type": "Criterion",
"operandLeft": "contractOffers.assetId",
"operator": "=",
"operandRight": "59dbc8a3-3a1c-4952-923e-9890a58f9194"
}
]
}
```

return a 200 with an empty array, and I have contract negotiations with this UUID.

## Why Is the Feature Desired?

It allow to retrieve negotiation event if the agreement is not yet available.

## Solution Proposal

Add mapping in the [ContractNegotiationMapping](https://github.com/eclipse-edc/Connector/blob/main/extensions/control-plane/store/sql/contract-negotiation-store-sql/src/main/java/org/eclipse/edc/connector/controlplane/store/sql/contractnegotiation/store/schema/postgres/ContractNegotiationMapping.java) ?

Contributor guide

Open the contributing guide

Research direction

Start with the /management/v4/contractnegotiations/request endpoint and the example filter using contractOffers.assetId. Read ContractNegotiationMapping.java in the SQL contract-negotiation store, then reproduce the request against a negotiation whose asset UUID is known. Done means the filter returns the matching contract negotiation even when its agreement is not yet available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, postgresql
Domain
api, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.