[wp-trac] [WordPress Trac] #31978: Shiny updates: trigger "update success" message after unlocking, not before

WordPress Trac noreply at wordpress.org
Wed Apr 15 13:16:47 UTC 2015


#31978: Shiny updates: trigger "update success" message after unlocking, not before
--------------------------------------------+-----------------------------
 Reporter:  DavidAnderson                   |      Owner:
     Type:  enhancement                     |     Status:  new
 Priority:  normal                          |  Milestone:  Awaiting Review
Component:  Upgrade/Install                 |    Version:  4.1.1
 Severity:  normal                          |   Keywords:
  Focuses:  ui, javascript, administration  |
--------------------------------------------+-----------------------------
 In change-set https://core.trac.wordpress.org/changeset/32061 , an event
 was triggered upon completion of shiny updates.

 This, I thought, solved the previous need for polling I had, in #31819.
 Further testing has revealed this to not be the case.

 In fact, the real event I was trying to detect was not so much "update
 completed", as "lock released because updated completed".

 Changeset 32061 added the trigger *before* releasing the lock (the lock
 release was immediately after). The attached patch moves the trigger to
 immediately *after* the lock release. So now, users of the trigger can
 know that the queue is unlocked, and respond accordingly.

 (Alternatively, I suppose a second trigger could be added, so that both
 are covered. I'm not sure there's a use-case for this, though - I know
 there is for what I am trying to do, as it's for a live/popular plugin).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31978>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list