{"action":"created","issue":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1922","repository_url":"https://api.github.com/repos/cfpb/cfgov-refresh","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1922/labels{/name}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1922/comments","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1922/events","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1922","id":149299639,"number":1922,"title":"Move Blog, Newsroom, Activity log to Wagtail","user":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-18T23:21:04Z","updated_at":"2016-04-19T14:43:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/1922","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1922","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/1922.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/1922.patch"},"body":"I've combined this into a single PR because you need each piece to test it all without breaking things.\r\n\r\n## Additions\r\n\r\n- Legacy page types to migrate old content from WordPress\r\n- import-data processors to do the migrations\r\n- corresponding templates\r\n- rss feeds\r\n- new references to Activity log in the category reference\r\n- Reports is now a thing in Activity Log\r\n\r\n## Removals\r\n\r\n- i removed the old stuff that we aren't going to use anymore, like urls and template files\r\n\r\n## Changes\r\n\r\n- The `get_page_set` function to get the pages for each of the filterable lists ended up being so different that i ended up breaking into its corresponding page class to separate concerns.\r\n- legacy content uses the same article.html file it did before but i changed it to be wagtail page compatible.\r\n- view more works with wagtail pages now\r\n- bug fixing some stuff\r\n- some other stuff i probably forgot\r\n\r\n## Testing\r\n\r\n- get the latest from refresh\r\n- make sure you have the database option in local.py set to run migrations that create foreign key references\r\n- run the migrations\r\n- under the home page, add an Activity Log Page\r\n - make sure there's a filterable list with categories selected, and **Activity Log** selected as the page type\r\n - ![screen shot 2016-04-19 at 10 19 47 am](https://cloud.githubusercontent.com/assets/254877/14642382/46b8d764-0618-11e6-8378-28de8ec78f41.png)\r\n\r\n- under the about us section, add a Newsroom **Landing Page** and a Blog **Sublanding filterable Page** \r\n - again, make sure that there's a filterable list, and the page types are selected (Newsroom for Newsroom, Blog for blog)\r\n- run `./cfgov/manage.py import_data posts legacyblogpage --parent blog -u user -p pass`\r\n- run `./cfgov/manage.py import_data newsroom legacynewsroompage --parent newsroom -u user -p pass`\r\n - *Note*: a couple errors are fine, just let me know what they are. there are some blog posts that should exist in production right now\r\n- Play around with the list filters on each page to make sure that they work. things like filtering on date, topic, multiple categories, and the like.\r\n- Next, go to a Blog post and make sure that the further reading organism is pulling content if it exists for that tag, and that the View More link goes to the activity log with the appropriate tags selected.\r\n- I think that's it....\r\n\r\n## Review\r\n\r\n- @rosskarchner \r\n- @kave \r\n- @richaagarwal \r\n\r\n## Screenshots\r\nBlog Landing Page\r\n![screen shot 2016-04-18 at 7 20 09 pm](https://cloud.githubusercontent.com/assets/1412978/14622796/972bad3a-059a-11e6-8d40-c34f14955268.png)\r\n\r\n\r\nLegacyBlogPage\r\n![screen shot 2016-04-18 at 7 16 07 pm](https://cloud.githubusercontent.com/assets/1412978/14622711/0c3260e8-059a-11e6-9227-99f82040c5a1.png)\r\n\r\nNewsroom Landing Page (note the side nav. this is pulling in all browse type pages but newsroom is currently not doing this. its a flag in the admin to set it right. Also, theres a child page of Newsroom called press sources that isn't there; more below.)\r\n![screen shot 2016-04-18 at 7 17 13 pm](https://cloud.githubusercontent.com/assets/1412978/14622781/83ec44e6-059a-11e6-9cdd-0576867cf02e.png)\r\n\r\n\r\nLegacyNewsroomPage (same template as blog but this doesn't have further reading content for lack of tags)\r\n![screen shot 2016-04-18 at 7 17 48 pm](https://cloud.githubusercontent.com/assets/1412978/14622749/407902b2-059a-11e6-8ff0-2425074a26d5.png)\r\n\r\nActivity Log pulling in reports alongside blog\r\n![screen shot 2016-04-18 at 7 19 00 pm](https://cloud.githubusercontent.com/assets/1412978/14622771/75429b5c-059a-11e6-95c1-40a9a5672460.png)\r\n\r\n\r\n## Notes\r\n\r\n- @schaferjh Can the Press Sources page (under Newsroom) be a Wagtail page right now?\r\n\r\n## Todos\r\n\r\n- We still need to make the new BlogPage and the new NewsroomPage classes and templates\r\n- Possibly create the Press Sources page\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments/211956180","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1922#issuecomment-211956180","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1922","id":211956180,"user":{"login":"kave","id":254877,"avatar_url":"https://avatars.githubusercontent.com/u/254877?v=3","gravatar_id":"","url":"https://api.github.com/users/kave","html_url":"https://github.com/kave","followers_url":"https://api.github.com/users/kave/followers","following_url":"https://api.github.com/users/kave/following{/other_user}","gists_url":"https://api.github.com/users/kave/gists{/gist_id}","starred_url":"https://api.github.com/users/kave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kave/subscriptions","organizations_url":"https://api.github.com/users/kave/orgs","repos_url":"https://api.github.com/users/kave/repos","events_url":"https://api.github.com/users/kave/events{/privacy}","received_events_url":"https://api.github.com/users/kave/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T14:43:28Z","updated_at":"2016-04-19T14:43:28Z","body":"on this [page](http://localhost:8000/about-us/blog/new-signs-of-trouble-for-student-loan-borrowers) clicking the authors name doesn't redirect to the parent filterable page. It just reloads the page. "}}