Skip to content

Commit

Permalink
normalized dotted fields queried to es
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo.andreussi authored and Coduz committed Jul 20, 2023
1 parent 57737d2 commit 44806ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private PagingLoadResult<GwtMessage> findMessages(PagingLoadConfig loadConfig, S
if (headers != null) {
OrPredicate metricsPredicate = DATASTORE_PREDICATE_FACTORY.newOrPredicate();
for (GwtHeader header : headers) {
metricsPredicate.getPredicates().add(DATASTORE_PREDICATE_FACTORY.newExistsPredicate(String.format(MessageSchema.MESSAGE_METRICS + ".%s", header.getName())));
metricsPredicate.getPredicates().add(DATASTORE_PREDICATE_FACTORY.newMetricExistsPredicate(header.getName(), null));
}
andPredicate.getPredicates().add(metricsPredicate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public ObjectNode toSerializedMap() throws MappingException {

fieldNameSb.append(MessageField.METRICS.field())
.append(".")
.append(getName());
.append(DatastoreUtils.normalizeMetricName(getName()));

if (getType() != null) {
fieldNameSb.append(".")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ObjectNode toSerializedMap() throws MappingException {
termNode.set(
getField().field()
.concat(".")
.concat(getName())
.concat(DatastoreUtils.normalizeMetricName(getName()))
.concat(".")
.concat(DatastoreUtils.getClientMetricFromAcronym(getType().getSimpleName().toLowerCase())),
valuesNode);
Expand Down

0 comments on commit 44806ac

Please sign in to comment.