Skip to content

Conversation

cprussin
Copy link
Collaborator

@cprussin cprussin commented Jun 5, 2025

Summary

Add a total result count field to the fortuna logs response

Rationale

This is necessary so we can implement a paginator on the UI since we need to know how many pages there are (or at the very least, we need to know if there's a next page).

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Copy link

vercel bot commented Jun 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2025 9:19pm

query_builder.build_query_as().fetch_all(self.pool).await;

if let Err(e) = &result {
tracing::error!("Failed to fetch request by time: {}", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think by time here remained from the old functions. Let's remove it

This is necessary so we can implement a paginator on the UI since we need to
know how many pages there are (or at the very least, we need to know if there's
a next page).
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