[wp-meta] [Making WordPress.org] #262: Automate WordCamp Gravatar Badge Creation
Making WordPress.org
noreply at wordpress.org
Fri Feb 6 00:09:02 UTC 2015
#262: Automate WordCamp Gravatar Badge Creation
--------------------------+----------------------------------------
Reporter: iandunn | Owner: iandunn
Type: enhancement | Status: accepted
Priority: normal | Component: wordcamp.org
Resolution: | Keywords: needs-patch good-first-bug
--------------------------+----------------------------------------
Changes (by iandunn):
* keywords: needs-patch needs-testing dev-feedback => needs-patch good-
first-bug
* owner: => iandunn
* status: new => accepted
Comment:
That's awesome, you've made great progress on this :)
Here's what I think the next steps are:
1. PHP doesn't come with ZipArchive activated by default, so we should
display an error message on the page if it's not available.
1. A lot of the columns would never be used on a badge, so we should only
have options for the relevant ones:
* First and Last name
* E-mail Address
* Ticket Type
* WordPress.org Username
* Coupon
1. We don't need an option to 'Include Gravatars', since the whole goal of
this ticket is to get them.
1. If a camp has hundreds or thousands of attendees, the script will take
a very long time to run, so we shouldn't make the user wait that whole
time. [[br]][[br]]Instead, after they submit the form, we should display a
message saying that the script is running, and to check back in a few
minutes. Then, we can fire off an asynchronous process to generate the zip
file. [[br]][[br]]Once that's done, we'll show the user a link to download
the file through their browser, rather than the pending message. This is
also more user-friendly than asking them to download the zip file over
s/FTP.[[br]][[br]]We can't store the zip file in `wp-content`, though,
because that would expose any private information (like e-mail addresses).
So, instead the file should be stored in `get_temp_dir()`, and then the
download link will actually be a form submission, and the function that
handles the POST will just output the zip file contents as a download,
similar to how the regular Export tool works.
1. The plugin should `usleep( 100000 )` just like the CLI script did, so
that Gravatar.com isn't flooded with requests.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/262#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list