Skip to content

Improves on export report, make async with celery#2213

Open
smihalache06 wants to merge 5 commits intodevelopfrom
285769_reports_export
Open

Improves on export report, make async with celery#2213
smihalache06 wants to merge 5 commits intodevelopfrom
285769_reports_export

Conversation

@smihalache06
Copy link
Contributor

This PR completes [ch#ISSUE_NUMBER]

@smihalache06 smihalache06 requested a review from fpbonet January 5, 2026 10:39
@smihalache06 smihalache06 removed the wip label Jan 5, 2026
@smihalache06 smihalache06 self-assigned this Jan 5, 2026
Comment on lines +422 to +427
return Response({
'message': f'PDF export started. You will receive an email at {request.user.email} when it\'s ready.',
'task_id': task.id,
'email': request.user.email,
'filters_applied': filter_params
}, status=statuses.HTTP_202_ACCEPTED)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This requires FE changes

exporter_class = self.get_exporter_class()
if exporter_class:
filter_qs = self.filter_queryset(self.get_queryset())
async_email = request.query_params.get('async', 'false').lower() == 'true'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Requires FE changes

Copy link
Collaborator

@fpbonet fpbonet left a comment

Choose a reason for hiding this comment

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

See comments

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants