{"action":"created","issue":{"url":"https://api.github.com/repos/openfun/fonzie/issues/2","repository_url":"https://api.github.com/repos/openfun/fonzie","labels_url":"https://api.github.com/repos/openfun/fonzie/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/openfun/fonzie/issues/2/comments","events_url":"https://api.github.com/repos/openfun/fonzie/issues/2/events","html_url":"https://github.com/openfun/fonzie/pull/2","id":299732892,"number":2,"title":"Add a POC for Open edX - Fonzie shared database","user":{"login":"jmaupetit","id":956157,"avatar_url":"https://avatars2.githubusercontent.com/u/956157?v=4","gravatar_id":"","url":"https://api.github.com/users/jmaupetit","html_url":"https://github.com/jmaupetit","followers_url":"https://api.github.com/users/jmaupetit/followers","following_url":"https://api.github.com/users/jmaupetit/following{/other_user}","gists_url":"https://api.github.com/users/jmaupetit/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaupetit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaupetit/subscriptions","organizations_url":"https://api.github.com/users/jmaupetit/orgs","repos_url":"https://api.github.com/users/jmaupetit/repos","events_url":"https://api.github.com/users/jmaupetit/events{/privacy}","received_events_url":"https://api.github.com/users/jmaupetit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-23T14:41:19Z","updated_at":"2018-02-23T14:42:54Z","closed_at":"2018-02-23T14:42:03Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openfun/fonzie/pulls/2","html_url":"https://github.com/openfun/fonzie/pull/2","diff_url":"https://github.com/openfun/fonzie/pull/2.diff","patch_url":"https://github.com/openfun/fonzie/pull/2.patch"},"body":"**DO NOT MERGE**\r\n\r\nThis work is a proof-of-concept of making Fonzie a standalone application consumming Open edX data. Here is how we proceeded:\r\n\r\n* add a fake Open edX django project running in docker containers (see docker-compose.yml); this is the project that bundles a students app with the Student model that will be exposed by Fonzie\r\n* configure fonzie as a project using the same PostgreSQL database as the Open edX fake project (see test_settings.py)\r\n* implement a serializer and an API view (in fonzie app) for the Student model\r\n\r\nAnd... tada! We were able to expose Open edX data with Fonzie, without having to integrate fonzie in an Open edX instance and without adding Open edX django applications in our `INSTALLED_APPS`.\r\n\r\n**Known constrain**: models MUST define an explicit `app_label`\r\n\r\nThat said, this work stays a POC, and does not take into account Open edX platform black magic and complexity.\r\n\r\nThe next step is to use the fun-platform dockerized stack and expose Open edX student.UserProfile model as a real world example.\r\n\r\nWhich me good luck!"},"comment":{"url":"https://api.github.com/repos/openfun/fonzie/issues/comments/368027760","html_url":"https://github.com/openfun/fonzie/pull/2#issuecomment-368027760","issue_url":"https://api.github.com/repos/openfun/fonzie/issues/2","id":368027760,"user":{"login":"jmaupetit","id":956157,"avatar_url":"https://avatars2.githubusercontent.com/u/956157?v=4","gravatar_id":"","url":"https://api.github.com/users/jmaupetit","html_url":"https://github.com/jmaupetit","followers_url":"https://api.github.com/users/jmaupetit/followers","following_url":"https://api.github.com/users/jmaupetit/following{/other_user}","gists_url":"https://api.github.com/users/jmaupetit/gists{/gist_id}","starred_url":"https://api.github.com/users/jmaupetit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmaupetit/subscriptions","organizations_url":"https://api.github.com/users/jmaupetit/orgs","repos_url":"https://api.github.com/users/jmaupetit/repos","events_url":"https://api.github.com/users/jmaupetit/events{/privacy}","received_events_url":"https://api.github.com/users/jmaupetit/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T14:42:54Z","updated_at":"2018-02-23T14:42:54Z","author_association":"CONTRIBUTOR","body":"I'm closing this PR as it is not intended to be merged but rather a showcase for this POC."}}
{"actor":{"display_login":"jmaupetit"}}