-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(executor): Provide simple HTTP executor #7
Conversation
modules/library/src/main/scala/zio/elasticsearch/ElasticRequest.scala
Outdated
Show resolved
Hide resolved
import zio.json.ast.Json | ||
import zio.json.{DeriveJsonDecoder, JsonDecoder, jsonField} | ||
|
||
final case class ElasticResponse( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to use ElasticDocumentResponse
? Not sure if this response is the same for every ElasticRequest
.
Also, we need to consider which meta fields we require.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, it makes sense to remove all unused fields. We need only found
and source
at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will probably need id
as well but i can remove it for now.
modules/library/src/main/scala/zio/elasticsearch/HttpElasticExecutor.scala
Outdated
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/HttpElasticExecutor.scala
Outdated
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/HttpElasticExecutor.scala
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/HttpElasticExecutor.scala
Outdated
Show resolved
Hide resolved
62d35c1
to
12911f5
Compare
ac81de6
to
6be7bef
Compare
modules/library/src/main/scala/zio/elasticsearch/ElasticExecutor.scala
Outdated
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/HttpElasticExecutor.scala
Outdated
Show resolved
Hide resolved
import zio.json.ast.Json | ||
import zio.json.{DeriveJsonDecoder, JsonDecoder, jsonField} | ||
|
||
final case class ElasticResponse( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, it makes sense to remove all unused fields. We need only found
and source
at the moment.
Description:
ElasticConfig
that accepts onlyhost: String
andport: Int
..execute
in theElasticRequest
class.GetById
.