BlueBrain / BlueBrain/nexus

Project > Create and Upload - creating an ElasticsearchView when the dropdown is on 'Any Resource' yield unwanted results

Open
#4,012 0 comments 0 reactions 0 assignees View on GitHub
enhancement fusion
Dominant language
Scala
Stars
301
Forks
76
PR merge metrics
No merged PRs in 30d

Description

## Description

![Screenshot 2023-06-28 at 16.35.53.png](https://images.zenhubusercontent.com/60ad1ee0d2c5ea18af754dc0/f3af6ab3-2011-4235-b4d1-2b686ef83965)

The UI has several options to enable resource creation with templated payloads:
- Any resource: aimed at enabling the user to create their own resource (think non Nexus managed)
- Storage: creation of Storages (Local, Remote, S3)
- View: creation of views (ES, Aggregate ES, Sparql, Aggregate Sparql, Composite)
- Resolver: creation of InProject and CrossProject resolvers

Each of these categories is using a specific Delta endpoint that is specific to the type it creates.
A problem could arise if you don't pay attention and use "Any Resource" but define the payload of an ElasticsearchView.
In this case the resource types are incorrectly set, instead of being `https://bluebrain.github.io/nexus/vocabulary/ElasticSearchView` you get the type prefix following the project configuration, like `https://dev.nise.bbp.epfl.ch/nexus/v1/resources/test/issue-4006/_/ElasticSearchView` for example. Resulting in the resource not being manages as a View by Delta.

![Screenshot 2023-06-28 at 16.41.52.png](https://images.zenhubusercontent.com/60ad1ee0d2c5ea18af754dc0/6995e982-3b10-4b78-b34c-6fb870e4638e)

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.