Last modified: 2013-10-04 21:43:25 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 T26353, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24353 - New attribute for imports in revision and archive table
New attribute for imports in revision and archive table
Status: NEW
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: schema-change
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-12 21:28 UTC by Church of emacs
Modified: 2013-10-04 21:43 UTC (History)
2 users (show)

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


Attachments

Description Church of emacs 2010-07-12 21:28:57 UTC
Imports are quite confusing: they potentially link to wrong user pages (bug 7240), mess up the version history, and bugs can be exploited to forge fake edits (with the importupload right).

Consequentially, imported versions should be marked in the page history - and for that, an attribute needs to be added in the revision and archive table.

I suggest something with default value null, so that performing the schema upgrade doesn't affect existing revisions.
Being able to filter for imported revisions on a page would also be nice. Please give input on which data type would be good for this.

Beside for imports, this could also be used for duplicated revisions (in case we implement CopyRevisions or CopyPage at some point in the future).
Comment 1 Church of emacs 2010-07-13 05:19:53 UTC
One could also think of giving the new field a wider range than 0 and 1, for future purposes. For example, one user suggested flagging revisions that have been restored with the old deletion schema. One could also think of the state "belonging to a deleted page". When we switch entirely to RevisionDelete, we still want to show revisions in the history that have been RevDeleted, but we don't want to show revisions of a previous attempt at writing the article.
E.g.:
1. Vandal creates page A
2. Page A gets deleted with RevisionDelete, revision X is marked as deleted
3. GoodUser creates page A
4. Oversight action on one specific revision Y in A
5. How do we make Y show up in the history (because it belongs to the article), but not X (which has nothing to do with the current article)?
One simple way of doing this would be to only display RevDeleted revisions in the history, if there's an earlier revision that is *not* deleted. Another way would be to store this information directly in the database.

Perhaps use a bitfield (tinyint), just like in rev_deleted? One could name it rev_attrib.

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


Navigation
Links