Automattic / Automattic/jetpack

Contact Form: “Export feedback as CSV” fails for large numbers of feedbacks

Open
#8,355 4 comments 0 reactions 0 assignees View on GitHub
[Feature] Forms [Pri] Low Enhancement Trial Project
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Steps to reproduce the issue
1. Start with around 20,000 items of feedback at wp-admin/edit.php?post_type=feedback
2. Scroll to the bottom
3. Click the Download button ([screenshot](https://user-images.githubusercontent.com/3505172/33950698-abe1bc22-dff2-11e7-934e-86214b471d1a.jpg))
5. Wait about 30 seconds
6. Site redirects to /wp-admin/admin-post.php with a white screen ([screenshot](https://user-images.githubusercontent.com/3505172/33950836-02ccb8f2-dff3-11e7-8115-ec5fb6497c29.jpg))

#### What I expected
A CSV file would be generated for download.

#### What happened instead
A white screen appeared and the URL changed to /wp-admin/admin-post.php
No CSV file was generated for download.

In talking with @designsimply and @georgestephanis, this feature should more gracefully handle edge cases where large volumes of data are being exported. A new WP-CLI export command for feedback could also get around the issue of timing out via the web interface.

Contributor guide

Open the contributing guide

Research direction

Reproduce the export from wp-admin/edit.php?post_type=feedback with around 20,000 feedback items, then trace the request that redirects to /wp-admin/admin-post.php. Check how the large export is handled and define done as a graceful response that produces the CSV or clearly handles the edge case; a WP-CLI export is also suggested as an alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.