{"push_id":847413875,"size":7,"distinct_size":7,"ref":"refs/heads/master","head":"0b2ba849210770156d782ad88b81db3e917550be","before":"63bd33f4fcc925631f63aaffa8e3425b290a20f6","commits":[{"sha":"af151be96bc26b48476e96a58b1fb4dd950ff9df","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"Preserve unsaved changes when switching groups\n\nRefactor the drafts service to preserve unsaved edits\nwhen switching groups.\n\nThis rewrites the drafts service so that it can preserve\nunsaved changes for new and existing annotations when\nswitching groups.\n\nFor each annotation, the drafts service now maintains\nan object containing the unsaved changes in addition to\nthe model for the annotation which was being edited.\n\n * For new annotations, the annotation is moved to the current\n   group when switching groups.\n\n * For edits to existing annotations, the unsaved changes are\n   saved to the drafts service.\n\n * When an annotation card is created, switch to editing mode\n   automatically if a draft is present.\n\n * Avoid automatically discarding the draft when an annotation\n   is unloaded. This allows unsaved edits to existing annotations\n   in a group to be restored when switching back to the group.","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/af151be96bc26b48476e96a58b1fb4dd950ff9df"},{"sha":"1eb6bc6a39aa28bd3c72ffa70a20acc85a8428c6","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"Add tests to check use of drafts store and group focus changes in annotation directive","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/1eb6bc6a39aa28bd3c72ffa70a20acc85a8428c6"},{"sha":"735eafd9f04ef226f7969b40eac2c7b14c6161ce","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"Add test for discarding of drafts when annotations are saved\n\nThe logic for handling this case in the controller is slightly\nindirect. The draft is discarded not when the call to update\nthe annotation on the server succeeds but whenever the client\nis notified that an annotation update has been committed,\nsignified via its 'updated' property changing.\n\nThis happens both for saves triggered locally and also\nupdates made in other H instances.","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/735eafd9f04ef226f7969b40eac2c7b14c6161ce"},{"sha":"ff0f2ab9a3832538787b2ed707377376f0d19aa4","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"Fix new drafts being created when signing out\n\nWhen signing out whilst a group is selected and\nunsaved drafts were present, the following would\nhapppen:\n\n 1. User prompted to discard drafts\n\n 2. User accepts prompt and draft store is cleared\n\n 3. Group focus changes and a new draft is created\n\nFix this by only updating a draft when the group\nfocus changes, not creating a new one if it has been removed","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/ff0f2ab9a3832538787b2ed707377376f0d19aa4"},{"sha":"f9258c565bbe49b63ffacb12598f2f893a51ee06","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"drafts.all() -> drafts.unsaved()\n\nUpdate widget-controller following drafts service API change.","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/f9258c565bbe49b63ffacb12598f2f893a51ee06"},{"sha":"a9a9c5d2dbaebd5c3adc210ca075fd2355bc217d","author":{"email":"7d6396062c1c37a442c1ee8b1a738cb51dc63065@gmail.com","name":"Robert Knight"},"message":"Couple of minor simplifications\n\n * Avoid a loop over an array with a single entry\n\n * Avoid an unnecessary variable shared between multiple\n   tests","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/a9a9c5d2dbaebd5c3adc210ca075fd2355bc217d"},{"sha":"0b2ba849210770156d782ad88b81db3e917550be","author":{"email":"75ef9faee755c70589550b513ad881e5a603182c@whiteink.com","name":"Nick Stenning"},"message":"Merge pull request #2689 from robertknight/t152-move_unsaved_annot_to_current_group\n\nAvoid losing unsaved changes to new or existing annotations when switching groups","distinct":true,"url":"https://api.github.com/repos/hypothesis/h/commits/0b2ba849210770156d782ad88b81db3e917550be"}]}