Skip to content

add dataset to bulk downloads request and response models#67

Open
lykmapipo wants to merge 2 commits into
feature/regions-result-utilsfrom
feature/bulk-downloads-result-utils
Open

add dataset to bulk downloads request and response models#67
lykmapipo wants to merge 2 commits into
feature/regions-result-utilsfrom
feature/bulk-downloads-result-utils

Conversation

@lykmapipo

Copy link
Copy Markdown
Collaborator

This:

  • Add dataset field to BulkReportItem to track the dataset used to generate the bulk report
  • Add dataset field to BulkReportListParams to support filtering bulk reports by a specific dataset
  • Update BulkDownloadResource.get_all_bulk_reports() public method to accept the optional dataset filter parameter

…eports

This:
- Add `dataset` field to `BulkReportItem` to track the `dataset` used to generate the bulk report
- Add `dataset` field to `BulkReportListParams` to support filtering bulk reports by a specific `dataset`
- Update `BulkDownloadResource.get_all_bulk_reports()` public method to accept the optional `dataset` filter parameter
@lykmapipo lykmapipo self-assigned this Jun 23, 2026
@lykmapipo lykmapipo added the enhancement New feature or request label Jun 23, 2026

@yaaNuamahGFW yaaNuamahGFW left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

One wiring issue with the new dataset filter.

offset: Optional[int] = None,
sort: Optional[str] = None,
status: Optional[Union[BulkReportStatus, str]] = None,
dataset: Optional[str] = None,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

dataset is added to the public method and request params model, but it is not passed into _prepare_get_all_bulk_report_params(), so the filter is ignored. Can we pass dataset=dataset into the helper and include it in the helper’s _request_params dict?

@aperdizs aperdizs 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.

Besides the Yaa comments, LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants