{"action":"created","issue":{"url":"https://api.github.com/repos/thredded/thredded/issues/358","repository_url":"https://api.github.com/repos/thredded/thredded","labels_url":"https://api.github.com/repos/thredded/thredded/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/thredded/thredded/issues/358/comments","events_url":"https://api.github.com/repos/thredded/thredded/issues/358/events","html_url":"https://github.com/thredded/thredded/issues/358","id":169550121,"number":358,"title":"when a post is added to a topic should update messageboard_last_topic","user":{"login":"timdiggins","id":18395,"avatar_url":"https://avatars.githubusercontent.com/u/18395?v=3","gravatar_id":"","url":"https://api.github.com/users/timdiggins","html_url":"https://github.com/timdiggins","followers_url":"https://api.github.com/users/timdiggins/followers","following_url":"https://api.github.com/users/timdiggins/following{/other_user}","gists_url":"https://api.github.com/users/timdiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/timdiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdiggins/subscriptions","organizations_url":"https://api.github.com/users/timdiggins/orgs","repos_url":"https://api.github.com/users/timdiggins/repos","events_url":"https://api.github.com/users/timdiggins/events{/privacy}","received_events_url":"https://api.github.com/users/timdiggins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thredded/thredded/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/thredded/thredded/milestones/13","html_url":"https://github.com/thredded/thredded/milestones/v0.6.3","labels_url":"https://api.github.com/repos/thredded/thredded/milestones/13/labels","id":1862496,"number":13,"title":"v0.6.3","description":null,"creator":{"login":"glebm","id":216339,"avatar_url":"https://avatars.githubusercontent.com/u/216339?v=3","gravatar_id":"","url":"https://api.github.com/users/glebm","html_url":"https://github.com/glebm","followers_url":"https://api.github.com/users/glebm/followers","following_url":"https://api.github.com/users/glebm/following{/other_user}","gists_url":"https://api.github.com/users/glebm/gists{/gist_id}","starred_url":"https://api.github.com/users/glebm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebm/subscriptions","organizations_url":"https://api.github.com/users/glebm/orgs","repos_url":"https://api.github.com/users/glebm/repos","events_url":"https://api.github.com/users/glebm/events{/privacy}","received_events_url":"https://api.github.com/users/glebm/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":19,"state":"closed","created_at":"2016-07-04T05:53:45Z","updated_at":"2016-09-16T08:14:42Z","due_on":null,"closed_at":"2016-09-01T18:29:00Z"},"comments":3,"created_at":"2016-08-05T07:58:21Z","updated_at":"2016-09-17T14:37:59Z","closed_at":null,"body":"Currently messageboards' updated_at only reflect topics that have been added or deleted. So if you're looking at a list of messageboards then they are in order of most recent topic addition, rather than most recent activity. The \"last updated at\"  is quite confusing for users in some apps.\r\n\r\nI'd propose that when a post is added to a topic we call `Topic update_messageboard_last_topic` as well as calling update_parent_last_user_and_timestamp.\r\n\r\nIs there a strong argument for the current behaviour, for existing mainapps for example?\r\n\r\nIn terms of implementation, could do this in an after_commit, or in an after_action in the posts_contoller. "},"comment":{"url":"https://api.github.com/repos/thredded/thredded/issues/comments/247776525","html_url":"https://github.com/thredded/thredded/issues/358#issuecomment-247776525","issue_url":"https://api.github.com/repos/thredded/thredded/issues/358","id":247776525,"user":{"login":"timdiggins","id":18395,"avatar_url":"https://avatars.githubusercontent.com/u/18395?v=3","gravatar_id":"","url":"https://api.github.com/users/timdiggins","html_url":"https://github.com/timdiggins","followers_url":"https://api.github.com/users/timdiggins/followers","following_url":"https://api.github.com/users/timdiggins/following{/other_user}","gists_url":"https://api.github.com/users/timdiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/timdiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timdiggins/subscriptions","organizations_url":"https://api.github.com/users/timdiggins/orgs","repos_url":"https://api.github.com/users/timdiggins/repos","events_url":"https://api.github.com/users/timdiggins/events{/privacy}","received_events_url":"https://api.github.com/users/timdiggins/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T14:37:59Z","updated_at":"2016-09-17T14:37:59Z","body":"In order for the messageboard index view to make sense in the case where a post has been deleted, I think the messageboard's updated_at should be the same as the topic's updated_at \r\n\r\n(and if we were going to have a `written_at` or `last_written_at` it should apply to messageboards too)"}}
{"actor":{"display_login":"timdiggins"}}