Skip to content

Commit

Permalink
Fix tractability filtering.
Browse files Browse the repository at this point in the history
David O observed that in the web UI filtering by tractability facets
does not actually cause the counts or heatmaps to update. This was
caused by not adding the tractability facet filter to the list of other
filters.
  • Loading branch information
JarrodBaker committed Mar 18, 2022
1 parent 0e02a80 commit f4b85f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/Backend.scala
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class Backend @Inject() (implicit
IndexedSeq.empty,
nested = false
)
}
}.toMap
val mappings = Map(
"dataTypes" -> AggregationMapping(
"datatype_id",
Expand All @@ -394,7 +394,7 @@ class Backend @Inject() (implicit
),
"pathwayTypes" -> AggregationMapping("facet_reactome", IndexedSeq("l1", "l2"), true),
"targetClasses" -> AggregationMapping("facet_classes", IndexedSeq("l1", "l2"), true)
)
) ++ tractabilityMappings

val queries = ElasticRetriever.aggregationFilterProducer(aggregationFilters, mappings)
val filtersMap = queries._2
Expand Down

0 comments on commit f4b85f7

Please sign in to comment.