Skip to content

SDK v0.2.2 with capture pagination - #336

Merged
lucaspar merged 7 commits into
masterfrom
lp/capture-pagination
Aug 24, 2026
Merged

SDK v0.2.2 with capture pagination#336
lucaspar merged 7 commits into
masterfrom
lp/capture-pagination

Conversation

@lucaspar

@lucaspar lucaspar commented Aug 24, 2026

Copy link
Copy Markdown
Member

Patch release v0.2.2 to fix lack of pagination for capture listing, currently capped at 30 results (default page size).

  • Regression tests
  • Paginated capture listing with page size argument

Note

Medium Risk
Changes SDK capture listing to unbounded multi-page API fetches, which can increase load and fail on malformed pagination. Template/lint churn is low risk.

Overview
Releases SDK 0.2.2 so captures.listing() walks all API pages instead of returning only the first page (default 30 results) and logging a truncation warning.

listing() now takes page_size (default 30), follows next until exhausted, and raises CaptureError after 1,000 pages. _extract_page_from_payload returns total count and fails on non-object JSON. gateway.list_captures() forwards page and page_size. Tests cover multi-page fetch, type forwarding, and query params.

Also bumps pre-commit hooks (biome, ruff, djLint, rumdl, pyrefly), ignores djLint T038, and reformats Django templates. Minor extras: spectrogram save button duplicate class fix, file-search label for alignment, and min() instead of sorted(...)[0] when picking a composite capture.

Reviewed by Cursor Bugbot for commit f386bbf. Configure here.

@lucaspar
lucaspar requested a review from mjcurran August 24, 2026 15:00
@lucaspar lucaspar self-assigned this Aug 24, 2026
@lucaspar lucaspar added bug Something isn't working sdk SDK component labels Aug 24, 2026
@semanticdiff-com

semanticdiff-com Bot commented Aug 24, 2026

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  gateway/sds_gateway/templates/account/login.html  100% smaller
  gateway/sds_gateway/templates/admin/base_site.html  100% smaller
  gateway/sds_gateway/templates/users/components/capture_list_table_row.html  100% smaller
  gateway/sds_gateway/templates/users/components/dataset_details_modal_body.html  100% smaller
  gateway/sds_gateway/templates/users/partials/share_modal.html  100% smaller
  gateway/sds_gateway/templates/visualizations/partials/visualization_modal.html  100% smaller
  gateway/sds_gateway/users/views/datasets.py  100% smaller
  sdk/src/spectrumx/config.py  45% smaller
  sdk/src/spectrumx/api/captures.py  42% smaller
  sdk/src/spectrumx/client.py  30% smaller
  sdk/src/spectrumx/gateway.py  29% smaller
  sdk/src/spectrumx/errors.py  28% smaller
  sdk/tests/ops/test_captures.py  10% smaller
  .pre-commit-config.yaml  0% smaller
  gateway/pyproject.toml Unsupported file format
  gateway/sds_gateway/templates/allauth/elements/field.html Unsupported file format
  gateway/sds_gateway/templates/users/components/asset_list_table.html Unsupported file format
  gateway/sds_gateway/templates/users/components/dataset_list_table_row.html Unsupported file format
  gateway/sds_gateway/templates/users/partials/file_browser.html  0% smaller
  gateway/sds_gateway/templates/users/partials/search_published_datasets_tab.html Unsupported file format
  gateway/sds_gateway/templates/users/user_api_key.html Unsupported file format
  gateway/sds_gateway/templates/visualizations/spectrogram.html Unsupported file format
  gateway/sds_gateway/users/utils.py  0% smaller
  sdk/docs/mkdocs/changelog.md Unsupported file format
  sdk/pyproject.toml Unsupported file format
  sdk/tests/test_gateway.py  0% smaller
  sdk/uv.lock Unsupported file format

@lucaspar lucaspar added the dependencies PRs that update dependencies: versioning, security patches, upstream fixes label Aug 24, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f386bbf. Configure here.

Comment thread gateway/sds_gateway/templates/users/components/asset_list_table.html Outdated
@lucaspar
lucaspar merged commit bc094d0 into master Aug 24, 2026
@lucaspar
lucaspar deleted the lp/capture-pagination branch August 24, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies PRs that update dependencies: versioning, security patches, upstream fixes sdk SDK component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant