Skip to content

Conversation

@nathanthorpe
Copy link
Contributor

@nathanthorpe nathanthorpe commented Jun 26, 2024

CI-114

Datasets can support more files now that the response is paginated. Update the SDK code to retrieve all files from a dataset, with an optional limit.

@nathanthorpe nathanthorpe changed the title Implement pagination on dataset files Support more than 20,000 files on file listing Jun 26, 2024
@nathanthorpe nathanthorpe requested a review from a team June 26, 2024 20:25
dataset_id: str,
download_location: str,
files: Union[List[File], List[str]] = None
self,
Copy link
Contributor

Choose a reason for hiding this comment

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

Over indented

Args:
project_id (str): ID of the Project
dataset_id (str): ID of the Dataset
file_limit (int): Maximum number of files to get (default 100,000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably add an informative error message if someone sets file_limit = 0

@nathanthorpe nathanthorpe merged commit 60f65c4 into main Jun 27, 2024
@nathanthorpe nathanthorpe deleted the dataset-files-pagination branch June 27, 2024 16:58
@sonarqubecloud
Copy link

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.

3 participants