Aggregations over numbers (potentially others too) don't respect filters

Describe the problem

When applying a filter to a table with a number field and an aggregation on that number field, the aggregation result does not change. sum-bug

Steps to reproduce

  1. Add a number field to a table
  2. Add some numbers
  3. Add an aggregation
  4. Add a filter that removes some of the numbers

Actual result

Aggregation stays the same

Expected result

Aggregation should update

Environment

  • Operating System: Mac
  • Web Browser: Chrome
  • Deployment Type: baserow.io
  • Baserow Version: 1.10