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 authored and harshach committed Nov 3, 2024
1 parent ee1fd11 commit 7c668e2
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 @@ -125,9 +125,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 @@ -145,7 +146,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 7c668e2

Please sign in to comment.