BlueBrain / BlueBrain/nexus

Create an endpoint to test pipelines on a bunch of resources

Open
#2,905 0 comments 0 reactions 0 assignees View on GitHub
delta feature
Dominant language
Scala
Stars
301
Forks
76
PR merge metrics
No merged PRs in 30d

Description

**Motivation**
Defining pipelines can be quite difficult if users have to effectively create/update a view and wait for some resources to be indexed to check for the result.

This aims to make it easier by allowing to test a pipeline by just providing its definition and a list of resource to test it so as to iterate more quickly to get the desired pipeline behaviour by skipping view creation and indexing

**Acceptance criteria**
1. When user provides a pipeline definition and a list of resources to test
2. He gets an error if the pipeline is invalid
3. He gets the result after applying each resource to the pipeline

**API changes**
`/v1/views/elasticseach/org/proj`

```
{
"pipeline": [
{
"name": "excludeMetadata"
},
{
"name": "filterTypes",
"description": "We wish only to keep persons here",
"context": {
"types": [
"schema:Person"
]
}
},
{
"name": "[pipeName]",
"description": "[Optional description]",
"context": {
"property": "[Optional context]"
}
}
],
"resources": [
"nxv:resource1",
"another:resource",
...
]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.