{"action":"created","issue":{"url":"https://api.github.com/repos/caktus/django-opendebates/issues/106","repository_url":"https://api.github.com/repos/caktus/django-opendebates","labels_url":"https://api.github.com/repos/caktus/django-opendebates/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/caktus/django-opendebates/issues/106/comments","events_url":"https://api.github.com/repos/caktus/django-opendebates/issues/106/events","html_url":"https://github.com/caktus/django-opendebates/pull/106","id":145369605,"number":106,"title":"Adjust headline/followup behavior & storage","user":{"login":"ejucovy","id":54995,"avatar_url":"https://avatars.githubusercontent.com/u/54995?v=3","gravatar_id":"","url":"https://api.github.com/users/ejucovy","html_url":"https://github.com/ejucovy","followers_url":"https://api.github.com/users/ejucovy/followers","following_url":"https://api.github.com/users/ejucovy/following{/other_user}","gists_url":"https://api.github.com/users/ejucovy/gists{/gist_id}","starred_url":"https://api.github.com/users/ejucovy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejucovy/subscriptions","organizations_url":"https://api.github.com/users/ejucovy/orgs","repos_url":"https://api.github.com/users/ejucovy/repos","events_url":"https://api.github.com/users/ejucovy/events{/privacy}","received_events_url":"https://api.github.com/users/ejucovy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-02T12:46:04Z","updated_at":"2016-04-05T16:10:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/caktus/django-opendebates/pulls/106","html_url":"https://github.com/caktus/django-opendebates/pull/106","diff_url":"https://github.com/caktus/django-opendebates/pull/106.diff","patch_url":"https://github.com/caktus/django-opendebates/pull/106.patch"},"body":"Rather than having the user directly submit a value for `submission.idea` in the second text box, switch the front end to set `submission.followup`.  And then set a value for `submission.idea` on the backend by concatenating the headline and followup. \r\n\r\nThis means that `submission.idea` should be consulted in the backend code as the single source for \"all the text content of this submission\" when needed.  And `submission.headline` & `submission.followup` should be consulted in user-facing code when it's necessary to distinguish between the two.\r\n\r\nThis simplifies a bunch of behaviors which are either slightly incorrect on develop or were previously fixed in awkward ways.  I also think it's a marginally more forward-compatible approach to start from if we ever happen to add even more separate text fields and/or change which form fields should be required.\r\n\r\n* Make followup text optional on the front end\r\n* Make sure headlines get displayed in the recent activity widget, in breadcrumbs, and in the preview screens for \"merge/remove\" (by simply continuing to use the combined `submission.idea` in those cases -- it's not so important to distinguish the components in these UI elements)\r\n* Make sure full text searches get to consult headlines (by using the combined `submission.idea` in search)\r\n* Make sure headlines end up contributing keywords when merged into another submission, so that searching for a merged idea's headline still returns the submission that it was merged into (by using the combined `submission.idea` in merge)"},"comment":{"url":"https://api.github.com/repos/caktus/django-opendebates/issues/comments/205875669","html_url":"https://github.com/caktus/django-opendebates/pull/106#issuecomment-205875669","issue_url":"https://api.github.com/repos/caktus/django-opendebates/issues/106","id":205875669,"user":{"login":"vkurup","id":4413,"avatar_url":"https://avatars.githubusercontent.com/u/4413?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurup","html_url":"https://github.com/vkurup","followers_url":"https://api.github.com/users/vkurup/followers","following_url":"https://api.github.com/users/vkurup/following{/other_user}","gists_url":"https://api.github.com/users/vkurup/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurup/subscriptions","organizations_url":"https://api.github.com/users/vkurup/orgs","repos_url":"https://api.github.com/users/vkurup/repos","events_url":"https://api.github.com/users/vkurup/events{/privacy}","received_events_url":"https://api.github.com/users/vkurup/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T16:10:36Z","updated_at":"2016-04-05T16:10:36Z","body":"Thanks, :+1: "}}