Page MenuHomePhabricator

Add filter by date to the Special:ListFiles in Wikimedia Commons
Open, Needs TriagePublicFeature

Description

Abstract
Back in 2021 I have uploaded several thousand files to the Wikimedia Commons (spellings of the Ukrainian words), so now if I want to see files that I uploaded before that, I need to press "Next page" button several dozens times, and that is very tedious and inconvenient. Sometimes I need to find a file I have uploaded long ago, but all I remember about this date is the approximate point in time I have uploaded it, and getting there is a tedious task. It is very probable that other users have encountered this problem too. Even if not, this feature will just be convenient to navigate in uploaded files. In addition, Special:Contributions already has this feature, so Special:ListFiles shoud have it as well.

Feature summary (what you would like to be able to do and where):
The form at the top of the Special:ListFiles in Wikimedia Commons should have two fields: "From date" and "To date" (just like in Special:Contributions). If those fields are filled by the user, after the button "Show file list" is pressed, it should only display those files that were uploaded in the given time range, filtering out all the files whose upload date does not fall into range. Also, provide the possibility for those dates to be set in "&start=" and "&end=" parameters in the URL-string.

If both dates were not specified, files should not be filtered. If the start date was set and the end date was not, assume the end date to be today. If the end date was set and the start date was not, display all files uploaded not later than the end date. If start date is later than end date, do not filter images and show an error message.

Benefits (why should this be implemented?):
That will make user experience while using Special:ListFiles much more convenient, the search will be more flexible.

Event Timeline

Given that I'm going to unassign myself. Working on T32608: Merge Special:NewFiles with Special:ListFiles seems too much work for the remaining time in the Hackathon.

Related issues: T329961: Sort media by date captured in MediaSearch and T71417.

Probably the best way to implement this (?) would be adding a date range filter and a way to search a user's uploads: T188125: Make it possible to search by page author /contributor/ uploader