{"action":"created","issue":{"url":"https://api.github.com/repos/prakhar1989/react-surveyman/issues/12","labels_url":"https://api.github.com/repos/prakhar1989/react-surveyman/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/prakhar1989/react-surveyman/issues/12/comments","events_url":"https://api.github.com/repos/prakhar1989/react-surveyman/issues/12/events","html_url":"https://github.com/prakhar1989/react-surveyman/issues/12","id":72044196,"number":12,"title":"wishlist: cached options","user":{"login":"etosch","id":508630,"avatar_url":"https://avatars.githubusercontent.com/u/508630?v=3","gravatar_id":"","url":"https://api.github.com/users/etosch","html_url":"https://github.com/etosch","followers_url":"https://api.github.com/users/etosch/followers","following_url":"https://api.github.com/users/etosch/following{/other_user}","gists_url":"https://api.github.com/users/etosch/gists{/gist_id}","starred_url":"https://api.github.com/users/etosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etosch/subscriptions","organizations_url":"https://api.github.com/users/etosch/orgs","repos_url":"https://api.github.com/users/etosch/repos","events_url":"https://api.github.com/users/etosch/events{/privacy}","received_events_url":"https://api.github.com/users/etosch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prakhar1989/react-surveyman/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"prakhar1989","id":649249,"avatar_url":"https://avatars.githubusercontent.com/u/649249?v=3","gravatar_id":"","url":"https://api.github.com/users/prakhar1989","html_url":"https://github.com/prakhar1989","followers_url":"https://api.github.com/users/prakhar1989/followers","following_url":"https://api.github.com/users/prakhar1989/following{/other_user}","gists_url":"https://api.github.com/users/prakhar1989/gists{/gist_id}","starred_url":"https://api.github.com/users/prakhar1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakhar1989/subscriptions","organizations_url":"https://api.github.com/users/prakhar1989/orgs","repos_url":"https://api.github.com/users/prakhar1989/repos","events_url":"https://api.github.com/users/prakhar1989/events{/privacy}","received_events_url":"https://api.github.com/users/prakhar1989/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-04-30T02:47:30Z","updated_at":"2015-05-04T13:09:01Z","closed_at":null,"body":"In some surveys, there are options that get used over and over again, especially if the survey consists of many questions in a Likert scal, e.g.:\r\n\r\nHow strongly do you agree that chocolate is the best ice cream? \r\n-  Agree Strongly.\r\n-  Agree\r\n-  Disagree\r\n-  Disagree Strongly. \r\n\r\nIt would be very convenient if we had separate window for the most popular ones. You would then need to add a `copyOption` action, or represent the cached option as a generator (looks like it would be similar to the [DraggableBlock](https://github.com/prakhar1989/react-surveyman/blob/master/js/components/DraggableBlock.js#L6))"},"comment":{"url":"https://api.github.com/repos/prakhar1989/react-surveyman/issues/comments/98700945","html_url":"https://github.com/prakhar1989/react-surveyman/issues/12#issuecomment-98700945","issue_url":"https://api.github.com/repos/prakhar1989/react-surveyman/issues/12","id":98700945,"user":{"login":"etosch","id":508630,"avatar_url":"https://avatars.githubusercontent.com/u/508630?v=3","gravatar_id":"","url":"https://api.github.com/users/etosch","html_url":"https://github.com/etosch","followers_url":"https://api.github.com/users/etosch/followers","following_url":"https://api.github.com/users/etosch/following{/other_user}","gists_url":"https://api.github.com/users/etosch/gists{/gist_id}","starred_url":"https://api.github.com/users/etosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etosch/subscriptions","organizations_url":"https://api.github.com/users/etosch/orgs","repos_url":"https://api.github.com/users/etosch/repos","events_url":"https://api.github.com/users/etosch/events{/privacy}","received_events_url":"https://api.github.com/users/etosch/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T13:09:01Z","updated_at":"2015-05-04T13:09:01Z","body":"There is an internal id that is uniquely generated, but the id that’s used in surveyman.js takes the form <prefix>_<row>_<col> from the csv implementation. This allowed us to debug more easily (e.g., ensure that the randomization was occurring properly), to look up the value of the id in the original csv, etc. \n\nWhen re-using options, as we’ve been discussing, they should each have a unique id. \n\nOn May 1, 2015, at 11:06 AM, Prakhar Srivastav <notifications@github.com> wrote:\n\n> @etosch : Quick question - Is it fair to assume that the question ids generated in a survey are unique across the survey (across blocks, subblocks etc.)? I've not yet looked at how those are generated. Can you also point me to the code where those are generated as I need to do the same in this project?\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n\n"}}