Skip to content
Snippets Groups Projects
Commit 09bb827e authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix pin map tile endpoint when a filter is applied. Resolves #9402

parent a7c44355
Branches
Tags
No related merge requests found
......@@ -6,7 +6,9 @@
[query-processor :as qp]
[util :as u]]
[metabase.api.common :as api]
[metabase.mbql.util :as mbql.u]
[metabase.mbql
[normalize :as normalize]
[util :as mbql.u]]
[metabase.util
[i18n :refer [tru]]
[schema :as su]])
......@@ -133,7 +135,7 @@
y (Integer/parseInt y)
lat-col-idx (Integer/parseInt lat-col-idx)
lon-col-idx (Integer/parseInt lon-col-idx)
query (json/parse-string query keyword)
query (normalize/normalize (json/parse-string query keyword))
updated-query (update query :query (u/rpartial query-with-inside-filter lat-field-id lon-field-id x y zoom))
result (qp/process-query-and-save-execution! updated-query {:executed-by api/*current-user-id*, :context :map-tiles})
points (for [row (-> result :data :rows)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment