Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stats): The Migration of The Backend charts: Total Blocks and Dynamic query dispatch #1137

Merged
merged 41 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ee42efc
query table rows estimate
bragov4ik Nov 20, 2024
75d883e
estimation fallback
bragov4ik Nov 21, 2024
f0ec028
total blocks with fallback
bragov4ik Nov 21, 2024
34bac89
add fill_missing_dates option to QueryBehaviour
bragov4ik Nov 22, 2024
10c42c7
chart objects that allow specifying query behaviour for read service
bragov4ik Nov 22, 2024
e0b4ee2
construct chart objects in update groups
bragov4ik Nov 25, 2024
a891a32
drop-in place chart objects in stats-server + make it compileable
bragov4ik Nov 25, 2024
62f1dbf
deduplicate chart type data
bragov4ik Nov 25, 2024
b4c0ab8
use chart objects to read counters in read service
bragov4ik Nov 28, 2024
7ef2ad2
dynamic query dispatch for line charts WIP
bragov4ik Nov 28, 2024
68aad38
timespan checked operations + max/min
bragov4ik Dec 2, 2024
59a9d08
new universal range type
bragov4ik Dec 2, 2024
f96158a
dynamic query dispatch for line charts
bragov4ik Dec 2, 2024
7e7df45
war on DateTimeUtc
bragov4ik Dec 2, 2024
cdb8af2
fix build lol
bragov4ik Dec 2, 2024
68abc79
clippy
bragov4ik Dec 2, 2024
b655bc4
remove raw counters fetch
bragov4ik Dec 3, 2024
4a4a959
mark db connections to avoid cache clashing
bragov4ik Dec 4, 2024
0ca5c7b
fix tests
bragov4ik Dec 4, 2024
8e88661
clippy
bragov4ik Dec 4, 2024
77344a2
manual usage of cache instead of proc macro to support configurable t…
bragov4ik Dec 4, 2024
b3b7e15
fix non-test build
bragov4ik Dec 4, 2024
715d0ee
explain once lock
bragov4ik Dec 4, 2024
e5bd7dc
fmt
bragov4ik Dec 4, 2024
27a1f68
fix test-utils build
bragov4ik Dec 4, 2024
77586c3
rename update error to chart error for more accurate meaning
bragov4ik Dec 4, 2024
14ab9b4
fix incorrect directive used
bragov4ik Dec 4, 2024
791c382
fmt
bragov4ik Dec 4, 2024
fae1d75
don't use raw db read for chart tests
bragov4ik Dec 4, 2024
481a94c
add static version of query for convenience
bragov4ik Dec 4, 2024
7008320
eradicate direct DB access where shouldn't
bragov4ik Dec 4, 2024
add91ce
resolve todo 1
bragov4ik Dec 4, 2024
5f88ce5
comments to cached impl
bragov4ik Dec 4, 2024
cf3af02
fix test name
bragov4ik Dec 4, 2024
e4a5826
add year ops test
bragov4ik Dec 4, 2024
d954d8e
remove unnecessary fn
bragov4ik Dec 4, 2024
76cee07
update total blocks schedule to match blockscout's
bragov4ik Dec 4, 2024
b3595ac
remove caching
bragov4ik Dec 9, 2024
bdd688c
set deadline for cleaning up the unused but useful part
bragov4ik Dec 9, 2024
ea2aab0
fix saturation in checked methods
bragov4ik Dec 11, 2024
1ee211c
tests
bragov4ik Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion stats/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions stats/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
blockscout-client = { git = "https://github.com/blockscout/blockscout-rs/", rev = "506b821" }
blockscout-service-launcher = { version = "0.13.1" }
rstest = "0.23.0"
trait-variant = "0.1.2"
wiremock = "0.6.2"

# todo: update version after https://github.com/chronotope/chrono/pull/1600
Expand Down
2 changes: 1 addition & 1 deletion stats/config/update_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"average_block_time_group": "0 */10 * * * * *",
"completed_txns_group": "0 5 */3 * * * *",
"total_addresses_group": "0 0 */3 * * * *",
"total_blocks_group": "0 0 */3 * * * *",
"total_blocks_group": "0 0 */2 * * * *",
"total_tokens_group": "0 0 18 * * * *",
"yesterday_txns_group": "0 8 0 * * * *",
"active_recurring_accounts_daily_recurrence_60_days_group": "0 0 2 * * * *",
Expand Down
Loading
Loading