{"action":"closed","issue":{"url":"https://api.github.com/repos/jarun/Buku/issues/58","repository_url":"https://api.github.com/repos/jarun/Buku","labels_url":"https://api.github.com/repos/jarun/Buku/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/jarun/Buku/issues/58/comments","events_url":"https://api.github.com/repos/jarun/Buku/issues/58/events","html_url":"https://github.com/jarun/Buku/issues/58","id":173113509,"number":58,"title":"Deleting tags for all bookmarks possible unintended behavior","user":{"login":"wheresmyjetpack","id":13368747,"avatar_url":"https://avatars.githubusercontent.com/u/13368747?v=3","gravatar_id":"","url":"https://api.github.com/users/wheresmyjetpack","html_url":"https://github.com/wheresmyjetpack","followers_url":"https://api.github.com/users/wheresmyjetpack/followers","following_url":"https://api.github.com/users/wheresmyjetpack/following{/other_user}","gists_url":"https://api.github.com/users/wheresmyjetpack/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresmyjetpack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresmyjetpack/subscriptions","organizations_url":"https://api.github.com/users/wheresmyjetpack/orgs","repos_url":"https://api.github.com/users/wheresmyjetpack/repos","events_url":"https://api.github.com/users/wheresmyjetpack/events{/privacy}","received_events_url":"https://api.github.com/users/wheresmyjetpack/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-25T04:50:34Z","updated_at":"2016-08-27T15:48:24Z","closed_at":"2016-08-27T15:48:24Z","body":"When there is more than one tag specified for deletion while deleting tags from all bookmarks, there is some (possibly) unintended behavior. The behavior is that not all tags specified are getting deleted.\r\n\r\nI have only been able to replicate this when all of the following conditions are true:\r\n* when the to-be-deleted string contains more than one tag\r\n* when one of the tags in the to-be-deleted string matches a tag in **only one** bookmark\r\n* one of the following:\r\n  * when at least one bookmark contains multiple tags specified by the string\r\n  * - or - when each specified tag matches a tag for a different bookmark \r\n\r\nIt looks like if the string meets these conditions, then only the last tag in the string is deleted (last tag being the last one alphabetically, after input has been parsed and sorted). If the tag second-to-last in the order is found for a bookmark which also contains the last tag, then this penultimate tag is also deleted. However, if that penultimate tag exists for **other** bookmarks, those instances of the tag are not deleted."}}
{"actor":{"display_login":"jarun"}}