-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow undeprecation of Elasticsearch views (#4573)
- Loading branch information
1 parent
83f748c
commit b4a0eb1
Showing
20 changed files
with
603 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
delta/plugins/elasticsearch/src/test/resources/elasticsearch/database/view-undeprecated.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"id" : "https://bluebrain.github.io/nexus/vocabulary/indexing-view", | ||
"project" : "myorg/myproj", | ||
"uuid" : "f8468909-a797-4b10-8b5f-000cba337bfa", | ||
"rev" : 5, | ||
"instant" : "1970-01-01T00:00:00Z", | ||
"subject" : { | ||
"subject" : "username", | ||
"realm" : "myrealm", | ||
"@type" : "User" | ||
}, | ||
"@type" : "ElasticSearchViewUndeprecated", | ||
"tpe": "ElasticSearchView" | ||
} |
19 changes: 19 additions & 0 deletions
19
delta/plugins/elasticsearch/src/test/resources/elasticsearch/sse/view-undeprecated.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"@context": [ | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
"https://bluebrain.github.io/nexus/contexts/elasticsearch.json" | ||
], | ||
"@type": "ElasticSearchViewUndeprecated", | ||
"_constrainedBy": "https://bluebrain.github.io/nexus/schemas/views.json", | ||
"_instant": "1970-01-01T00:00:00Z", | ||
"_project": "http://localhost/v1/projects/myorg/myproj", | ||
"_resourceId": "https://bluebrain.github.io/nexus/vocabulary/indexing-view", | ||
"_rev": 5, | ||
"_subject": "http://localhost/v1/realms/myrealm/users/username", | ||
"_types": [ | ||
"https://bluebrain.github.io/nexus/vocabulary/ElasticSearchView", | ||
"https://bluebrain.github.io/nexus/vocabulary/View" | ||
], | ||
"_uuid": "f8468909-a797-4b10-8b5f-000cba337bfa", | ||
"_viewId": "https://bluebrain.github.io/nexus/vocabulary/indexing-view" | ||
} |
5 changes: 5 additions & 0 deletions
5
delta/plugins/elasticsearch/src/test/resources/routes/errors/view-not-deprecated.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"@context": "https://bluebrain.github.io/nexus/contexts/error.json", | ||
"@type": "ViewIsNotDeprecated", | ||
"reason": "ElasticSearch view '{{id}}' is not deprecated." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.