{"action":"created","issue":{"url":"https://api.github.com/repos/edx/XBlock/issues/288","labels_url":"https://api.github.com/repos/edx/XBlock/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/edx/XBlock/issues/288/comments","events_url":"https://api.github.com/repos/edx/XBlock/issues/288/events","html_url":"https://github.com/edx/XBlock/pull/288","id":55818820,"number":288,"title":"Ignore comments when parsing XML","user":{"login":"bradenmacdonald","id":945577,"avatar_url":"https://avatars.githubusercontent.com/u/945577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/edx/XBlock/labels/needs%20triage","name":"needs triage","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-28T21:32:35Z","updated_at":"2015-01-29T08:38:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/XBlock/pulls/288","html_url":"https://github.com/edx/XBlock/pull/288","diff_url":"https://github.com/edx/XBlock/pull/288.diff","patch_url":"https://github.com/edx/XBlock/pull/288.patch"},"body":"This is a simple change to ignore comments when parsing XML. Currently, if the XML includes comments, an error will result and the XBlock tree construction fails.\r\n\r\nIncludes a test.\r\n\r\nUse cases:\r\n* Adding explanatory comments to course exports\r\n* Temporarily disabling blocks in XML by commenting them out\r\n* Some XBlocks currently have an \"editor\" interface that's just a big XML field where users can edit the XML that defines them and their child blocks. We currently have to override the `parse_xml` method in each such block to add code to ignore comments in order to avoid errors when users add them as part of an edit.\r\n"},"comment":{"url":"https://api.github.com/repos/edx/XBlock/issues/comments/71988277","html_url":"https://github.com/edx/XBlock/pull/288#issuecomment-71988277","issue_url":"https://api.github.com/repos/edx/XBlock/issues/288","id":71988277,"user":{"login":"e-kolpakov","id":3330048,"avatar_url":"https://avatars.githubusercontent.com/u/3330048?v=3","gravatar_id":"","url":"https://api.github.com/users/e-kolpakov","html_url":"https://github.com/e-kolpakov","followers_url":"https://api.github.com/users/e-kolpakov/followers","following_url":"https://api.github.com/users/e-kolpakov/following{/other_user}","gists_url":"https://api.github.com/users/e-kolpakov/gists{/gist_id}","starred_url":"https://api.github.com/users/e-kolpakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-kolpakov/subscriptions","organizations_url":"https://api.github.com/users/e-kolpakov/orgs","repos_url":"https://api.github.com/users/e-kolpakov/repos","events_url":"https://api.github.com/users/e-kolpakov/events{/privacy}","received_events_url":"https://api.github.com/users/e-kolpakov/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T08:38:33Z","updated_at":"2015-01-29T08:38:33Z","body":"@bradenmacdonald :+1: "}}