{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/intertwine/issues/15","labels_url":"https://api.github.com/repos/DoSomething/intertwine/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/intertwine/issues/15/comments","events_url":"https://api.github.com/repos/DoSomething/intertwine/issues/15/events","html_url":"https://github.com/DoSomething/intertwine/pull/15","id":56456194,"number":15,"title":"PassageDS models exported to json config","user":{"login":"jonuy","id":696595,"avatar_url":"https://avatars.githubusercontent.com/u/696595?v=3","gravatar_id":"","url":"https://api.github.com/users/jonuy","html_url":"https://github.com/jonuy","followers_url":"https://api.github.com/users/jonuy/followers","following_url":"https://api.github.com/users/jonuy/following{/other_user}","gists_url":"https://api.github.com/users/jonuy/gists{/gist_id}","starred_url":"https://api.github.com/users/jonuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonuy/subscriptions","organizations_url":"https://api.github.com/users/jonuy/orgs","repos_url":"https://api.github.com/users/jonuy/repos","events_url":"https://api.github.com/users/jonuy/events{/privacy}","received_events_url":"https://api.github.com/users/jonuy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-03T23:35:40Z","updated_at":"2015-02-04T21:55:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DoSomething/intertwine/pulls/15","html_url":"https://github.com/DoSomething/intertwine/pull/15","diff_url":"https://github.com/DoSomething/intertwine/pull/15.diff","patch_url":"https://github.com/DoSomething/intertwine/pull/15.patch"},"body":"#### What's this PR do?\r\nPassageDS models are exported to the `story` object of the json config.\r\n\r\n#### Where should the reviewer start?\r\n- `passageEditDSModal.html`: Adds the optin path field to the UI modal\r\n- `passageDSEditor.js`: Takes the value of that new field and saves it\r\n- `passageDS.js`\r\n  - Includes `optinpath` in the template when the story is published/exported\r\n  - `links` basically helps to draw the links in the UI using the `[[text|link|answers]]` format\r\n- `linkmanager.js`: No logic changes. Mostly just null checking to clean up some warnings that were showing up in the log\r\n- `exportsms.js`: The meat of the action. `_compilePassage` first parses `tw-passagedata` and stores it as an object that has only the data we care about. Then `_buildStory` runs through all passages and translates it into the format expected for our json config.\r\n\r\n#### How should this be manually tested?\r\nThis is super handwave-y but drag me over if you have questions about testing\r\n- Create a bunch of PassageDS passages and link them together\r\n- Export for SMS\r\n- Config should look like we expect our SMS game configs to look\r\n\r\n#### What are the relevant tickets?\r\n#9 "},"comment":{"url":"https://api.github.com/repos/DoSomething/intertwine/issues/comments/72948087","html_url":"https://github.com/DoSomething/intertwine/pull/15#issuecomment-72948087","issue_url":"https://api.github.com/repos/DoSomething/intertwine/issues/15","id":72948087,"user":{"login":"tongxiang","id":5678066,"avatar_url":"https://avatars.githubusercontent.com/u/5678066?v=3","gravatar_id":"","url":"https://api.github.com/users/tongxiang","html_url":"https://github.com/tongxiang","followers_url":"https://api.github.com/users/tongxiang/followers","following_url":"https://api.github.com/users/tongxiang/following{/other_user}","gists_url":"https://api.github.com/users/tongxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/tongxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tongxiang/subscriptions","organizations_url":"https://api.github.com/users/tongxiang/orgs","repos_url":"https://api.github.com/users/tongxiang/repos","events_url":"https://api.github.com/users/tongxiang/events{/privacy}","received_events_url":"https://api.github.com/users/tongxiang/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T21:55:47Z","updated_at":"2015-02-04T21:55:47Z","body":":+1: super cool!"}}