Skip to content
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

Merged
merged 26 commits into from
Nov 28, 2022

Conversation

drmarjanovic
Copy link
Member

@drmarjanovic drmarjanovic commented Nov 27, 2022

Description:

  • Provided simple ElasticConfig that accepts only host: String and port: Int.
  • Provided helper method .execute in the ElasticRequest class.
  • Provided handler for GetById.
  • Provided basic example application to test out added functionalities.

.gitignore Outdated Show resolved Hide resolved
import zio.json.ast.Json
import zio.json.{DeriveJsonDecoder, JsonDecoder, jsonField}

final case class ElasticResponse(
Copy link
Member Author

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.

Copy link
Member Author

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.

Copy link
Contributor

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.

@dbulaja98 dbulaja98 force-pushed the dsl-put-request branch 2 times, most recently from 62d35c1 to 12911f5 Compare November 28, 2022 09:12
Base automatically changed from dsl-put-request to main November 28, 2022 09:22
@markaya markaya force-pushed the executor-simple-http-executor branch from ac81de6 to 6be7bef Compare November 28, 2022 09:55
import zio.json.ast.Json
import zio.json.{DeriveJsonDecoder, JsonDecoder, jsonField}

final case class ElasticResponse(
Copy link
Member Author

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.

@drmarjanovic drmarjanovic merged commit fd9887d into main Nov 28, 2022
@drmarjanovic drmarjanovic deleted the executor-simple-http-executor branch November 28, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants