{"push_id":931564209,"size":2,"distinct_size":1,"ref":"refs/heads/master","head":"abcdda5fb57924fdb397f6fd823259cf402b268c","before":"9a5341aad6f2a8b7107432643f20e604db86e451","commits":[{"sha":"2097e225efd0b67c0e5df9cfff2d2011600cfb21","author":{"email":"46f1a0bd5592a2f9244ca321b129902a06b53e03@seanh.cc","name":"Sean Hammond"},"message":"Show the annotation's group not the focused group\n\nIn AnnotationController use domainModel.group instead of\ngroups.focused() to determine which group to display on the annotation.\n\ngroups.focused() works fine as long as the group that the annotation\nbelongs to is always the currently focused group. This is true when in\nthe sidebar, but not on the stream or on individual annotation pages. On\nthose pages the most recently focused group the last time the sidebar\nwas shown is displayed on every annotation, instead of the actual groups\nof the annotations.\n\nThis means that we now need to update the domainModel.group of new\nannotations when the focused group changes, to support this use:\n\n1. Create a new annotation but don't click save yet\n2. Change the focused group\n3. Save the annotation\n\nThe annotation is correctly saved with the currently (and not the\npreviously) focused group, and also after the focused group the name of\nthe newly focused group is displayed on the annotation before it's\nsaved.\n\nFixes #2839.","distinct":false,"url":"https://api.github.com/repos/hypothesis/h/commits/2097e225efd0b67c0e5df9cfff2d2011600cfb21"},{"sha":"abcdda5fb57924fdb397f6fd823259cf402b268c","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"Merge pull request #2854 from hypothesis/2838-fix-wrong-group-shown-on-stream\n\nShow the annotation's group not the focused group","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/abcdda5fb57924fdb397f6fd823259cf402b268c"}]}