Project > Create and Upload - creating an ElasticsearchView when the dropdown is on 'Any Resource' yield unwanted results
- Dominant language
- Scala
- Stars
- 301
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
## Description

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.

Contributor guide
Assessment
This issue has not been assessed yet.