{"action":"created","comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/83270889","pull_request_review_id":4126052,"id":83270889,"diff_hunk":"@@ -0,0 +1,20 @@\n+","path":"cfgov/jinja2/v1/_includes/atoms/anchor-link.html","position":1,"original_position":1,"commit_id":"85c1e13a11f13801d2a201e42f4cd6159e492c95","original_commit_id":"85c1e13a11f13801d2a201e42f4cd6159e492c95","user":{"login":"jimmynotjim","id":1280430,"avatar_url":"https://avatars.githubusercontent.com/u/1280430?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmynotjim","html_url":"https://github.com/jimmynotjim","followers_url":"https://api.github.com/users/jimmynotjim/followers","following_url":"https://api.github.com/users/jimmynotjim/following{/other_user}","gists_url":"https://api.github.com/users/jimmynotjim/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmynotjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmynotjim/subscriptions","organizations_url":"https://api.github.com/users/jimmynotjim/orgs","repos_url":"https://api.github.com/users/jimmynotjim/repos","events_url":"https://api.github.com/users/jimmynotjim/events{/privacy}","received_events_url":"https://api.github.com/users/jimmynotjim/received_events","type":"User","site_admin":false},"body":"This isn't an element, @kurtrwall noted in chat it should be moved to `_includes/blocks/ `","created_at":"2016-10-13T17:39:12Z","updated_at":"2016-10-13T17:40:55Z","html_url":"https://github.com/cfpb/cfgov-refresh/pull/2451#discussion_r83270889","pull_request_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451","_links":{"self":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments/83270889"},"html":{"href":"https://github.com/cfpb/cfgov-refresh/pull/2451#discussion_r83270889"},"pull_request":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451"}}},"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451","id":88481927,"html_url":"https://github.com/cfpb/cfgov-refresh/pull/2451","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/2451.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/2451.patch","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/2451","number":2451,"state":"closed","locked":false,"title":"Add anchor link field and Content with Anchor block for use in data-research site","user":{"login":"cfarm","id":702526,"avatar_url":"https://avatars.githubusercontent.com/u/702526?v=3","gravatar_id":"","url":"https://api.github.com/users/cfarm","html_url":"https://github.com/cfarm","followers_url":"https://api.github.com/users/cfarm/followers","following_url":"https://api.github.com/users/cfarm/following{/other_user}","gists_url":"https://api.github.com/users/cfarm/gists{/gist_id}","starred_url":"https://api.github.com/users/cfarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfarm/subscriptions","organizations_url":"https://api.github.com/users/cfarm/orgs","repos_url":"https://api.github.com/users/cfarm/repos","events_url":"https://api.github.com/users/cfarm/events{/privacy}","received_events_url":"https://api.github.com/users/cfarm/received_events","type":"User","site_admin":false},"body":"This is a very limited scope implementation of anchor link fields in the Wagtail admin. It is meant to be used in ~~half-width link blob contexts~~ only for now. **Updated** this is now for use in full-width-text elements only.\r\n\r\nUser story: as a content editor managing links within the Data and Research site, I want to create and copy anchor links from Wagtail blocks on the Research Conference Papers page, so I can link to those blocks from the Research Conference agenda page.\r\n\r\n## Additions\r\n\r\n- AnchorLink atom for saving an element id in the db\r\n- AnchorLink is viewable in admin as part of a new \"Content with Anchor\" module on Full Width Text elements\r\n- it is copy and pasteable\r\n- it is editable by a content editor\r\n- the id is output on `m-full-width-text` elements\r\n- if there is no anchor_ prefix with the unique id, then it generates that and adds it to the text that the editor put in the field\r\n- if there is no text entered in the field, it autogenerates it on save. this ensures that whether the field was entered or not, the front end outputs a unique id to the template\r\n\r\n\r\n## Testing\r\n\r\nTest `AnchorLink` block inputs:\r\n\r\n```\r\ntox -e fast v1.tests.test_blocks\r\n```\r\n\r\nTest full-width-text organism w/new ContentWithAnchor molecule:\r\n\r\n```\r\ntox -e fast v1.tests.atomic_elements\r\n```\r\n\r\nAdd a full-width-content block to a browse or learn page in the admin to see this in action locally\r\n\r\n## Review\r\n\r\n- @kurtrwall \r\n\r\n## Screenshots\r\n\r\nAdmin interface:\r\n\r\n![screen shot 2016-10-12 at 3 44 58 pm](https://cloud.githubusercontent.com/assets/702526/19325173/dde91d56-9092-11e6-801c-034aa1685894.png)\r\n\r\n\r\nFront end template output:\r\n![screen shot 2016-10-12 at 3 44 13 pm](https://cloud.githubusercontent.com/assets/702526/19325183/e61d6a2c-9092-11e6-97e7-b9b2f4ee4643.png)\r\n\r\n\r\n\r\n\r\n```\r\n\r\n## Checklist\r\n\r\n* [ ] Changes are limited to a single goal (no scope creep)\r\n* [ ] Code can be automatically merged (no conflicts)\r\n* [ ] Code follows the standards laid out in the [front end playbook](https://github.com/cfpb/front-end)\r\n* [ ] Passes all existing automated tests\r\n* [ ] New functions include new tests\r\n* [ ] New functions are documented (with a description, list of inputs, and expected output)\r\n* [ ] Placeholder code is flagged\r\n* [ ] Visually tested in supported browsers and devices\r\n* [ ] Project documentation has been updated (including the \"Unreleased\" section of the CHANGELOG)\r\n","created_at":"2016-10-07T18:01:55Z","updated_at":"2016-10-13T17:40:55Z","closed_at":"2016-10-13T17:18:57Z","merged_at":"2016-10-13T17:18:57Z","merge_commit_sha":"ce4ee5ea93167866476d8b092a6d56301e3cdf67","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451/commits","review_comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451/comments","review_comment_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/2451/comments","statuses_url":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/85c1e13a11f13801d2a201e42f4cd6159e492c95","head":{"label":"cfarm:feature/anchor-links","ref":"feature/anchor-links","sha":"85c1e13a11f13801d2a201e42f4cd6159e492c95","user":{"login":"cfarm","id":702526,"avatar_url":"https://avatars.githubusercontent.com/u/702526?v=3","gravatar_id":"","url":"https://api.github.com/users/cfarm","html_url":"https://github.com/cfarm","followers_url":"https://api.github.com/users/cfarm/followers","following_url":"https://api.github.com/users/cfarm/following{/other_user}","gists_url":"https://api.github.com/users/cfarm/gists{/gist_id}","starred_url":"https://api.github.com/users/cfarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfarm/subscriptions","organizations_url":"https://api.github.com/users/cfarm/orgs","repos_url":"https://api.github.com/users/cfarm/repos","events_url":"https://api.github.com/users/cfarm/events{/privacy}","received_events_url":"https://api.github.com/users/cfarm/received_events","type":"User","site_admin":false},"repo":{"id":58658257,"name":"cfgov-refresh","full_name":"cfarm/cfgov-refresh","owner":{"login":"cfarm","id":702526,"avatar_url":"https://avatars.githubusercontent.com/u/702526?v=3","gravatar_id":"","url":"https://api.github.com/users/cfarm","html_url":"https://github.com/cfarm","followers_url":"https://api.github.com/users/cfarm/followers","following_url":"https://api.github.com/users/cfarm/following{/other_user}","gists_url":"https://api.github.com/users/cfarm/gists{/gist_id}","starred_url":"https://api.github.com/users/cfarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfarm/subscriptions","organizations_url":"https://api.github.com/users/cfarm/orgs","repos_url":"https://api.github.com/users/cfarm/repos","events_url":"https://api.github.com/users/cfarm/events{/privacy}","received_events_url":"https://api.github.com/users/cfarm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cfarm/cfgov-refresh","description":"In-progress redesign of the consumerfinance.gov website.","fork":true,"url":"https://api.github.com/repos/cfarm/cfgov-refresh","forks_url":"https://api.github.com/repos/cfarm/cfgov-refresh/forks","keys_url":"https://api.github.com/repos/cfarm/cfgov-refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfarm/cfgov-refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfarm/cfgov-refresh/teams","hooks_url":"https://api.github.com/repos/cfarm/cfgov-refresh/hooks","issue_events_url":"https://api.github.com/repos/cfarm/cfgov-refresh/issues/events{/number}","events_url":"https://api.github.com/repos/cfarm/cfgov-refresh/events","assignees_url":"https://api.github.com/repos/cfarm/cfgov-refresh/assignees{/user}","branches_url":"https://api.github.com/repos/cfarm/cfgov-refresh/branches{/branch}","tags_url":"https://api.github.com/repos/cfarm/cfgov-refresh/tags","blobs_url":"https://api.github.com/repos/cfarm/cfgov-refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfarm/cfgov-refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfarm/cfgov-refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfarm/cfgov-refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfarm/cfgov-refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/cfarm/cfgov-refresh/languages","stargazers_url":"https://api.github.com/repos/cfarm/cfgov-refresh/stargazers","contributors_url":"https://api.github.com/repos/cfarm/cfgov-refresh/contributors","subscribers_url":"https://api.github.com/repos/cfarm/cfgov-refresh/subscribers","subscription_url":"https://api.github.com/repos/cfarm/cfgov-refresh/subscription","commits_url":"https://api.github.com/repos/cfarm/cfgov-refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfarm/cfgov-refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfarm/cfgov-refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfarm/cfgov-refresh/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfarm/cfgov-refresh/contents/{+path}","compare_url":"https://api.github.com/repos/cfarm/cfgov-refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfarm/cfgov-refresh/merges","archive_url":"https://api.github.com/repos/cfarm/cfgov-refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfarm/cfgov-refresh/downloads","issues_url":"https://api.github.com/repos/cfarm/cfgov-refresh/issues{/number}","pulls_url":"https://api.github.com/repos/cfarm/cfgov-refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/cfarm/cfgov-refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/cfarm/cfgov-refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfarm/cfgov-refresh/labels{/name}","releases_url":"https://api.github.com/repos/cfarm/cfgov-refresh/releases{/id}","deployments_url":"https://api.github.com/repos/cfarm/cfgov-refresh/deployments","created_at":"2016-05-12T16:27:05Z","updated_at":"2016-10-07T17:56:02Z","pushed_at":"2016-10-13T13:25:34Z","git_url":"git://github.com/cfarm/cfgov-refresh.git","ssh_url":"git@github.com:cfarm/cfgov-refresh.git","clone_url":"https://github.com/cfarm/cfgov-refresh.git","svn_url":"https://github.com/cfarm/cfgov-refresh","homepage":"","size":61298,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"flapjack"}},"base":{"label":"cfpb:master","ref":"master","sha":"520e9a847735c80ac1df87381f0f50d82d594934","user":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"repo":{"id":18852566,"name":"cfgov-refresh","full_name":"cfpb/cfgov-refresh","owner":{"login":"cfpb","id":1071563,"avatar_url":"https://avatars.githubusercontent.com/u/1071563?v=3","gravatar_id":"","url":"https://api.github.com/users/cfpb","html_url":"https://github.com/cfpb","followers_url":"https://api.github.com/users/cfpb/followers","following_url":"https://api.github.com/users/cfpb/following{/other_user}","gists_url":"https://api.github.com/users/cfpb/gists{/gist_id}","starred_url":"https://api.github.com/users/cfpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfpb/subscriptions","organizations_url":"https://api.github.com/users/cfpb/orgs","repos_url":"https://api.github.com/users/cfpb/repos","events_url":"https://api.github.com/users/cfpb/events{/privacy}","received_events_url":"https://api.github.com/users/cfpb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cfpb/cfgov-refresh","description":"Django project that powers the redesigned consumerfinance.gov website.","fork":false,"url":"https://api.github.com/repos/cfpb/cfgov-refresh","forks_url":"https://api.github.com/repos/cfpb/cfgov-refresh/forks","keys_url":"https://api.github.com/repos/cfpb/cfgov-refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cfpb/cfgov-refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cfpb/cfgov-refresh/teams","hooks_url":"https://api.github.com/repos/cfpb/cfgov-refresh/hooks","issue_events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/events{/number}","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/events","assignees_url":"https://api.github.com/repos/cfpb/cfgov-refresh/assignees{/user}","branches_url":"https://api.github.com/repos/cfpb/cfgov-refresh/branches{/branch}","tags_url":"https://api.github.com/repos/cfpb/cfgov-refresh/tags","blobs_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/cfpb/cfgov-refresh/languages","stargazers_url":"https://api.github.com/repos/cfpb/cfgov-refresh/stargazers","contributors_url":"https://api.github.com/repos/cfpb/cfgov-refresh/contributors","subscribers_url":"https://api.github.com/repos/cfpb/cfgov-refresh/subscribers","subscription_url":"https://api.github.com/repos/cfpb/cfgov-refresh/subscription","commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/cfpb/cfgov-refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments{/number}","contents_url":"https://api.github.com/repos/cfpb/cfgov-refresh/contents/{+path}","compare_url":"https://api.github.com/repos/cfpb/cfgov-refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cfpb/cfgov-refresh/merges","archive_url":"https://api.github.com/repos/cfpb/cfgov-refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cfpb/cfgov-refresh/downloads","issues_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues{/number}","pulls_url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/cfpb/cfgov-refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/cfpb/cfgov-refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/labels{/name}","releases_url":"https://api.github.com/repos/cfpb/cfgov-refresh/releases{/id}","deployments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/deployments","created_at":"2014-04-16T19:22:03Z","updated_at":"2016-09-25T15:08:32Z","pushed_at":"2016-10-13T17:19:20Z","git_url":"git://github.com/cfpb/cfgov-refresh.git","ssh_url":"git@github.com:cfpb/cfgov-refresh.git","clone_url":"https://github.com/cfpb/cfgov-refresh.git","svn_url":"https://github.com/cfpb/cfgov-refresh","homepage":"http://www.consumerfinance.gov/","size":131087,"stargazers_count":72,"watchers_count":72,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":41,"mirror_url":null,"open_issues_count":102,"forks":41,"open_issues":102,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451"},"html":{"href":"https://github.com/cfpb/cfgov-refresh/pull/2451"},"issue":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/2451"},"comments":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/2451/comments"},"review_comments":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451/comments"},"review_comment":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/2451/commits"},"statuses":{"href":"https://api.github.com/repos/cfpb/cfgov-refresh/statuses/85c1e13a11f13801d2a201e42f4cd6159e492c95"}}}}
{"actor":{"display_login":"jimmynotjim"}}