Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(exports): breakdown limit #18597

Merged
merged 1 commit into from
Nov 14, 2023
Merged

fix(exports): breakdown limit #18597

merged 1 commit into from
Nov 14, 2023

Conversation

Gilbert09
Copy link
Member

Problem

  • When doing a CSV export with breakdown values, we send a breakdown_limit as the result limit from the insights api response. But this is then ignored when building the pagination url, and instead, the default limit of 25 is used. This means we duplicated results in the CSV files when there were more than 25 breakdown values
  • support ticket

Changes

  • Uses the breakdown_limit param from the query string when it exists instead of the default limit for the pagination url of insights

How did you test this code?

Recreating the issue and exporting locally with the correct results

@Gilbert09 Gilbert09 requested a review from a team November 14, 2023 12:08
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

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

Nice!

@mariusandra mariusandra merged commit 2bb378b into master Nov 14, 2023
68 checks passed
@mariusandra mariusandra deleted the tom/support-7251 branch November 14, 2023 14:06
pauldambra pushed a commit that referenced this pull request Nov 15, 2023
Use the breakdown limit in the query params for the next page if it exists
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.

2 participants