-
Notifications
You must be signed in to change notification settings - Fork 20
(dsl): Support IP range aggregation #650
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
base: main
Are you sure you want to change the base?
Conversation
…on, type-safe and regular def in ElastocAggregation without description
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.
This file still have issues with format, and also it has special ^M characters
modules/integration/src/test/scala/zio/elasticsearch/IntegrationSpec.scala
Outdated
Show resolved
Hide resolved
@@ -4,9 +4,9 @@ | |||
* Licensed under the Apache License, Version 2.0 (the "License"); | |||
* you may not use this file except in compliance with the License. | |||
* You may obtain a copy of the License at | |||
* | |||
* |
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.
?
modules/integration/src/test/scala/zio/elasticsearch/HttpExecutorSpec.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/zio/elasticsearch/HttpExecutorSpec.scala
Outdated
Show resolved
Hide resolved
modules/integration/src/test/scala/zio/elasticsearch/HttpExecutorSpec.scala
Outdated
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/ElasticAggregation.scala
Outdated
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/aggregation/Aggregations.scala
Outdated
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/aggregation/Aggregations.scala
Show resolved
Hide resolved
from = b.from, | ||
to = b.to, | ||
docCount = b.docCount, | ||
subAggregations = Map.empty |
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.
@dbulaja98, up there, we have withSubAggregations
. Is this correct implementation then?
modules/library/src/test/scala/zio/elasticsearch/ElasticAggregationSpec.scala
Outdated
Show resolved
Hide resolved
An additional note:
|
modules/library/src/main/scala/zio/elasticsearch/ElasticAggregation.scala
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/ElasticAggregation.scala
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/aggregation/Aggregations.scala
Show resolved
Hide resolved
modules/library/src/main/scala/zio/elasticsearch/aggregation/Aggregations.scala
Show resolved
Hide resolved
subAggregations: Option[Chunk[SingleElasticAggregation]] | ||
) extends IpRangeAggregation { self => | ||
|
||
def keyedOn: IpRangeAggregation = self.copy(keyed = Some(true)) |
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.
I guess we can use only keyed
.
|
||
def key(value: String): IpRangeBound = self.copy(key = Some(value)) | ||
|
||
def toJson: Json = { |
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.
Can we put private[elasticsearch]
here?
Part of #118