Last modified: 2014-02-24 18:25:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56619, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54619 - Add a wgCurRevisionTimestamp to mw.config
Add a wgCurRevisionTimestamp to mw.config
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-26 02:50 UTC by Technical 13
Modified: 2014-02-24 18:25 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Technical 13 2013-09-26 02:50:04 UTC
Please add a wgCurRevisionTimestamp to the mw.config set of variables as it would be more efficient than an API call just for that information and is a fairly frequently used piece of information (when attempting to avoid edit conflict issues.
Comment 1 MZMcBride 2013-09-26 04:49:37 UTC
It would help if, rather than only presenting a potential solution, you also described your problem (i.e., your use-case). Feel free to paste example code or links to code here.
Comment 2 Technical 13 2013-09-26 05:05:34 UTC
https://github.com/azatoth/twinkle/issues/175

https://github.com/WPAFC/afch/issues/153

Are two issues I know of where such a variable would be more efficient, although not for the edit conflict reason.
Having this parameter would also give something to compare the current timestamp from the API with against to help resolve issues like:

https://github.com/WPAFC/afch/issues/30

https://github.com/WPAFC/afch/issues/156
Comment 3 Brion Vibber 2013-09-26 15:03:07 UTC
I might recommend building a cleaner JS interface for 'currently displayed revision information' rather than just adding more and more globals...
Comment 4 Umherirrender 2013-09-26 15:52:24 UTC
Another solution is bug 32037: detect edit conflicts with the revision id, not with a timestamp
Comment 5 Technical 13 2013-09-26 15:58:29 UTC
(In reply to comment #4)
> Another solution is bug 32037: detect edit conflicts with the revision id,
> not with a timestamp

Which still doesn't solve use cases like the first two I mentioned:
https://github.com/azatoth/twinkle/issues/175
https://github.com/WPAFC/afch/issues/153

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links