[wp-trac] [WordPress Trac] #18515: UX: better management of workflow in editor (joe is currently editing this post, etc.)

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 9 15:43:42 UTC 2011


#18515: UX: better management of workflow in editor (joe is currently editing this
post, etc.)
-------------------------------------+---------------------------
 Reporter:  azaozz                   |       Owner:  jayminkapish
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  3.3
Component:  General                  |     Version:  3.3
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------------
Changes (by jayminkapish):

 * status:  accepted => closed
 * version:  3.2.1 => 3.3
 * resolution:   => fixed


Comment:

 I am attaching locking plugin we are using here at The New York Times.

 Attachement has 1 PHP File, 1 JS File, 1 CSS File and 1 PNG File.

 How it works:
 javascript runs every 10 seconds and pings the server to keep the lock on
 the post and gives the current user lock on the post. There is a
 configuration setting in the plugin file which is right now set to 1
 minute warning if user sits idle without doing anything on the post and
 after 3 minutes it times out automatically and removes the lock
 immediately only if user sits idle. It is using jquery ui dialog to popup
 warnings. If user is continuously working on the post, js keeps extending
 timer every 10 seconds. Plugin has the cron built in that removes the lock
 on all posts older than threshold set in the configuration so in case
 someone closes the browser, cron will remove the lock on the post.

 For example, if User 1 is editing a post and User 2 opens the same post
 (though User 2 will see a small lock icon on list posts screen), User 2
 gets a warning in dialog box that User 1 is currently editing a post. If
 User 2 is an administrator, plugin adds an additional button on the dialog
 to Unlock the post forcefully this does not trigger autosave or anything
 on User 1 window but sets it to read only and gives warning that User 2
 has taken the lock. We need this was necessary in case someone is still
 waiting for the coffee at Starbucks and has the lock. User 2 still can
 open the post in Read Only mode and read. Plugin also adds Get Me Out
 button in the meta box which helps User 2 to walk out safely.

 This plugin is running globally on *.blogs.nytimes.com and we have not
 heard any problems. Bloggers love it!

 We've tested this on 3.2.1.

 Future enhancements:
 1. Configuration screen to set warning threshold and timeout minutes
 2. better way to handle revisions' restore feature. Currently it is kind
 of hack since we do not have hooks to control restore link on revisions
 screen. We do not want any other user to restore the post from revision
 when someone else has the lock on the post and editing it.
 3. UI changes so it matches wp-admin UI design
 4. add hooks and filters for warning messages etc.

 - Jaymin Patel, Blogs Developer @ The New York Times

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18515#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list