{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/2355","repository_url":"https://api.github.com/repos/backdrop/backdrop-issues","labels_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/2355/labels{/name}","comments_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/2355/comments","events_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/2355/events","html_url":"https://github.com/backdrop/backdrop-issues/issues/2355","id":191377983,"number":2355,"title":"[DX] Add a config_del() equivalent of variable_del().","user":{"login":"jenlampton","id":397895,"avatar_url":"https://avatars.githubusercontent.com/u/397895?v=3","gravatar_id":"","url":"https://api.github.com/users/jenlampton","html_url":"https://github.com/jenlampton","followers_url":"https://api.github.com/users/jenlampton/followers","following_url":"https://api.github.com/users/jenlampton/following{/other_user}","gists_url":"https://api.github.com/users/jenlampton/gists{/gist_id}","starred_url":"https://api.github.com/users/jenlampton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenlampton/subscriptions","organizations_url":"https://api.github.com/users/jenlampton/orgs","repos_url":"https://api.github.com/users/jenlampton/repos","events_url":"https://api.github.com/users/jenlampton/events{/privacy}","received_events_url":"https://api.github.com/users/jenlampton/received_events","type":"User","site_admin":false},"labels":[{"id":102804285,"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/audience%20-%20novice","name":"audience - novice","color":"ffffff","default":false},{"id":159653627,"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/pr%20-%20needs%20work","name":"pr - needs work","color":"FFECE8","default":false},{"id":56068268,"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/status%20-%20has%20pull%20request","name":"status - has pull request","color":"d4c5f9","default":false},{"id":159654663,"url":"https://api.github.com/repos/backdrop/backdrop-issues/labels/status%20-%20needs%20feedback","name":"status - needs feedback","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-23T20:55:56Z","updated_at":"2016-12-17T01:11:24Z","closed_at":null,"body":"In our docs we say that varaible_del is [no longer supported](https://api.backdropcms.org/node/28616) but we do not provide a suitable alternative, nor instructions on what to do if you need to replace it. \r\n\r\nAs far as I can tell, what used to be a simple one-liner like this:\r\n```\r\nvariable_del(\"xmlsitemap_settings_{$entity}_{$bundle_old}\");\r\n```\r\nNow needs to look something like this:\r\n```\r\n$config = config('xmlsitemap.settings');\r\n$config->clear(\"xmlsitemap_settings_{$entity}_{$bundle_old}\");\r\n$config->save();\r\n```\r\nBut we did not provide a clean wrapper function `config_del()` that matches Drupal's `variable_del()`.  I think this is an oversight that's caused a DX regression."},"comment":{"url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/comments/267732392","html_url":"https://github.com/backdrop/backdrop-issues/issues/2355#issuecomment-267732392","issue_url":"https://api.github.com/repos/backdrop/backdrop-issues/issues/2355","id":267732392,"user":{"login":"quicksketch","id":100206,"avatar_url":"https://avatars.githubusercontent.com/u/100206?v=3","gravatar_id":"","url":"https://api.github.com/users/quicksketch","html_url":"https://github.com/quicksketch","followers_url":"https://api.github.com/users/quicksketch/followers","following_url":"https://api.github.com/users/quicksketch/following{/other_user}","gists_url":"https://api.github.com/users/quicksketch/gists{/gist_id}","starred_url":"https://api.github.com/users/quicksketch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quicksketch/subscriptions","organizations_url":"https://api.github.com/users/quicksketch/orgs","repos_url":"https://api.github.com/users/quicksketch/repos","events_url":"https://api.github.com/users/quicksketch/events{/privacy}","received_events_url":"https://api.github.com/users/quicksketch/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T01:11:24Z","updated_at":"2016-12-17T01:11:24Z","body":"I would also avoid any abbreviation, \"del\" was used I imagine because it made \"pretty\" function names that were all the same length: variable_get/set/del. If we were to have wrappers for the delete method as well, I would be in favor of naming it `config_delete()` (in addition to `config_clear()` for removing a single value)."}}
{"actor":{"display_login":"quicksketch"}}