Last modified: 2011-03-13 18:05:28 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 T22378, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20378 - Have a method in the api to modify categoryadd timestamps
Have a method in the api to modify categoryadd timestamps
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.13.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-24 20:11 UTC by Bawolff (Brian Wolff)
Modified: 2011-03-13 18:05 UTC (History)
5 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2009-08-24 20:11:30 UTC
The DPL (aka intersection) extension that wikinews uses, uses the categoryadd timestamp to order articles, which for the most part works great. However on rare occasions the categoryadd timestamp can get reset (See related bug 20243 and bug 16287). Most commonly this is as a result of page blanking vandalism, or changing the sortkey of a category. This causes problems for us (for example: article from 2 years ago being listed as most recent published = bad thing).

I'd like to make a feature request that the api have some method of changing the categoryadd timestamps. Something like:

api.php?action=resetcategoryadd&title=Article_Name&category=Category:Category_Name&setdate=new_date

Assuming that the person was an admin, and that the article in question had a pre-existing link to the category in question, that would set the categoryadd timestamp for the category in question to the date specified. Thus in the rare case when a categoryadd date gets reset, we would have some method of fixing it.

Thanks,
Bawolff
Comment 1 Bryan Tong Minh 2009-08-25 19:47:58 UTC
This would allow users to fiddle with MediaWiki's internals, which may not be desirable. On the other hand, I believe that cl_timestamp was specifically added for DPL?
Comment 2 Roan Kattouw 2009-08-28 14:23:45 UTC
The cl_timestamp field has a clear definition that the software lives up to. If you don't like that definition, you should ask for the field to be redefined or for a new field to be added, not for a way to allow everyone to put random crap into the field so it loses all meaning.
Comment 3 Bawolff (Brian Wolff) 2009-08-28 18:22:39 UTC
Since most of the problems being experienced are a result of a vandal blanking a page, and then getting subsequently reverted, would the following scheme work: If you have two revisions of the same page (one being the current revision, the other being some previous revision), which both have the exact same categories, make it possible for admins to set the cl_timestamp to the revision date of the earlier revision. That way there isn't just random garbage in the field, its value is a value that would have been valid at one point (In essence admins would be able to revert the field to a previous value if the categories are the same between the two revisions in question). Or is that still not in line with the definition of the field?

Thanks for your consideration.

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


Navigation
Links