twilio / twilio/twilio-python

BulkExport Days not returning all records

Open
#650 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

priority: medium status: help wanted type: bug
Dominant language
Python
Stars
2.1k
Forks
815
Avg merge
2d 13h
Merged PRs (30d)
2

Description

Issue Summary

When attempting to list the available BulkExport days, the library does not return all records. According to the documentation, if no limit is specified, all records should be returned. It only returns the first 10 records. If you manually specify a page size of 10, the library will return all records.

Code Snippet

This will NOT return all records

client.bulkexports.v1.exports("Messages").days.list()

This will return all records

client.bulkexports.v1.exports("Messages").days.list(page_size=10)
Exception/Log
No exception occurs.
Technical details:
  • twilio-python version: 7.12.0
  • python version: 3.8.14

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with client.bulkexports.v1.exports("Messages").days.list() and compare it with the page_size=10 call shown in the report. Trace the BulkExport days list pagination behavior; done means the default call returns all available records as documented, with coverage for the two usage patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.