{"action":"closed","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/2446","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/2446/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/2446/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/2446/events","html_url":"https://github.com/conan-io/conan/issues/2446","id":295499637,"number":2446,"title":"Removing config section via API not effective during subsequent calls","user":{"login":"moltob","id":6240478,"avatar_url":"https://avatars3.githubusercontent.com/u/6240478?v=4","gravatar_id":"","url":"https://api.github.com/users/moltob","html_url":"https://github.com/moltob","followers_url":"https://api.github.com/users/moltob/followers","following_url":"https://api.github.com/users/moltob/following{/other_user}","gists_url":"https://api.github.com/users/moltob/gists{/gist_id}","starred_url":"https://api.github.com/users/moltob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moltob/subscriptions","organizations_url":"https://api.github.com/users/moltob/orgs","repos_url":"https://api.github.com/users/moltob/repos","events_url":"https://api.github.com/users/moltob/events{/privacy}","received_events_url":"https://api.github.com/users/moltob/received_events","type":"User","site_admin":false},"labels":[{"id":821746717,"url":"https://api.github.com/repos/conan-io/conan/labels/[in%20review]","name":"[in review]","color":"0000e6","default":false},{"id":293864761,"url":"https://api.github.com/repos/conan-io/conan/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"danimtb","id":10808592,"avatar_url":"https://avatars1.githubusercontent.com/u/10808592?v=4","gravatar_id":"","url":"https://api.github.com/users/danimtb","html_url":"https://github.com/danimtb","followers_url":"https://api.github.com/users/danimtb/followers","following_url":"https://api.github.com/users/danimtb/following{/other_user}","gists_url":"https://api.github.com/users/danimtb/gists{/gist_id}","starred_url":"https://api.github.com/users/danimtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimtb/subscriptions","organizations_url":"https://api.github.com/users/danimtb/orgs","repos_url":"https://api.github.com/users/danimtb/repos","events_url":"https://api.github.com/users/danimtb/events{/privacy}","received_events_url":"https://api.github.com/users/danimtb/received_events","type":"User","site_admin":false},"assignees":[{"login":"danimtb","id":10808592,"avatar_url":"https://avatars1.githubusercontent.com/u/10808592?v=4","gravatar_id":"","url":"https://api.github.com/users/danimtb","html_url":"https://github.com/danimtb","followers_url":"https://api.github.com/users/danimtb/followers","following_url":"https://api.github.com/users/danimtb/following{/other_user}","gists_url":"https://api.github.com/users/danimtb/gists{/gist_id}","starred_url":"https://api.github.com/users/danimtb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimtb/subscriptions","organizations_url":"https://api.github.com/users/danimtb/orgs","repos_url":"https://api.github.com/users/danimtb/repos","events_url":"https://api.github.com/users/danimtb/events{/privacy}","received_events_url":"https://api.github.com/users/danimtb/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/35","html_url":"https://github.com/conan-io/conan/milestone/35","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/35/labels","id":2991467,"number":35,"title":"1.1","description":"","creator":{"login":"lasote","id":3807515,"avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":61,"state":"open","created_at":"2017-12-20T17:22:53Z","updated_at":"2018-02-13T11:14:31Z","due_on":"2018-02-27T08:00:00Z","closed_at":null},"comments":1,"created_at":"2018-02-08T12:48:29Z","updated_at":"2018-02-13T11:14:31Z","closed_at":"2018-02-13T11:14:31Z","author_association":"NONE","body":"Environment:\r\n\r\n* Windows 7/10 Enterprise 64 Bit\r\n* Python 3.6.3\r\n* Conan 1.0.4 (installed from PyPI)\r\n\r\nI am using the API class and noticed that the sequence of the following call leads to inconsistent behavior:\r\n\r\n```python\r\nconan, _, _ = conan_api.ConanAPIV1.factory()\r\nconan.config_rm('proxies')\r\n\r\n# this still prints the proxies section, but it probably should not:\r\n_logger.info(conan._client_cache._conan_config._sections)\r\n\r\n# this fails due to incorrect setting of proxies:\r\nconan.user(name=..., password=..., remote=...)\r\n```\r\n\r\nOn disk the section is actually already gone, but apparently the internal cache is not properly refreshed. As a workaround I can simply re-instantiate the API object right after the ``config_rm`` call.\r\n"}}
{"actor":{"display_login":"danimtb"}}