{"action":"opened","number":152,"pull_request":{"url":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/152","id":43282016,"html_url":"https://github.com/datagovuk/ckanext-dgu/pull/152","diff_url":"https://github.com/datagovuk/ckanext-dgu/pull/152.diff","patch_url":"https://github.com/datagovuk/ckanext-dgu/pull/152.patch","issue_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/152","number":152,"state":"open","locked":false,"title":"Fix issue that was causing secondary theme corruption","user":{"login":"morty","id":3272,"avatar_url":"https://avatars.githubusercontent.com/u/3272?v=3","gravatar_id":"","url":"https://api.github.com/users/morty","html_url":"https://github.com/morty","followers_url":"https://api.github.com/users/morty/followers","following_url":"https://api.github.com/users/morty/following{/other_user}","gists_url":"https://api.github.com/users/morty/gists{/gist_id}","starred_url":"https://api.github.com/users/morty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morty/subscriptions","organizations_url":"https://api.github.com/users/morty/orgs","repos_url":"https://api.github.com/users/morty/repos","events_url":"https://api.github.com/users/morty/events{/privacy}","received_events_url":"https://api.github.com/users/morty/received_events","type":"User","site_admin":false},"body":"We store the secondary themes in the database as a JSON list of strings. This gets de-serialised, into a list, when coming out of the database for the package edit form. But when the package edit form is submitted with an error, the form is re-rendered using the submitted data which is a string of comma separated themes.\r\n\r\nThis change caters for the fact the secondary themes might be a list or (on submission error) it might be a string containing a comma separated list of themes.","created_at":"2015-08-25T12:56:06Z","updated_at":"2015-08-25T12:56:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"rossjones","id":118063,"avatar_url":"https://avatars.githubusercontent.com/u/118063?v=3","gravatar_id":"","url":"https://api.github.com/users/rossjones","html_url":"https://github.com/rossjones","followers_url":"https://api.github.com/users/rossjones/followers","following_url":"https://api.github.com/users/rossjones/following{/other_user}","gists_url":"https://api.github.com/users/rossjones/gists{/gist_id}","starred_url":"https://api.github.com/users/rossjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossjones/subscriptions","organizations_url":"https://api.github.com/users/rossjones/orgs","repos_url":"https://api.github.com/users/rossjones/repos","events_url":"https://api.github.com/users/rossjones/events{/privacy}","received_events_url":"https://api.github.com/users/rossjones/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/152/commits","review_comments_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/152/comments","review_comment_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/152/comments","statuses_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/statuses/6ad7d830065856614dcf48c70c46024aeaff89d9","head":{"label":"datagovuk:1894-base-issue-fix","ref":"1894-base-issue-fix","sha":"6ad7d830065856614dcf48c70c46024aeaff89d9","user":{"login":"datagovuk","id":1893876,"avatar_url":"https://avatars.githubusercontent.com/u/1893876?v=3","gravatar_id":"","url":"https://api.github.com/users/datagovuk","html_url":"https://github.com/datagovuk","followers_url":"https://api.github.com/users/datagovuk/followers","following_url":"https://api.github.com/users/datagovuk/following{/other_user}","gists_url":"https://api.github.com/users/datagovuk/gists{/gist_id}","starred_url":"https://api.github.com/users/datagovuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datagovuk/subscriptions","organizations_url":"https://api.github.com/users/datagovuk/orgs","repos_url":"https://api.github.com/users/datagovuk/repos","events_url":"https://api.github.com/users/datagovuk/events{/privacy}","received_events_url":"https://api.github.com/users/datagovuk/received_events","type":"Organization","site_admin":false},"repo":{"id":2890621,"name":"ckanext-dgu","full_name":"datagovuk/ckanext-dgu","owner":{"login":"datagovuk","id":1893876,"avatar_url":"https://avatars.githubusercontent.com/u/1893876?v=3","gravatar_id":"","url":"https://api.github.com/users/datagovuk","html_url":"https://github.com/datagovuk","followers_url":"https://api.github.com/users/datagovuk/followers","following_url":"https://api.github.com/users/datagovuk/following{/other_user}","gists_url":"https://api.github.com/users/datagovuk/gists{/gist_id}","starred_url":"https://api.github.com/users/datagovuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datagovuk/subscriptions","organizations_url":"https://api.github.com/users/datagovuk/orgs","repos_url":"https://api.github.com/users/datagovuk/repos","events_url":"https://api.github.com/users/datagovuk/events{/privacy}","received_events_url":"https://api.github.com/users/datagovuk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datagovuk/ckanext-dgu","description":"CKAN extension for data.gov.uk","fork":false,"url":"https://api.github.com/repos/datagovuk/ckanext-dgu","forks_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/forks","keys_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/teams","hooks_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/hooks","issue_events_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/events{/number}","events_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/events","assignees_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/assignees{/user}","branches_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/branches{/branch}","tags_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/tags","blobs_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/refs{/sha}","trees_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/statuses/{sha}","languages_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/languages","stargazers_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/stargazers","contributors_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/contributors","subscribers_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/subscribers","subscription_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/subscription","commits_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/commits{/sha}","git_commits_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/commits{/sha}","comments_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/comments{/number}","issue_comment_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/comments{/number}","contents_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/contents/{+path}","compare_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/merges","archive_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/downloads","issues_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues{/number}","pulls_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls{/number}","milestones_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/milestones{/number}","notifications_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/labels{/name}","releases_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/releases{/id}","created_at":"2011-12-01T11:31:04Z","updated_at":"2015-07-14T00:24:08Z","pushed_at":"2015-08-25T12:56:06Z","git_url":"git://github.com/datagovuk/ckanext-dgu.git","ssh_url":"git@github.com:datagovuk/ckanext-dgu.git","clone_url":"https://github.com/datagovuk/ckanext-dgu.git","svn_url":"https://github.com/datagovuk/ckanext-dgu","homepage":"http://data.gov.uk/","size":27641,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":10,"forks":19,"open_issues":10,"watchers":20,"default_branch":"master"}},"base":{"label":"datagovuk:master","ref":"master","sha":"7d894bfb82eee79aeb2dd135c360228f61d26669","user":{"login":"datagovuk","id":1893876,"avatar_url":"https://avatars.githubusercontent.com/u/1893876?v=3","gravatar_id":"","url":"https://api.github.com/users/datagovuk","html_url":"https://github.com/datagovuk","followers_url":"https://api.github.com/users/datagovuk/followers","following_url":"https://api.github.com/users/datagovuk/following{/other_user}","gists_url":"https://api.github.com/users/datagovuk/gists{/gist_id}","starred_url":"https://api.github.com/users/datagovuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datagovuk/subscriptions","organizations_url":"https://api.github.com/users/datagovuk/orgs","repos_url":"https://api.github.com/users/datagovuk/repos","events_url":"https://api.github.com/users/datagovuk/events{/privacy}","received_events_url":"https://api.github.com/users/datagovuk/received_events","type":"Organization","site_admin":false},"repo":{"id":2890621,"name":"ckanext-dgu","full_name":"datagovuk/ckanext-dgu","owner":{"login":"datagovuk","id":1893876,"avatar_url":"https://avatars.githubusercontent.com/u/1893876?v=3","gravatar_id":"","url":"https://api.github.com/users/datagovuk","html_url":"https://github.com/datagovuk","followers_url":"https://api.github.com/users/datagovuk/followers","following_url":"https://api.github.com/users/datagovuk/following{/other_user}","gists_url":"https://api.github.com/users/datagovuk/gists{/gist_id}","starred_url":"https://api.github.com/users/datagovuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datagovuk/subscriptions","organizations_url":"https://api.github.com/users/datagovuk/orgs","repos_url":"https://api.github.com/users/datagovuk/repos","events_url":"https://api.github.com/users/datagovuk/events{/privacy}","received_events_url":"https://api.github.com/users/datagovuk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datagovuk/ckanext-dgu","description":"CKAN extension for data.gov.uk","fork":false,"url":"https://api.github.com/repos/datagovuk/ckanext-dgu","forks_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/forks","keys_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/teams","hooks_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/hooks","issue_events_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/events{/number}","events_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/events","assignees_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/assignees{/user}","branches_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/branches{/branch}","tags_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/tags","blobs_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/refs{/sha}","trees_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/statuses/{sha}","languages_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/languages","stargazers_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/stargazers","contributors_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/contributors","subscribers_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/subscribers","subscription_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/subscription","commits_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/commits{/sha}","git_commits_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/git/commits{/sha}","comments_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/comments{/number}","issue_comment_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/comments{/number}","contents_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/contents/{+path}","compare_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/merges","archive_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/downloads","issues_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues{/number}","pulls_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls{/number}","milestones_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/milestones{/number}","notifications_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/labels{/name}","releases_url":"https://api.github.com/repos/datagovuk/ckanext-dgu/releases{/id}","created_at":"2011-12-01T11:31:04Z","updated_at":"2015-07-14T00:24:08Z","pushed_at":"2015-08-25T12:56:06Z","git_url":"git://github.com/datagovuk/ckanext-dgu.git","ssh_url":"git@github.com:datagovuk/ckanext-dgu.git","clone_url":"https://github.com/datagovuk/ckanext-dgu.git","svn_url":"https://github.com/datagovuk/ckanext-dgu","homepage":"http://data.gov.uk/","size":27641,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":10,"forks":19,"open_issues":10,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/152"},"html":{"href":"https://github.com/datagovuk/ckanext-dgu/pull/152"},"issue":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/152"},"comments":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/datagovuk/ckanext-dgu/statuses/6ad7d830065856614dcf48c70c46024aeaff89d9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":3,"changed_files":3}}