{"action":"created","issue":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2013","repository_url":"https://api.github.com/repos/pi-hole/pi-hole","labels_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2013/labels{/name}","comments_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2013/comments","events_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2013/events","html_url":"https://github.com/pi-hole/pi-hole/issues/2013","id":300904421,"number":2013,"title":"Deleting a duplicate entry in Block Lists deletes all matching entries.","user":{"login":"mayesidevel","id":11672810,"avatar_url":"https://avatars2.githubusercontent.com/u/11672810?v=4","gravatar_id":"","url":"https://api.github.com/users/mayesidevel","html_url":"https://github.com/mayesidevel","followers_url":"https://api.github.com/users/mayesidevel/followers","following_url":"https://api.github.com/users/mayesidevel/following{/other_user}","gists_url":"https://api.github.com/users/mayesidevel/gists{/gist_id}","starred_url":"https://api.github.com/users/mayesidevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayesidevel/subscriptions","organizations_url":"https://api.github.com/users/mayesidevel/orgs","repos_url":"https://api.github.com/users/mayesidevel/repos","events_url":"https://api.github.com/users/mayesidevel/events{/privacy}","received_events_url":"https://api.github.com/users/mayesidevel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-28T06:12:18Z","updated_at":"2018-02-28T13:42:26Z","closed_at":null,"author_association":"NONE","body":"**In raising this issue, I confirm the following:** `{please fill the checkboxes, e.g: [X]}`\r\n\r\n- [X] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).\r\n- [X] The issue I am reporting can be *replicated*.\r\n- [X] The issue I am reporting isn't a duplicate (see [FAQs](https://github.com/pi-hole/pi-hole/wiki/FAQs), [closed issues](https://github.com/pi-hole/pi-hole/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), and [open issues](https://github.com/pi-hole/pi-hole/issues)).\r\n\r\n**How familiar are you with the the source code relevant to this issue?:**\r\n\r\n1\r\n\r\n---\r\n**Expected behaviour:**\r\n\r\nIf duplicate entries are allowed in Block Lists (possibly not after #1954 is approved?), then deleting duplicate entries in Block Lists should only delete the single entry selected for deletion.\r\n\r\n**Actual behaviour:**\r\n\r\nSelecting a duplicate entry for deletion in Block Lists deletes ALL matching entries.\r\nSee [here](https://imgur.com/a/YNfpY) for screenshots.\r\n\r\n**Steps to reproduce:**\r\n\r\n(This is the procedure followed in the linked screenshots above.)\r\n1. Add duplicate entries to Block List.\r\n2. Delete one of the duplicate entries.\r\n3. Save (only tested without Update).\r\n4. All of the matching entries are gone.\r\n\r\n**Debug token provided by [uploading `pihole -d` log](https://discourse.pi-hole.net/t/the-pihole-command-with-examples/738#debug):**\r\n\r\n`fhomlc82iy`\r\n\r\n**Troubleshooting undertaken, and/or other relevant information:**\r\n\r\nReproduced the issue, and included screenshots linked above."},"comment":{"url":"https://api.github.com/repos/pi-hole/pi-hole/issues/comments/369242557","html_url":"https://github.com/pi-hole/pi-hole/issues/2013#issuecomment-369242557","issue_url":"https://api.github.com/repos/pi-hole/pi-hole/issues/2013","id":369242557,"user":{"login":"DL6ER","id":16748619,"avatar_url":"https://avatars2.githubusercontent.com/u/16748619?v=4","gravatar_id":"","url":"https://api.github.com/users/DL6ER","html_url":"https://github.com/DL6ER","followers_url":"https://api.github.com/users/DL6ER/followers","following_url":"https://api.github.com/users/DL6ER/following{/other_user}","gists_url":"https://api.github.com/users/DL6ER/gists{/gist_id}","starred_url":"https://api.github.com/users/DL6ER/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DL6ER/subscriptions","organizations_url":"https://api.github.com/users/DL6ER/orgs","repos_url":"https://api.github.com/users/DL6ER/repos","events_url":"https://api.github.com/users/DL6ER/events{/privacy}","received_events_url":"https://api.github.com/users/DL6ER/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T13:42:26Z","updated_at":"2018-02-28T13:42:26Z","author_association":"MEMBER","body":"You're right. So we should also add something like `sort -u` somewhere to have duplicates stripped, automatically."}}
{"actor":{"display_login":"DL6ER"}}