https://bugzilla.wikimedia.org/show_bug.cgi?id=32037

--- Comment #3 from Krinkle <[email protected]> 2012-09-02 20:29:42 UTC ---
CC-ing Catrope and Reedy for their insight, I don't know the API well enough.
If revision IDs is technically superior / more logical (internally) then go for
it.

On the other hand, in defense of the current system:

page_touched/page_latest are both similarly easy to retrieve as is
rev_timestamp/rev_id.

In order to make an edit with the API, one should also retrieve the wikitext of
a page (through the api, prop=revisions) and in that api ids and timestamp are
both just as easy to retrieve.

What is inside mw.config should not be relevant because that is not part of the
API and not be relied on for API interaction (generally use API output for API
input). Moreover because wgCurRevisionId is hardcoded in the page which means
there is two unreliability factors:
* It may be cached by the browser
* The page can be edited since the page has been viewed (e.g. use viewing the
page, and performing all kinds of actions, then initiates your script and by
that time all kinds of edits could've been made, including but not limited to
ajax edits by the user himself, so always get the info from the API when you
need it)

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to