Page MenuHomePhabricator

Microtask: Create a very simple REST API for SortingHat
Closed, DeclinedPublic

Description

Create a JSON file with some identities, in the format expected by SortingHat. Load it to create a SortingHat MySQL database. Create a very simple Flask or Django application providing a REST interfate. This very simple REST interface will provide a single resource, /list, which when accessed through HTTP GET will produce a JSON file, in SortingHat format, from the information in the database.

It can be tested as follows:

curl -X GET http://server/list

This should return the mentioned JSON file. The format of that JSON file is that used for the "load" and "export" command options for sortinghat, see section "Import/Export", at the end of README.md.

As a result of this task, provide the link to a git repository with:

  • A MySQL SortingHat database dump
  • The JSON file, in SortingHat format, used to create it
  • All the Python source code of the application
  • A README.md file with clear and detailed instructions to deploy the application, including any configuration information needed.

Event Timeline

jgbarah raised the priority of this task from to Medium.
jgbarah updated the task description. (Show Details)
jgbarah updated the task description. (Show Details)
jgbarah set Security to None.
Qgil renamed this task from Microtask: Create a very simple REST API to Microtask: Create a very simple REST API for SortingHat.Oct 12 2015, 3:42 PM
Aklapper lowered the priority of this task from Medium to Lowest.Nov 9 2015, 12:47 PM
Aklapper raised the priority of this task from Lowest to Low.
Aklapper moved this task from Backlog to Ready to Go on the wikimedia.biterg.io board.

Hello,I am Sayli Karnik ,an Outreachy aspirant for the upcoming Round 12. I am proficient in HTML, CSS, JavaScript, PHP, Android and REST APIs. Could you assist me in making my first contribution?What task should I take up?

Hello,I am Sayli Karnik ,an Outreachy aspirant for the upcoming Round 12. I am proficient in HTML, CSS, JavaScript, PHP, Android and REST APIs. Could you assist me in making my first contribution?What task should I take up?

Hello and welcome to the community @Saylikarnik. You should be taking a look at https://www.mediawiki.org/wiki/Outreach_programs/Life_of_a_successful_project which shows the entire process.

Take a look at https://www.mediawiki.org/wiki/Gerrit/Tutorial to start contributing to MediaWiki codebase by fixing your first bug, and of course check in https://phabricator.wikimedia.org/tag/easy/ to list down some easy bugs to start with.

Hi @Saylikarnik. Thanks for your interest! Apart from what @01tonythomas already wrote: As you commented on this task, do you have a specific question about this task?
Sortinghat is hosted on GitHub, hence https://github.com/MetricsGrimoire/sortinghat would be the repository to create pull requests for.

Aklapper lowered the priority of this task from Low to Lowest.Nov 20 2016, 7:26 PM

If this is wanted then it should be managed under the CHAOSS / oss-health-metrics Linux Foundation umbrella (upstream): https://github.com/chaoss/grimoirelab

Not Wikimedia specific hence declining the task in this (Wikimedia) place.