Commit 72c5505c authored by Lauri Himanen's avatar Lauri Himanen Committed by Markus Scheidgen
Browse files

Temporarily increased the statistics size for dft.searchable_quantities. This...

Temporarily increased the statistics size for dft.searchable_quantities. This can be reverted once the migration to new properties is finished.
parent 745901e6
Pipeline #81968 passed with stages
in 25 minutes and 1 second
......@@ -13,7 +13,6 @@ export default function QuantityHistogram({
}) {
title = title || quantity
values = values || (searchQuantities[quantity] && searchQuantities[quantity].statistic_values)
console.log(values)
numberOfValues = numberOfValues || (values && values.length) || (searchQuantities[quantity] && searchQuantities[quantity].statistic_size)
const {response: {statistics, metric}, query, setQuery} = useContext(searchContext)
const statisticsData = statistics[quantity]
......
......@@ -219,7 +219,7 @@ class DFTMetadata(MSection):
searchable_quantities = Quantity(
type=str, shape=['0..*'],
description='All quantities with existence filters in the search GUI.',
a_search=Search(many_and='append', statistic_size=len(_searchable_quantities)))
a_search=Search(many_and='append', statistic_size=len(_searchable_quantities) + 15)) # Temporarily increased the statistics size while migrating from old set to new one.
geometries = Quantity(
type=str, shape=['0..*'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment