-
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.
Introduce pit endpoint for Elasticsearch views (#5084)
Co-authored-by: Simon Dumas <simon.dumas@epfl.ch>
- Loading branch information
Showing
13 changed files
with
231 additions
and
30 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
12 changes: 12 additions & 0 deletions
12
...c/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/elasticsearch/client/PointInTime.scala
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,12 @@ | ||
package ch.epfl.bluebrain.nexus.delta.plugins.elasticsearch.client | ||
|
||
import io.circe.Codec | ||
import io.circe.generic.extras.Configuration | ||
import io.circe.generic.extras.semiauto.deriveConfiguredCodec | ||
|
||
final case class PointInTime(id: String) extends AnyVal with Serializable | ||
|
||
object PointInTime { | ||
implicit private val config: Configuration = Configuration.default | ||
implicit val pointInTimeDecoder: Codec[PointInTime] = deriveConfiguredCodec[PointInTime] | ||
} |
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
11 changes: 0 additions & 11 deletions
11
...rc/test/scala/ch/epfl/bluebrain/nexus/delta/plugins/elasticsearch/ElasticSearchSpec.scala
This file was deleted.
Oops, something went wrong.
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
6 changes: 6 additions & 0 deletions
6
docs/src/main/paradox/docs/delta/api/assets/views/elasticsearch/delete-pit.sh
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,6 @@ | ||
curl -XDELETE \ | ||
-H "Content-Type: application/json" \ | ||
"http://localhost:8080/v1/views/myorg/myproj/myview/_pit" -d \ | ||
'{ | ||
"id": "xxx" | ||
}' |
3 changes: 3 additions & 0 deletions
3
docs/src/main/paradox/docs/delta/api/assets/views/elasticsearch/pit-response.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,3 @@ | ||
{ | ||
"id": "xxx" | ||
} |
3 changes: 3 additions & 0 deletions
3
docs/src/main/paradox/docs/delta/api/assets/views/elasticsearch/pit.sh
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,3 @@ | ||
curl -XPOST \ | ||
-H "Content-Type: application/json" \ | ||
"http://localhost:8080/v1/views/myorg/myproj/myview/_pit?keep_alive=300" |
Oops, something went wrong.