Skip to content

fix(api): populate items_count in list_operations#1164

Merged
nicoloboschi merged 1 commit intomainfrom
fix/list-operations-items-count
Apr 20, 2026
Merged

fix(api): populate items_count in list_operations#1164
nicoloboschi merged 1 commit intomainfrom
fix/list-operations-items-count

Conversation

@nicoloboschi
Copy link
Copy Markdown
Collaborator

Summary

  • list_operations was hardcoding items_count: 0 for every operation instead of reading it from result_metadata, which is already fetched by the query and correctly populated during retain/batch_retain submission
  • Now parses result_metadata and extracts items_count, falling back to 0 for operation types that don't store it (e.g. consolidation)

Fixes #1146

Test plan

  • Existing test_async_batch_retain.py tests pass (13/13)
  • Pre-commit lint passes

list_operations was hardcoding items_count to 0 instead of reading it
from result_metadata, which is already fetched by the query and correctly
populated during retain/batch_retain submission.

Fixes #1146
@nicoloboschi nicoloboschi merged commit 41710ba into main Apr 20, 2026
50 of 54 checks passed
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.

list_operations: items_count is always 0 for retain/batch_retain operations (display glitch)

1 participant