Skip to content

perf: fetch total count in the background, not foreground#189

Merged
jason-rl merged 2 commits intomainfrom
jason/total_count_background
Apr 2, 2026
Merged

perf: fetch total count in the background, not foreground#189
jason-rl merged 2 commits intomainfrom
jason/total_count_background

Conversation

@jason-rl
Copy link
Copy Markdown
Contributor

@jason-rl jason-rl commented Mar 31, 2026

Description

if total_count isn't known yet

The of {total_count} is omitted.

When fetching current page, if it's still pending, it will show {beginning number}+ since it technically doesn't know the actual ending number since it could be the last page and have less then max #. Once current page is done fetching, it will then show the accurate ending #.

if total_count becomes known

We can finally append of {total_count}

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test updates

Related Issues

Closes #

Changes Made

Testing

  • I have tested locally
  • I have added/updated tests
  • All existing tests pass

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

@jason-rl jason-rl changed the title fetch total count in the background, not foreground perf: fetch total count in the background, not foreground Mar 31, 2026
@jason-rl jason-rl force-pushed the jason/total_count_background branch 3 times, most recently from 9a740ae to 8569309 Compare March 31, 2026 19:25
@jason-rl jason-rl requested review from alb-rl, dines-rl and tode-rl March 31, 2026 19:26
Copy link
Copy Markdown
Contributor

@dines-rl dines-rl left a comment

Choose a reason for hiding this comment

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

see comments if I'm wrong you can merge

jason-rl and others added 2 commits April 2, 2026 15:13
When there are 0 items (e.g. empty search results or no resources),
the stats bar incorrectly showed "Showing 1-0". Now the "Showing"
text is hidden entirely when there are no items to display.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jason-rl jason-rl force-pushed the jason/total_count_background branch from 8569309 to d361751 Compare April 2, 2026 22:21
@jason-rl jason-rl merged commit 0903d89 into main Apr 2, 2026
14 checks passed
@jason-rl jason-rl deleted the jason/total_count_background branch April 2, 2026 22:24
tode-rl pushed a commit that referenced this pull request Apr 3, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.15.0](v1.14.0...v1.15.0)
(2026-04-03)


### Features

* axon list with pagination and api-client upgrade
([#184](#184))
([dc9743e](dc9743e))
* **cli:** add some (hidden) agent handling commands
([#187](#187))
([1a92f5f](1a92f5f))


### Bug Fixes

* clean stdout for --config-only when appending SSH config
([#192](#192))
([4428295](4428295))
* **cli:** account for pending scenarios in rli display
([#185](#185))
([c82d528](c82d528))
* widen VERSION column in agent list to prevent truncation
([#190](#190))
([c7eba09](c7eba09))


### Performance Improvements

* fetch total count in the background, not foreground
([#189](#189))
([0903d89](0903d89))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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