{"action":"created","comment":{"url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/comments/76393306","id":76393306,"diff_hunk":"@@ -0,0 +1,37 @@\n+/*\n+ * This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; under version 2\n+ * of the License (non-upgradable).\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n+ *\n+ * Copyright (c) 2016 (original work) Open Assessment Technologies SA;\n+ *\n+ */\n+define(['jquery', 'helpers', 'core/promise'], function($, helpers, Promise){\n+    'use strict';\n+    \n+    var _serverUrl = helpers._url('load', 'PciLoader', 'qtiItemPci');\n+    \n+    return {\n+        load: function load(){\n+            return new Promise(function(resolve){\n+                $.ajax({\n+                    url : _serverUrl,\n+                    dataType : 'json',\n+                    type : 'GET'\n+                }).done(function (pcis){","path":"views/js/pciProvider.js","position":31,"original_position":31,"commit_id":"6ee6a32427193e65f9b95f8fb30d18d81dc33617","original_commit_id":"6ee6a32427193e65f9b95f8fb30d18d81dc33617","user":{"login":"jsconan","id":1500098,"avatar_url":"https://avatars.githubusercontent.com/u/1500098?v=3","gravatar_id":"","url":"https://api.github.com/users/jsconan","html_url":"https://github.com/jsconan","followers_url":"https://api.github.com/users/jsconan/followers","following_url":"https://api.github.com/users/jsconan/following{/other_user}","gists_url":"https://api.github.com/users/jsconan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsconan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsconan/subscriptions","organizations_url":"https://api.github.com/users/jsconan/orgs","repos_url":"https://api.github.com/users/jsconan/repos","events_url":"https://api.github.com/users/jsconan/events{/privacy}","received_events_url":"https://api.github.com/users/jsconan/received_events","type":"User","site_admin":false},"body":"What happens if the query fails ?","created_at":"2016-08-26T09:47:22Z","updated_at":"2016-08-26T09:47:22Z","html_url":"https://github.com/oat-sa/extension-tao-itemqti-pci/pull/38#discussion_r76393306","pull_request_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/comments/76393306"},"html":{"href":"https://github.com/oat-sa/extension-tao-itemqti-pci/pull/38#discussion_r76393306"},"pull_request":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38","id":82346454,"html_url":"https://github.com/oat-sa/extension-tao-itemqti-pci/pull/38","diff_url":"https://github.com/oat-sa/extension-tao-itemqti-pci/pull/38.diff","patch_url":"https://github.com/oat-sa/extension-tao-itemqti-pci/pull/38.patch","issue_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/38","number":38,"state":"open","locked":false,"title":"Integration/portable migration","user":{"login":"ssipasseuth","id":8425344,"avatar_url":"https://avatars.githubusercontent.com/u/8425344?v=3","gravatar_id":"","url":"https://api.github.com/users/ssipasseuth","html_url":"https://github.com/ssipasseuth","followers_url":"https://api.github.com/users/ssipasseuth/followers","following_url":"https://api.github.com/users/ssipasseuth/following{/other_user}","gists_url":"https://api.github.com/users/ssipasseuth/gists{/gist_id}","starred_url":"https://api.github.com/users/ssipasseuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssipasseuth/subscriptions","organizations_url":"https://api.github.com/users/ssipasseuth/orgs","repos_url":"https://api.github.com/users/ssipasseuth/repos","events_url":"https://api.github.com/users/ssipasseuth/events{/privacy}","received_events_url":"https://api.github.com/users/ssipasseuth/received_events","type":"User","site_admin":false},"body":"Reimplemented the life cycle of PCI according to https://oat-sa.atlassian.net/browse/TAO-2524\r\n\r\nRequires https://github.com/oat-sa/extension-tao-itemqti/pull/765\r\nPlease check this related PR for more information.\r\n\r\n\r\n\r\n","created_at":"2016-08-23T11:19:37Z","updated_at":"2016-08-26T09:47:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"511d7427d68cedf26a150c24daa4187950f6a74a","assignee":{"login":"jsconan","id":1500098,"avatar_url":"https://avatars.githubusercontent.com/u/1500098?v=3","gravatar_id":"","url":"https://api.github.com/users/jsconan","html_url":"https://github.com/jsconan","followers_url":"https://api.github.com/users/jsconan/followers","following_url":"https://api.github.com/users/jsconan/following{/other_user}","gists_url":"https://api.github.com/users/jsconan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsconan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsconan/subscriptions","organizations_url":"https://api.github.com/users/jsconan/orgs","repos_url":"https://api.github.com/users/jsconan/repos","events_url":"https://api.github.com/users/jsconan/events{/privacy}","received_events_url":"https://api.github.com/users/jsconan/received_events","type":"User","site_admin":false},"assignees":[{"login":"jsconan","id":1500098,"avatar_url":"https://avatars.githubusercontent.com/u/1500098?v=3","gravatar_id":"","url":"https://api.github.com/users/jsconan","html_url":"https://github.com/jsconan","followers_url":"https://api.github.com/users/jsconan/followers","following_url":"https://api.github.com/users/jsconan/following{/other_user}","gists_url":"https://api.github.com/users/jsconan/gists{/gist_id}","starred_url":"https://api.github.com/users/jsconan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsconan/subscriptions","organizations_url":"https://api.github.com/users/jsconan/orgs","repos_url":"https://api.github.com/users/jsconan/repos","events_url":"https://api.github.com/users/jsconan/events{/privacy}","received_events_url":"https://api.github.com/users/jsconan/received_events","type":"User","site_admin":false},{"login":"jbout","id":5815304,"avatar_url":"https://avatars.githubusercontent.com/u/5815304?v=3","gravatar_id":"","url":"https://api.github.com/users/jbout","html_url":"https://github.com/jbout","followers_url":"https://api.github.com/users/jbout/followers","following_url":"https://api.github.com/users/jbout/following{/other_user}","gists_url":"https://api.github.com/users/jbout/gists{/gist_id}","starred_url":"https://api.github.com/users/jbout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbout/subscriptions","organizations_url":"https://api.github.com/users/jbout/orgs","repos_url":"https://api.github.com/users/jbout/repos","events_url":"https://api.github.com/users/jbout/events{/privacy}","received_events_url":"https://api.github.com/users/jbout/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38/commits","review_comments_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38/comments","review_comment_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/38/comments","statuses_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/statuses/6ee6a32427193e65f9b95f8fb30d18d81dc33617","head":{"label":"oat-sa:integration/portable_migration","ref":"integration/portable_migration","sha":"6ee6a32427193e65f9b95f8fb30d18d81dc33617","user":{"login":"oat-sa","id":7581081,"avatar_url":"https://avatars.githubusercontent.com/u/7581081?v=3","gravatar_id":"","url":"https://api.github.com/users/oat-sa","html_url":"https://github.com/oat-sa","followers_url":"https://api.github.com/users/oat-sa/followers","following_url":"https://api.github.com/users/oat-sa/following{/other_user}","gists_url":"https://api.github.com/users/oat-sa/gists{/gist_id}","starred_url":"https://api.github.com/users/oat-sa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oat-sa/subscriptions","organizations_url":"https://api.github.com/users/oat-sa/orgs","repos_url":"https://api.github.com/users/oat-sa/repos","events_url":"https://api.github.com/users/oat-sa/events{/privacy}","received_events_url":"https://api.github.com/users/oat-sa/received_events","type":"Organization","site_admin":false},"repo":{"id":22882861,"name":"extension-tao-itemqti-pci","full_name":"oat-sa/extension-tao-itemqti-pci","owner":{"login":"oat-sa","id":7581081,"avatar_url":"https://avatars.githubusercontent.com/u/7581081?v=3","gravatar_id":"","url":"https://api.github.com/users/oat-sa","html_url":"https://github.com/oat-sa","followers_url":"https://api.github.com/users/oat-sa/followers","following_url":"https://api.github.com/users/oat-sa/following{/other_user}","gists_url":"https://api.github.com/users/oat-sa/gists{/gist_id}","starred_url":"https://api.github.com/users/oat-sa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oat-sa/subscriptions","organizations_url":"https://api.github.com/users/oat-sa/orgs","repos_url":"https://api.github.com/users/oat-sa/repos","events_url":"https://api.github.com/users/oat-sa/events{/privacy}","received_events_url":"https://api.github.com/users/oat-sa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oat-sa/extension-tao-itemqti-pci","description":"","fork":false,"url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci","forks_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/forks","keys_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/teams","hooks_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/hooks","issue_events_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/events{/number}","events_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/events","assignees_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/assignees{/user}","branches_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/branches{/branch}","tags_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/tags","blobs_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/refs{/sha}","trees_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/statuses/{sha}","languages_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/languages","stargazers_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/stargazers","contributors_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/contributors","subscribers_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/subscribers","subscription_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/subscription","commits_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/commits{/sha}","git_commits_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/commits{/sha}","comments_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/comments{/number}","issue_comment_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/comments{/number}","contents_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/contents/{+path}","compare_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/merges","archive_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/downloads","issues_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues{/number}","pulls_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls{/number}","milestones_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/milestones{/number}","notifications_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/labels{/name}","releases_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/releases{/id}","deployments_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/deployments","created_at":"2014-08-12T15:39:33Z","updated_at":"2016-04-11T16:59:52Z","pushed_at":"2016-08-26T07:53:12Z","git_url":"git://github.com/oat-sa/extension-tao-itemqti-pci.git","ssh_url":"git@github.com:oat-sa/extension-tao-itemqti-pci.git","clone_url":"https://github.com/oat-sa/extension-tao-itemqti-pci.git","svn_url":"https://github.com/oat-sa/extension-tao-itemqti-pci","homepage":"","size":1395,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"oat-sa:develop","ref":"develop","sha":"2008bf28c3a191e8b2a82e4ca363d35ca88b4777","user":{"login":"oat-sa","id":7581081,"avatar_url":"https://avatars.githubusercontent.com/u/7581081?v=3","gravatar_id":"","url":"https://api.github.com/users/oat-sa","html_url":"https://github.com/oat-sa","followers_url":"https://api.github.com/users/oat-sa/followers","following_url":"https://api.github.com/users/oat-sa/following{/other_user}","gists_url":"https://api.github.com/users/oat-sa/gists{/gist_id}","starred_url":"https://api.github.com/users/oat-sa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oat-sa/subscriptions","organizations_url":"https://api.github.com/users/oat-sa/orgs","repos_url":"https://api.github.com/users/oat-sa/repos","events_url":"https://api.github.com/users/oat-sa/events{/privacy}","received_events_url":"https://api.github.com/users/oat-sa/received_events","type":"Organization","site_admin":false},"repo":{"id":22882861,"name":"extension-tao-itemqti-pci","full_name":"oat-sa/extension-tao-itemqti-pci","owner":{"login":"oat-sa","id":7581081,"avatar_url":"https://avatars.githubusercontent.com/u/7581081?v=3","gravatar_id":"","url":"https://api.github.com/users/oat-sa","html_url":"https://github.com/oat-sa","followers_url":"https://api.github.com/users/oat-sa/followers","following_url":"https://api.github.com/users/oat-sa/following{/other_user}","gists_url":"https://api.github.com/users/oat-sa/gists{/gist_id}","starred_url":"https://api.github.com/users/oat-sa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oat-sa/subscriptions","organizations_url":"https://api.github.com/users/oat-sa/orgs","repos_url":"https://api.github.com/users/oat-sa/repos","events_url":"https://api.github.com/users/oat-sa/events{/privacy}","received_events_url":"https://api.github.com/users/oat-sa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oat-sa/extension-tao-itemqti-pci","description":"","fork":false,"url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci","forks_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/forks","keys_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/teams","hooks_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/hooks","issue_events_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/events{/number}","events_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/events","assignees_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/assignees{/user}","branches_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/branches{/branch}","tags_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/tags","blobs_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/refs{/sha}","trees_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/statuses/{sha}","languages_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/languages","stargazers_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/stargazers","contributors_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/contributors","subscribers_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/subscribers","subscription_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/subscription","commits_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/commits{/sha}","git_commits_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/git/commits{/sha}","comments_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/comments{/number}","issue_comment_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/comments{/number}","contents_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/contents/{+path}","compare_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/merges","archive_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/downloads","issues_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues{/number}","pulls_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls{/number}","milestones_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/milestones{/number}","notifications_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/labels{/name}","releases_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/releases{/id}","deployments_url":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/deployments","created_at":"2014-08-12T15:39:33Z","updated_at":"2016-04-11T16:59:52Z","pushed_at":"2016-08-26T07:53:12Z","git_url":"git://github.com/oat-sa/extension-tao-itemqti-pci.git","ssh_url":"git@github.com:oat-sa/extension-tao-itemqti-pci.git","clone_url":"https://github.com/oat-sa/extension-tao-itemqti-pci.git","svn_url":"https://github.com/oat-sa/extension-tao-itemqti-pci","homepage":"","size":1395,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38"},"html":{"href":"https://github.com/oat-sa/extension-tao-itemqti-pci/pull/38"},"issue":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/38"},"comments":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/oat-sa/extension-tao-itemqti-pci/statuses/6ee6a32427193e65f9b95f8fb30d18d81dc33617"}}}}
{"actor":{"display_login":"jsconan"}}