{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/13","id":45592407,"html_url":"https://github.com/moodleou/moodle-report_customsql/pull/13","diff_url":"https://github.com/moodleou/moodle-report_customsql/pull/13.diff","patch_url":"https://github.com/moodleou/moodle-report_customsql/pull/13.patch","issue_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues/13","number":13,"state":"closed","locked":false,"title":"First try at integrating datatables.","user":{"login":"fredcy","id":15950,"avatar_url":"https://avatars.githubusercontent.com/u/15950?v=3","gravatar_id":"","url":"https://api.github.com/users/fredcy","html_url":"https://github.com/fredcy","followers_url":"https://api.github.com/users/fredcy/followers","following_url":"https://api.github.com/users/fredcy/following{/other_user}","gists_url":"https://api.github.com/users/fredcy/gists{/gist_id}","starred_url":"https://api.github.com/users/fredcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredcy/subscriptions","organizations_url":"https://api.github.com/users/fredcy/orgs","repos_url":"https://api.github.com/users/fredcy/repos","events_url":"https://api.github.com/users/fredcy/events{/privacy}","received_events_url":"https://api.github.com/users/fredcy/received_events","type":"User","site_admin":false},"body":"I really like the report_customsql plugin. What I most miss from reporting apps I've done is integration with the DataTables javascript library that allows easy filtering and sorting over HTML tables. To that end I threw together this prototype. It's not likely to be suitable to pull as is but I wanted to show a simple proof of concept. I'm new to developing Moodle plugins and I could not figure out the right way get  jQuery available as DataTables requires, so I just included a separate version bundled with this plugin.\r\n\r\nThe files under the new datatables folder are the entirely of the \"media\" folder distributed with DataTables  1.10.9 as obtained from http://datatables.net/download/packages.","created_at":"2015-09-21T19:59:33Z","updated_at":"2015-09-22T11:06:46Z","closed_at":"2015-09-22T11:06:46Z","merged_at":null,"merge_commit_sha":"1a527e41bf933d84b55116a1c4dd14e6b0030e7e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/13/commits","review_comments_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/13/comments","review_comment_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues/13/comments","statuses_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/statuses/e7fb1a7963399db42067a86901cbc2815931d6f5","head":{"label":"fredcy:datatables","ref":"datatables","sha":"e7fb1a7963399db42067a86901cbc2815931d6f5","user":{"login":"fredcy","id":15950,"avatar_url":"https://avatars.githubusercontent.com/u/15950?v=3","gravatar_id":"","url":"https://api.github.com/users/fredcy","html_url":"https://github.com/fredcy","followers_url":"https://api.github.com/users/fredcy/followers","following_url":"https://api.github.com/users/fredcy/following{/other_user}","gists_url":"https://api.github.com/users/fredcy/gists{/gist_id}","starred_url":"https://api.github.com/users/fredcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredcy/subscriptions","organizations_url":"https://api.github.com/users/fredcy/orgs","repos_url":"https://api.github.com/users/fredcy/repos","events_url":"https://api.github.com/users/fredcy/events{/privacy}","received_events_url":"https://api.github.com/users/fredcy/received_events","type":"User","site_admin":false},"repo":{"id":42680600,"name":"moodle-report_customsql","full_name":"fredcy/moodle-report_customsql","owner":{"login":"fredcy","id":15950,"avatar_url":"https://avatars.githubusercontent.com/u/15950?v=3","gravatar_id":"","url":"https://api.github.com/users/fredcy","html_url":"https://github.com/fredcy","followers_url":"https://api.github.com/users/fredcy/followers","following_url":"https://api.github.com/users/fredcy/following{/other_user}","gists_url":"https://api.github.com/users/fredcy/gists{/gist_id}","starred_url":"https://api.github.com/users/fredcy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredcy/subscriptions","organizations_url":"https://api.github.com/users/fredcy/orgs","repos_url":"https://api.github.com/users/fredcy/repos","events_url":"https://api.github.com/users/fredcy/events{/privacy}","received_events_url":"https://api.github.com/users/fredcy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fredcy/moodle-report_customsql","description":"A Moodle report plugin that lets you easily create simple reports that can be expressed as a single SQL query","fork":true,"url":"https://api.github.com/repos/fredcy/moodle-report_customsql","forks_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/forks","keys_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/teams","hooks_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/hooks","issue_events_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/issues/events{/number}","events_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/events","assignees_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/assignees{/user}","branches_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/branches{/branch}","tags_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/tags","blobs_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/statuses/{sha}","languages_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/languages","stargazers_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/stargazers","contributors_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/contributors","subscribers_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/subscribers","subscription_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/subscription","commits_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/contents/{+path}","compare_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/merges","archive_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/downloads","issues_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/issues{/number}","pulls_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/pulls{/number}","milestones_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/milestones{/number}","notifications_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/labels{/name}","releases_url":"https://api.github.com/repos/fredcy/moodle-report_customsql/releases{/id}","created_at":"2015-09-17T20:36:43Z","updated_at":"2015-09-17T20:36:44Z","pushed_at":"2015-09-21T19:49:53Z","git_url":"git://github.com/fredcy/moodle-report_customsql.git","ssh_url":"git@github.com:fredcy/moodle-report_customsql.git","clone_url":"https://github.com/fredcy/moodle-report_customsql.git","svn_url":"https://github.com/fredcy/moodle-report_customsql","homepage":"","size":218,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"moodleou:master","ref":"master","sha":"b71886654107145e95a1f9ec71b61eb431affe21","user":{"login":"moodleou","id":1019786,"avatar_url":"https://avatars.githubusercontent.com/u/1019786?v=3","gravatar_id":"","url":"https://api.github.com/users/moodleou","html_url":"https://github.com/moodleou","followers_url":"https://api.github.com/users/moodleou/followers","following_url":"https://api.github.com/users/moodleou/following{/other_user}","gists_url":"https://api.github.com/users/moodleou/gists{/gist_id}","starred_url":"https://api.github.com/users/moodleou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moodleou/subscriptions","organizations_url":"https://api.github.com/users/moodleou/orgs","repos_url":"https://api.github.com/users/moodleou/repos","events_url":"https://api.github.com/users/moodleou/events{/privacy}","received_events_url":"https://api.github.com/users/moodleou/received_events","type":"Organization","site_admin":false},"repo":{"id":1871448,"name":"moodle-report_customsql","full_name":"moodleou/moodle-report_customsql","owner":{"login":"moodleou","id":1019786,"avatar_url":"https://avatars.githubusercontent.com/u/1019786?v=3","gravatar_id":"","url":"https://api.github.com/users/moodleou","html_url":"https://github.com/moodleou","followers_url":"https://api.github.com/users/moodleou/followers","following_url":"https://api.github.com/users/moodleou/following{/other_user}","gists_url":"https://api.github.com/users/moodleou/gists{/gist_id}","starred_url":"https://api.github.com/users/moodleou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moodleou/subscriptions","organizations_url":"https://api.github.com/users/moodleou/orgs","repos_url":"https://api.github.com/users/moodleou/repos","events_url":"https://api.github.com/users/moodleou/events{/privacy}","received_events_url":"https://api.github.com/users/moodleou/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moodleou/moodle-report_customsql","description":"A Moodle report plugin that lets you easily create simple reports that can be expressed as a single SQL query","fork":false,"url":"https://api.github.com/repos/moodleou/moodle-report_customsql","forks_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/forks","keys_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/teams","hooks_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/hooks","issue_events_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues/events{/number}","events_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/events","assignees_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/assignees{/user}","branches_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/branches{/branch}","tags_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/tags","blobs_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/git/refs{/sha}","trees_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/statuses/{sha}","languages_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/languages","stargazers_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/stargazers","contributors_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/contributors","subscribers_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/subscribers","subscription_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/subscription","commits_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/commits{/sha}","git_commits_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/git/commits{/sha}","comments_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/comments{/number}","issue_comment_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues/comments{/number}","contents_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/contents/{+path}","compare_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/merges","archive_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/downloads","issues_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues{/number}","pulls_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls{/number}","milestones_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/milestones{/number}","notifications_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/labels{/name}","releases_url":"https://api.github.com/repos/moodleou/moodle-report_customsql/releases{/id}","created_at":"2011-06-09T15:35:26Z","updated_at":"2015-09-21T16:16:34Z","pushed_at":"2015-09-21T19:59:33Z","git_url":"git://github.com/moodleou/moodle-report_customsql.git","ssh_url":"git@github.com:moodleou/moodle-report_customsql.git","clone_url":"https://github.com/moodleou/moodle-report_customsql.git","svn_url":"https://github.com/moodleou/moodle-report_customsql","homepage":"","size":382,"stargazers_count":18,"watchers_count":18,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":0,"forks":23,"open_issues":0,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/13"},"html":{"href":"https://github.com/moodleou/moodle-report_customsql/pull/13"},"issue":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues/13"},"comments":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/moodleou/moodle-report_customsql/statuses/e7fb1a7963399db42067a86901cbc2815931d6f5"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":17461,"deletions":0,"changed_files":27}}