Wikimedia

Add missing file urls and author in 'Recent Uploads' on user profile pages in WikiEduDashboard

Before beginning this task, you should have set up a development environment https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/docs/setup.md

The Wiki Education Dashboard has a React.js frontend and Rails backend. Rails server generates .json files using Jbuilder for the frontend to use. For this task, you need to have some understanding of Jbuilder.

The goal of this task is to add the missing urls and author names in stats.json.jbuilder file so the frontend can display it. To complete it:

  1. Find the user_profiles views.
  2. Add url and author information in user_recent_uploads in stats.json.jbuilder. See how uploads is structured in uploads.json.jbuilder for reference.
  3. Go to User Profile pages and verify that file urls (View on Commons button) work as well as the author name is displayed now when clicking on any Recent Upload.
  4. Commit your changes and create a Pull Request with a screenshot of the Upload Viewer showing the author name.

Task tags

  • rails
  • wiki-edu-dashboard

Students who completed this task

takidelfin

Task type

  • code Code
close

2018