{"action":"created","issue":{"url":"https://api.github.com/repos/modout/sphslms/issues/1","repository_url":"https://api.github.com/repos/modout/sphslms","labels_url":"https://api.github.com/repos/modout/sphslms/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/modout/sphslms/issues/1/comments","events_url":"https://api.github.com/repos/modout/sphslms/issues/1/events","html_url":"https://github.com/modout/sphslms/issues/1","id":147780192,"number":1,"title":"H5P Content Sync","user":{"login":"modout","id":8044510,"avatar_url":"https://avatars.githubusercontent.com/u/8044510?v=3","gravatar_id":"","url":"https://api.github.com/users/modout","html_url":"https://github.com/modout","followers_url":"https://api.github.com/users/modout/followers","following_url":"https://api.github.com/users/modout/following{/other_user}","gists_url":"https://api.github.com/users/modout/gists{/gist_id}","starred_url":"https://api.github.com/users/modout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modout/subscriptions","organizations_url":"https://api.github.com/users/modout/orgs","repos_url":"https://api.github.com/users/modout/repos","events_url":"https://api.github.com/users/modout/events{/privacy}","received_events_url":"https://api.github.com/users/modout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"modout","id":8044510,"avatar_url":"https://avatars.githubusercontent.com/u/8044510?v=3","gravatar_id":"","url":"https://api.github.com/users/modout","html_url":"https://github.com/modout","followers_url":"https://api.github.com/users/modout/followers","following_url":"https://api.github.com/users/modout/following{/other_user}","gists_url":"https://api.github.com/users/modout/gists{/gist_id}","starred_url":"https://api.github.com/users/modout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modout/subscriptions","organizations_url":"https://api.github.com/users/modout/orgs","repos_url":"https://api.github.com/users/modout/repos","events_url":"https://api.github.com/users/modout/events{/privacy}","received_events_url":"https://api.github.com/users/modout/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-04-12T15:04:03Z","updated_at":"2016-04-13T13:41:15Z","closed_at":null,"body":"We need to custom develop a script/algorithm for syncing h5p content as these content involves the following;\r\n0 - The node_id that is linked to the content_id - which is what should be checked before the content_id is changed - and this node_id resides also in the following tables;\r\n----- node\r\n----- h5p_nodes\r\n----- quiz_node_relationships - linking questions\\slides to lessons\r\n----- opigno_quiz_app_quiz_sort - linking lessons to subjects\\courses\r\n--- In order to update any changes to the h5p node - we need to first check if its node_id is correct in the master server - beit the school or cloud -- depending on required access per school - but this can also be deployed to auto update irrespective of master server\r\n\r\n1 - A directory where all content_id files - like images/videos etc - are store - the content_id is the directory name - hence any change to the content_id in the database sync must change the folder \r\n2 - Entries of the content_id in the following tables\r\n--- h5p_nodes\r\n--- h5p_nodes_libraries\r\n"},"comment":{"url":"https://api.github.com/repos/modout/sphslms/issues/comments/209445220","html_url":"https://github.com/modout/sphslms/issues/1#issuecomment-209445220","issue_url":"https://api.github.com/repos/modout/sphslms/issues/1","id":209445220,"user":{"login":"modout","id":8044510,"avatar_url":"https://avatars.githubusercontent.com/u/8044510?v=3","gravatar_id":"","url":"https://api.github.com/users/modout","html_url":"https://github.com/modout","followers_url":"https://api.github.com/users/modout/followers","following_url":"https://api.github.com/users/modout/following{/other_user}","gists_url":"https://api.github.com/users/modout/gists{/gist_id}","starred_url":"https://api.github.com/users/modout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modout/subscriptions","organizations_url":"https://api.github.com/users/modout/orgs","repos_url":"https://api.github.com/users/modout/repos","events_url":"https://api.github.com/users/modout/events{/privacy}","received_events_url":"https://api.github.com/users/modout/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T13:41:14Z","updated_at":"2016-04-13T13:41:14Z","body":"Change the 0 - description,\n\nThe link with the content_id is not a pre-requisite\n\nThe formula is to start with the sync of all nodes then follow with h5p_nodes - this make the programming easier and scalable... for future improvements..."}}