Skip to content

feat(api): rename response total to total_records - #31

Merged
luccasmmg merged 1 commit into
mainfrom
feat/total-records
Oct 26, 2026
Merged

luccasmmg merged 1 commit into
mainfrom
feat/total-records

Conversation

@luccasmmg

Copy link
Copy Markdown
Member

Renames the row-count key in datastore responses, per datopian/neso-nextgen-shared#205.

  • datastore_search / datastore_search_sql: result.total → result.total_records
  • datastore_create / datastore_upsert: result.total → result.total_records (still only with include_total=true)
  • datastore_info: result.meta.total → result.meta.total_records

The include_total request flag is unchanged. Internal engine/service names stay total; only the wire key changes. This is a breaking change for clients reading total.

Docs (API.md, CLAUDE.md) and tests updated; pytest passes (538).

The row count returned by datastore_search, datastore_search_sql,
datastore_create and datastore_upsert is now `result.total_records`,
and datastore_info reports it as `meta.total_records`. The
`include_total` request flag is unchanged.

Refs datopian/neso-nextgen-shared#205
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 56613d2c-12bd-40bb-938c-6d68c6865284
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@luccasmmg
luccasmmg merged commit 347d87b into main Oct 26, 2026
2 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.

1 participant