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): Back3nd chart5 Migration (Part 2: yesterday's transactions) #1120

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

bragov4ik
Copy link
Contributor

@bragov4ik bragov4ik commented Nov 13, 2024

#1080

It is the sequel to The Migration of The Backend charts and the second installment in the Migrate Backend Charts franchise. In the PR counter for yesterday transactions is added.

@bragov4ik bragov4ik requested a review from sevenzing November 15, 2024 02:30
@bragov4ik
Copy link
Contributor Author

btw I intentionally do not add it to the /counters endpoint because we're yet to decide if we need the transferred counters on the /stats page

@bragov4ik bragov4ik merged commit 8e312db into main Dec 6, 2024
5 checks passed
@bragov4ik bragov4ik deleted the bragov4ik/stats-migrate-backend-charts-2 branch December 6, 2024 06:16
bragov4ik added a commit that referenced this pull request Dec 11, 2024
…namic query dispatch (#1137)

#1080

It is a sequel to #1120 and the third installment in the Migrate Backend Charts franchise.

In this standalone sequel, we introduce reimagination of TotalBlocks counter and dynamic dispatch for chart query behaviour. TotalBlocks counter uses a custom logic with fallback to postgres catalog for preliminary block number estimation (to display when SQL query is not yet calculated), so we can't keep retrieving the data directly from DB. We need to allow dynamic query logic that is configurable for each chart.

While adding usage of dynamic logic for chart query, regular date range was replaced by universal range, because chart requests can include or omit any of the bounds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants