Last modified: 2012-08-30 20:50:26 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 T40606, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38606 - Set log_page to the page_id of its description page for upload actions
Set log_page to the page_id of its description page for upload actions
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Logging (Other open bugs)
unspecified
All All
: High enhancement (vote)
: 1.20.0 release
Assigned To: Ryan Kaldari
:
Depends on:
Blocks: 37144
  Show dependency treegraph
 
Reported: 2012-07-23 18:36 UTC by Platonides
Modified: 2012-08-30 20:50 UTC (History)
8 users (show)

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


Attachments

Description Platonides 2012-07-23 18:36:52 UTC
The logging table stores the log_namespace, log_entry of the affected pages
it also stores at log_page the page_id

Behavior: for an upload action, log_page gets a 0

Expected: to store there the page_id of the description page
Comment 1 Rob Lanphier 2012-08-17 22:32:27 UTC
I'm not doubting this is a problem, but how does it manifest itself?
Comment 2 Sumana Harihareswara 2012-08-17 22:56:32 UTC
CC'ing Dan & Brad. Would either of you like to take this on?
Comment 3 Platonides 2012-08-17 23:34:51 UTC
RobLa not having the page_id there makes some queries that should be simple, quite convoluted.

For instance, here's what I ended up coding for determining the (original) uploader and date of an image:

1. Query recent changes for that title and action=upload
2. Else query upload log for that title
3. Else look check the page history for a rename entry, verify it against log table and go to 1.

Still, I remember it being fooled by files uploaded with a filename equal to others deleted.

You cannot just rely on the upload filename given in the Log table, since the file may have been renamed. The last upload may not be what you want (eg. FlickrReviewer uploading a bigger size). I don't remember right now the reason for not diving into oldimage table.

Having the log_page would allow a simple JOIN from the upload log entry to get the associated page (if not deleted). And in Wiki Loves Monuments there will be many scrutiny of images and logs.
Comment 4 Platonides 2012-08-29 21:39:33 UTC
Fixed in https://gerrit.wikimedia.org/r/21960

Keeping open until deployment.
Comment 5 Ryan Kaldari 2012-08-29 22:01:52 UTC
Merged.
Comment 6 Krinkle 2012-08-29 22:04:03 UTC
(In reply to comment #4)
> Fixed in https://gerrit.wikimedia.org/r/21960
> 
> Keeping open until deployment.

Why? Deployment happens automatically every 2 weeks. Waiting for merge is long enough.
Comment 7 Platonides 2012-08-29 23:28:45 UTC
For having this feature on Wiki Loves Monuments 2012 uploads.
Comment 8 Maarten Dammers 2012-08-30 11:45:20 UTC
Is this active at Commons now? I'm asking because this was closed.
Comment 9 Alex Monk 2012-08-30 11:48:33 UTC
No, bugs get closed when they are merged into master. I expect Commons will get this change on the 5th of September with the 1.20wmf11 deployment to all non-wikipedia wikis.
Comment 10 Maarten Dammers 2012-08-30 11:52:33 UTC
That's too late for Wiki Loves Monuments and would screw up the data. For us this is not fixed so please keep it open or just deploy it to Commons earlier.

Closing this again is a good way to piss off your volunteer developers, so please don't.
Comment 11 Alex Monk 2012-08-30 12:03:14 UTC
I've created Gerrit change #22008 to have this (hopefully) merged into wmf/1.20wmf10 and deployed for 1.20wmf10 wikis (including commons). Krinkle was correct to resolve this bug.
Comment 12 Alex Monk 2012-08-30 20:50:26 UTC
Merged and deployed by Kaldari.

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


Navigation
Links