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

stats: report waiting for indexing #1123

Open
bragov4ik opened this issue Nov 15, 2024 · 3 comments
Open

stats: report waiting for indexing #1123

bragov4ik opened this issue Nov 15, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bragov4ik
Copy link
Contributor

It would be a better UX to explicitly report that statistics is not available due to blockscout being indexed.
Maybe also report other statuses, like ongoing update 🤔

@bragov4ik
Copy link
Contributor Author

bragov4ik commented Dec 27, 2024

some related thoughts:

  • postpone start of cron update to be after initial update
  • have different statuses:
    • waiting for its turn (is even needed?)
    • initial update
    • in the process of scheduled update (same ? maybe just update/ready?)
    • up to date

these 2 points seem pretty interconnected as currently crons start immediately (and it's weird tbh)

@bragov4ik
Copy link
Contributor Author

this status can be used for better integration tests, as they now wait for fixed 5 seconds (which misbehaves sometimes, i.e. when logging is on).
so this will make the wait more efficient.

also maybe introduce some general status for all statistics, and separately from this idea - status for stats in other pages (hmm)

@bragov4ik
Copy link
Contributor Author

also it would be cool to have integration tests initialize only once, not again for each test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant