Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atsirlin opened this issue Oct 5, 2019 · 4 comments
Open

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

atsirlin opened this issue Oct 5, 2019 · 4 comments

Comments

@atsirlin
Copy link

atsirlin commented Oct 5, 2019

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
Copy link
Member

slaporte commented Oct 8, 2019

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
Copy link
Author

atsirlin commented Oct 8, 2019

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

@slaporte
Copy link
Member

slaporte commented Oct 8, 2019

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
Copy link

@slaporte Has this been solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants