Kirill Ivanov

Results 19 comments of Kirill Ivanov

yep ![Image](https://github.com/user-attachments/assets/3270d2d0-4c57-4cf9-81b6-f3a2c035245f) ![Image](https://github.com/user-attachments/assets/8a56a017-f2ae-499c-a4be-04909ab5b333)

related, but seems more general: https://github.com/blockscout/blockscout-rs/issues/514

Caveat: chart "ActiveAccounts". Adding intervals requires us to calculate/store unique users for each interval. It's quite non-trivial. Also not really clear what to do with cumulative/increasing graphs. Show result at...

Almost forgot: graphs with averages are non-trivial as well. To properly compute an average of some interval from averages of subintervals we need to retrieve # of entries for each...

for now will implement it for easier cases, let's decide on "ActiveAccounts" later..

> Also not really clear what to do with cumulative/increasing graphs. Show result at the start/middle/end of the interval, or even an average value. and for this it makes sense...

## API design (report-ish) ### Request Add a parameter to query string (enum => string with some set of available values). Variants: - day - week - month - year...

some other rejected variants: - separate types for each resolutions in response => sounds hard to abstract on frontend side (need to support each type separately) + weeks are non-trivial...

@ganzr as the message says, you also need `protoc-gen-openapiv2` (probably version `v2.19.0` at the time of writing this response) to build the crate