{"action":"created","issue":{"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/1115","repository_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer","labels_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/1115/labels{/name}","comments_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/1115/comments","events_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/1115/events","html_url":"https://github.com/mattgodbolt/compiler-explorer/pull/1115","id":369962988,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNzU2MTI3","number":1115,"title":"Add defaultCompiler to api/languages, and add api/libraries","user":{"login":"partouf","id":442630,"node_id":"MDQ6VXNlcjQ0MjYzMA==","avatar_url":"https://avatars0.githubusercontent.com/u/442630?v=4","gravatar_id":"","url":"https://api.github.com/users/partouf","html_url":"https://github.com/partouf","followers_url":"https://api.github.com/users/partouf/followers","following_url":"https://api.github.com/users/partouf/following{/other_user}","gists_url":"https://api.github.com/users/partouf/gists{/gist_id}","starred_url":"https://api.github.com/users/partouf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/partouf/subscriptions","organizations_url":"https://api.github.com/users/partouf/orgs","repos_url":"https://api.github.com/users/partouf/repos","events_url":"https://api.github.com/users/partouf/events{/privacy}","received_events_url":"https://api.github.com/users/partouf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-15T00:51:27Z","updated_at":"2018-10-15T13:00:10Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/pulls/1115","html_url":"https://github.com/mattgodbolt/compiler-explorer/pull/1115","diff_url":"https://github.com/mattgodbolt/compiler-explorer/pull/1115.diff","patch_url":"https://github.com/mattgodbolt/compiler-explorer/pull/1115.patch"},"body":"It hit me that the defaultCompiler was missing from the API calls, so I added it to the /languages call.\r\nI also added a new /api/libraries/:language to fetch the available libraries and version.\r\n\r\nOne thing that surprised me somewhat is that the library id/version isn't actually sent along with the compilation command, but only -I\"include path\" is added to the userArguments. Which is fine for C++, but I can imagine things might change once other languages get libraries added as well.\r\n\r\nIt's something to think about.\r\n"},"comment":{"url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/comments/429843703","html_url":"https://github.com/mattgodbolt/compiler-explorer/pull/1115#issuecomment-429843703","issue_url":"https://api.github.com/repos/mattgodbolt/compiler-explorer/issues/1115","id":429843703,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTg0MzcwMw==","user":{"login":"RabsRincon","id":5364255,"node_id":"MDQ6VXNlcjUzNjQyNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/5364255?v=4","gravatar_id":"","url":"https://api.github.com/users/RabsRincon","html_url":"https://github.com/RabsRincon","followers_url":"https://api.github.com/users/RabsRincon/followers","following_url":"https://api.github.com/users/RabsRincon/following{/other_user}","gists_url":"https://api.github.com/users/RabsRincon/gists{/gist_id}","starred_url":"https://api.github.com/users/RabsRincon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RabsRincon/subscriptions","organizations_url":"https://api.github.com/users/RabsRincon/orgs","repos_url":"https://api.github.com/users/RabsRincon/repos","events_url":"https://api.github.com/users/RabsRincon/events{/privacy}","received_events_url":"https://api.github.com/users/RabsRincon/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T13:00:10Z","updated_at":"2018-10-15T13:00:10Z","author_association":"COLLABORATOR","body":"Regarding the handling of libraries, they are done that way because it was difficult at the time to handle it serverside, but that has now changed. If you haven't already, I can move that to the server computations in this PR."}}
{"actor":{"display_login":"RabsRincon"}}