hatnote / montage

📷 Photo evaluation tool for and by Wiki Loves competitions
https://commons.wikimedia.org/wiki/Commons:Montage
BSD 3-Clause "New" or "Revised" License
36 stars 11 forks source link

Read author and upload date from the first version of the file #155

Open atsirlin opened 4 years ago

atsirlin commented 4 years ago

Currently, Montage imports the latest version of the file available on Commons. However, one should retrieve the author and upload date from the first version, because only the first version is relevant for the disqualification by author or date.

slaporte commented 4 years ago

Montage loads file info from the image table, where the img_actor is the user who uploaded the most recent version. It should check the oldimage table for the previous uploader(s). (If there is only one version of a file, then it won't be in oldimage.)

Do we want to save any other info from previous versions in oldimage? Should we use that date for disqualification purposes too?

We should probably write a clean up script too, to see if this an issue in any ongoing campaigns.

atsirlin commented 4 years ago

Yes, we should use the initial upload date for disqualification.

slaporte commented 4 years ago

I have an idea for a simple fix, but I need to test tomorrow before deploying. I want to make sure this doesn't slow down the import process or mess with anything else.

ferdi2005 commented 3 years ago

@slaporte Has this been solved?