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

Use limit selection for limitting exports #11729

Merged
merged 1 commit into from May 24, 2017
Merged

Use limit selection for limitting exports #11729

merged 1 commit into from May 24, 2017

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented May 23, 2017

Currently when clicking a download / export link for an report, the export_limit is used for limiting the records. As this value always defaults to [General] API_datatable_default_limit INI config option.
As that value isn't overwritten anywhere there was no possibility to change the limits for the export.

This change removes the export_limit option for data tables and uses the selected filter limit instead. That way the download will be limitted to the number selected for the datatable.

This is only kind of a quick fix. In the future we should maybe show a limit selection before starting the download instead of using the one for the datatable.

@sgiehl sgiehl added the Needs Review PRs that need a code review label May 23, 2017
@sgiehl sgiehl added this to the 3.0.5 milestone May 23, 2017
@tsteur
Copy link
Member

tsteur commented May 23, 2017

haven't tested but looks good to me 👍

@sgiehl sgiehl merged commit 668ff6f into 3.x-dev May 24, 2017
@sgiehl sgiehl deleted the exportlimit branch May 24, 2017 14:17
@mattab
Copy link
Member

mattab commented Jun 21, 2017

This is only kind of a quick fix. In the future we should maybe show a limit selection before starting the download instead of using the one for the datatable.

I was looking for this issue as I thought we had one, but couldn't find it. I'll create one later as it'd be very useful to have a panel to configure the downloads

@mattab mattab changed the title Use limit seletion for limitting exports Use limit selection for limitting exports Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants