Fix aggregation cache across different ui modes
Created by: vovakulikov
Background
Prior to this PR sidebar aggregation chart and the full UI mode had different value for Aggregation group limit, (sidebar 10, full mode 30). Because of this cache didn't work well because different view required different amount of data and we had to fetch it.
In this PR both view have the same limit (which is 30), based on @coury-clark feedback this doesn't do anything with resolver speed on the backed and it adds a proper cache on the frontend.
Test plan
- Run any query that can have more than 30 aggregation groups
- Check that the sidebar displays only 10 bars
- Open the full UI mode
- It should be opened immediately without additional fetch call
- Check that the addition group number was increased by 20
App preview:
Check out the client app preview documentation to learn more.