Account coordinators want to be able to make informed decisions about whether to grant access to an editor or not. One aspect of this is whether the editor has indiscriminately applied to numerous publishers in one go. If this is the case, the coordinator might want to ask if the editor really needs this particular publisher's content.
In T186502, recent applications were listed in the application evaluation page. The implementation listed the 5 most recent applications, with links if the viewer was the coordinator for that publisher too. This is a good first step, but needs some further refinement. Coordinators are only interested in _recent_ applications, so we can limit those 5 applications to those filed in the recent past, and showing the date is helpful context.
We want to:
- Only list applications filed in the last 3 months.
- Show the submission date for each application
This will help coordinators make informed decisions.
To do this, update the recent applications filter (https://github.com/WikipediaLibrary/TWLight/blob/master/TWLight/applications/views.py#L965) so that it only includes objects with date_created more recent than 90 days with date_created__gte=datetime.today() - timedelta(days=90) where datetime and timedelta are imported from datetime.
Then, in the template where we list applications (https://github.com/WikipediaLibrary/TWLight/blob/master/TWLight/applications/templates/applications/application_evaluation.html#L224), add a new column displaying the submission date (app.date_created).
Good first task
This task has been placed in the good first task category. This means it has been scoped and written in a way that makes it simpler for folks who haven’t contributed to the tool’s development or open source software in the past.
If that’s you, welcome! Please feel free to ask questions here about this specific task or the codebase more generally. We’ll be more than happy to help you and clarify the steps needed to complete the task, whether that’s setting up the repository, implementing the necessary changes, or pushing your changes to Github.
If you have experience contributing to this project or similar ones, please consider leaving this one for someone new, and taking a look at the Open Tasks column of the workboard for another task. Also feel free to help out if you see unanswered questions here!
How to contribute
Assign yourself to this task: Click the ‘Add Action’ dropdown menu below and then select Assign / Claim. The box should fill your username in automatically, then click Submit!
To submit your changes, you should fork the repository and create a new branch. After pushing your changes to your Github branch, you can open a pull request. Please link your pull request in a comment here when it has been submitted, and include the Phabricator task number in the pull request. Experienced contributors to the project will review your code and either provide feedback or merge it in!