[wp-trac] [WordPress Trac] #37799: Add progress indicator to "Upgrade Network" page

WordPress Trac noreply at wordpress.org
Mon Jul 10 20:23:03 UTC 2017


#37799: Add progress indicator to "Upgrade Network" page
-------------------------------------------------+-------------------------
 Reporter:  johnjamesjacoby                      |       Owner:  pcarvalho
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
Component:  Networks and Sites                   |  Release
 Severity:  normal                               |     Version:
 Keywords:  good-first-bug has-screenshots has-  |  Resolution:
  patch ui-feedback                              |     Focuses:  multisite
-------------------------------------------------+-------------------------

Comment (by earnjam):

 The main problem I see with using the value of `get_blog_count()` for this
 is it that returns the total count of all sites on the current network
 regardless of status, but the upgrade process skips any sites that are
 spammed, deactivated or archived. So it's not really accurate as to the
 total number of sites that will be upgraded. This is especially true on
 larger networks that have big numbers of those. For instance we have a
 network here with ~14,000 sites, of which several thousand are
 deactivated.

 I think the most logical end message would be something like:
 > All done!
 > 50 sites were upgraded.
 > 10 sites were skipped.

 This would keep the simple notice that the process is complete, while also
 adding some statistics about what just occurred. We know how many sites
 were actually upgraded because it's just the value of `$n +
 count($site_ids)` on the final screen. We'd only need to query for how
 many sites were skipped once on the completion screen.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37799#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list