TVTropes Now available in the app store!
Open

Follow TV Tropes

Following

Spiffy new edit lock timer

Go To

FastEddie Since: Apr, 2004
#1: Jan 5th 2012 at 11:00:02 AM

Just making a thread on this topic, in case there are questions.

Goal: Clear, Concise and Witty
Ghilz Perpetually Confused from Yeeted at Relativistic Velocities Since: Jan, 2001 Relationship Status: Barbecuing
Perpetually Confused
#2: Jan 5th 2012 at 11:16:25 AM

I like it!

Willbyr Hi (Y2K) Relationship Status: With my statistically significant other
Jimmmyman10 cannot into space from polan Since: Mar, 2011 Relationship Status: Armed with the Power of Love
cannot into space
#4: Jan 5th 2012 at 2:54:43 PM

It's nice without being YOU HAVE 10 MINUTES FINISH YOUR EDIT YOU [censored].

I like it!

Go play Kentucky Route Zero. Now.
Bookyangel2438 from New York City Since: Jul, 2011
#5: Jan 5th 2012 at 2:56:22 PM

[up][lol]

I think it's pretty nifty too. smile

Alt account of Angeldog 2437.
shimaspawn from Here and Now Since: May, 2010 Relationship Status: In your bunk
#6: Jan 5th 2012 at 2:59:30 PM

I think it's a lovely bit of coding. Nice work, Eddie. Much better than the old one.

Reality is that, which when you stop believing in it, doesn't go away. -Philip K. Dick
Ghilz Perpetually Confused from Yeeted at Relativistic Velocities Since: Jan, 2001 Relationship Status: Barbecuing
Perpetually Confused
#7: Jan 5th 2012 at 4:58:45 PM

I have a question. I vaguely remembered hearing that if someone had a page locked and the edited another page, the first page was unlocked. Is this true? If so, could the time reflect that somehow? (Stopping when another page is edited?)

Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#8: Jan 5th 2012 at 5:02:46 PM

Not sure you can do cross-page scripting like that in a standard browser environment, as the pages aren't considered children of each other. The lock timer isn't some kind of backend database connection, I suspect, it's probably just a little self-contained javascript thingy.

And yes, editing a new page releases any other locks you had.

edited 5th Jan '12 5:03:08 PM by Fighteer

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#9: Jan 5th 2012 at 7:04:48 PM

The actual edit lock is stored on the server side because that's the only way to tell user A that user B is currently editing a page.

As for the timer itself, and the same user editing page A then B, Javascript cannot communicate between different pages/tabs.

edited 5th Jan '12 7:36:55 PM by Stratadrake

An Ear Worm is like a Rickroll: It is never going to give you up.
VmKid Since: Sep, 2009
#10: Jan 5th 2012 at 8:24:08 PM

A possible workaround could be to check in with the server every few seconds to make sure the user doesn't have any new edits on file. The downside there is that the timer would have to freeze every few seconds to check, then continue once it's done, probably throwing it off.

Plus it really isn't worth it.

Deboss I see the Awesomeness. from Awesomeville Texas Since: Aug, 2009
Serocco Serocco from Miami, Florida Since: Mar, 2010 Relationship Status: Faithful to 2D
Serocco
#12: Jan 5th 2012 at 10:39:17 PM

What does the edit lock timer do?

In RWBY, every girl is Best Girl.
Madrugada Since: Jan, 2001
#13: Jan 5th 2012 at 10:41:57 PM

gives you a running count-down of how much longer you'll have an edit lock on the page you're editing, before it opens back up for other editors.

Micah from traveling the post-doc circuit Since: Jan, 2001 Relationship Status: [TOP SECRET]
#14: Jan 6th 2012 at 8:57:02 PM

It looks to me like the counter starts at 19:00 for a second, and then goes to 19:59 and counts down as normal. (Safari 5.12 on Mac OS X 10.6.8, in case that matters). This doesn't matter a whole lot, but it bugs me a little...

132 is the rudest number.
Jimmmyman10 cannot into space from polan Since: Mar, 2011 Relationship Status: Armed with the Power of Love
cannot into space
#15: Jan 7th 2012 at 6:47:41 AM

He's right, it does count for 20 minutes, but starts at 19 and goes to 19:59.

Not a problem, but why does it do that?

Go play Kentucky Route Zero. Now.
SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#16: Jan 7th 2012 at 10:29:32 AM

^I guess because it takes one second to start running.

Along the way, it occurred to me that I opened two pages for editing and both clocks were running.

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman
FastEddie Since: Apr, 2004
#17: Jan 7th 2012 at 11:01:27 AM

When you opened the second article for editing, you lost the lock on the first article. The timer on that article is not correct. Cross-tab communications are kind of a no-no, so there isn't much we can do about that.

Well, you could do something, but it is very complicated and not worth the trip.

Goal: Clear, Concise and Witty
Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#18: Jan 7th 2012 at 2:58:58 PM

Well, you could do something, but it is very complicated and not worth the trip.
Like every 30 seconds it sends an AJAX query to the server asking (in layman's terms) if the user's edit lock on article A is still valid; if the server says no (because the user has opened an edit tab on article B) then it removes the timer from tab A.

Yeah, it's a bit complicated and doesn't serve much purpose in the end.

An Ear Worm is like a Rickroll: It is never going to give you up.
MCE Since: Jan, 2001
#19: Jan 10th 2012 at 9:49:57 AM

I know it gives you 20 minutes and it's a good idea to avoid pages being locked for hours on end but....I think some people will feel pressured by a ticking clock.

edited 10th Jan '12 9:51:31 AM by MCE

Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
UberShyGuy Der überscheue Kerl from The Internet Since: Dec, 2011
Der überscheue Kerl
#21: Jan 11th 2012 at 8:29:13 PM

While I'm pretty much fine with the idea of an explicit limit on the amount of time you can spend editing an article, I find the fact that you're timed even while editing your own Troper page to be a bit too much.

Wise men say there is no point... I guess none of them have ever finished a sentence before.
shimaspawn from Here and Now Since: May, 2010 Relationship Status: In your bunk
#22: Jan 11th 2012 at 8:34:01 PM

Your troper page has no coding on it that makes it different from any other post on the wiki.

Reality is that, which when you stop believing in it, doesn't go away. -Philip K. Dick
UberShyGuy Der überscheue Kerl from The Internet Since: Dec, 2011
Der überscheue Kerl
#23: Jan 11th 2012 at 8:37:06 PM

Okay, maybe that needs to be changed? That's what I'm here about.

Wise men say there is no point... I guess none of them have ever finished a sentence before.
shimaspawn from Here and Now Since: May, 2010 Relationship Status: In your bunk
#24: Jan 11th 2012 at 8:40:57 PM

Why? Changing it would let people lock their troper pages indefinitely and thus allow wiki vandals and spammers to make it impossible to undo their work.

Reality is that, which when you stop believing in it, doesn't go away. -Philip K. Dick
UberShyGuy Der überscheue Kerl from The Internet Since: Dec, 2011
Der überscheue Kerl
#25: Jan 11th 2012 at 8:44:25 PM

Just make the timer last a bit longer, then. Maybe 45 minutes at the most?

Wise men say there is no point... I guess none of them have ever finished a sentence before.

Total posts: 33
Top