spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Clearing filters doesn't work as expected #322

Closed manuelma closed 7 months ago

manuelma commented 7 months ago

Basically we reset cache too soon. This is how it's done at the moment:

  1. Restore the previous subquery.
  2. Reset the cache.
  3. Refresh the subquery attribute.

But 3 needs to be done before 2, otherwise the cache is reset with the wrong subquery.

Affects 0.7 and maybe 0.8, will fix it in both.