Skip to content

Commit

Permalink
MINOR: Fix web analytic activity being reset (#18344)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulixius9 committed Oct 24, 2024
1 parent edc7de7 commit d5028e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ public String getApiCollectionCondition(String apiEndpoint) {

private String getEntityFQNHashCondition() {
String entityFQN = getQueryParam("entityFQNHash");
return entityFQN == null
? ""
: String.format("entityFQNHash = :entityFQNHash", FullyQualifiedName.buildHash(entityFQN));
return entityFQN == null ? "" : "entityFQNHash = :entityFQNHash";
}

public String getParentCondition(String tableName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.openmetadata.service.exception.SearchIndexException;
import org.openmetadata.service.jdbi3.EntityTimeSeriesRepository;
import org.openmetadata.service.jdbi3.ListFilter;
import org.openmetadata.service.util.FullyQualifiedName;
import org.openmetadata.service.util.RestUtil;
import org.openmetadata.service.util.ResultList;
import org.openmetadata.service.workflows.interfaces.Source;
Expand Down Expand Up @@ -125,7 +126,7 @@ public void updateStats(int currentSuccess, int currentFailed) {
private ListFilter getFilter() {
ListFilter filter = new ListFilter(null);
if (ReindexingUtil.isDataInsightIndex(entityType)) {
filter.addQueryParam("entityFQNHash", entityType);
filter.addQueryParam("entityFQNHash", FullyQualifiedName.buildHash(entityType));
}
return filter;
}
Expand Down

0 comments on commit d5028e9

Please sign in to comment.