https://bugzilla.wikimedia.org/show_bug.cgi?id=21860
Summary: Add checksum field to text table; expose it in API
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: bot-interface
Severity: enhancement
Priority: Normal
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
I propose that a checksum field be added to the text table that reflects the
contents of the "old_text" column.
Reasoning:
- This column could then be checked against at each insertion into the text
table in order to avoid saving the same text multiple times. This could reduce
the necessary disc footprint required to store an amount of revisions.
- Exposing this checksum field via the API would allow developers to know when
it is necessary to request the text of a revision. They may already have it a
copy of it that was previously requested and can simply use that.
- The checksum field would provide a quick mechanism for detecting identity
reverts. By identity revert, I mean a reversion of a page to an *exact*
previous state such that both revisions would contain text of the same
checksum.
Disclaimer:
I develop user scripts for the English Wikipedia and would find a wide range of
uses for this feature. In Wikipedia, identity reverts are very common. They
are one of the basic operations that Wikipedians become familiar with. I am
not sure if this applies to MediaWiki installations in general, but my
intuition says that it its likely.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l