Wikimedia
Commons Mass Description: Throw 400 Bad Request when API call fails
Knowledge requirements
The student must know at least basics of Flask, a Python web microframework and Python itself.
Problem & proposed solution
Commons Mass Description is a tool that can be used for adding descriptions to a lot of images on Wikimedia Commons at once.
On several places of the tool the internal API returns some kind of error (1, 2 and similar) and on the same time, returns HTTP 200 Ok as its status code. It'll be nice if Commons Mass Description could send HTTP 400 Bad Request.
Also, return JSON and 400 Bad Request on this legacy error raising.
Submit your work to Wikimedia Gerrit, see tutorial below.
Materials
- How to run development environment
- Codebase
- If you want to try to work with Gerrit before working on this, you can claim this task before.
- Gerrit tutorial
Task tags
Students who completed this task
Nathan