{"action":"opened","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/14293","repository_url":"https://api.github.com/repos/grpc/grpc","labels_url":"https://api.github.com/repos/grpc/grpc/issues/14293/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/14293/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/14293/events","html_url":"https://github.com/grpc/grpc/issues/14293","id":293946530,"number":14293,"title":"C++: Provide better API for ResourceQuota","user":{"login":"vjpai","id":8864912,"avatar_url":"https://avatars0.githubusercontent.com/u/8864912?v=4","gravatar_id":"","url":"https://api.github.com/users/vjpai","html_url":"https://github.com/vjpai","followers_url":"https://api.github.com/users/vjpai/followers","following_url":"https://api.github.com/users/vjpai/following{/other_user}","gists_url":"https://api.github.com/users/vjpai/gists{/gist_id}","starred_url":"https://api.github.com/users/vjpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjpai/subscriptions","organizations_url":"https://api.github.com/users/vjpai/orgs","repos_url":"https://api.github.com/users/vjpai/repos","events_url":"https://api.github.com/users/vjpai/events{/privacy}","received_events_url":"https://api.github.com/users/vjpai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"vjpai","id":8864912,"avatar_url":"https://avatars0.githubusercontent.com/u/8864912?v=4","gravatar_id":"","url":"https://api.github.com/users/vjpai","html_url":"https://github.com/vjpai","followers_url":"https://api.github.com/users/vjpai/followers","following_url":"https://api.github.com/users/vjpai/following{/other_user}","gists_url":"https://api.github.com/users/vjpai/gists{/gist_id}","starred_url":"https://api.github.com/users/vjpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjpai/subscriptions","organizations_url":"https://api.github.com/users/vjpai/orgs","repos_url":"https://api.github.com/users/vjpai/repos","events_url":"https://api.github.com/users/vjpai/events{/privacy}","received_events_url":"https://api.github.com/users/vjpai/received_events","type":"User","site_admin":false},"assignees":[{"login":"vjpai","id":8864912,"avatar_url":"https://avatars0.githubusercontent.com/u/8864912?v=4","gravatar_id":"","url":"https://api.github.com/users/vjpai","html_url":"https://github.com/vjpai","followers_url":"https://api.github.com/users/vjpai/followers","following_url":"https://api.github.com/users/vjpai/following{/other_user}","gists_url":"https://api.github.com/users/vjpai/gists{/gist_id}","starred_url":"https://api.github.com/users/vjpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjpai/subscriptions","organizations_url":"https://api.github.com/users/vjpai/orgs","repos_url":"https://api.github.com/users/vjpai/repos","events_url":"https://api.github.com/users/vjpai/events{/privacy}","received_events_url":"https://api.github.com/users/vjpai/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-02T16:31:09Z","updated_at":"2018-02-02T16:31:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Please answer these questions before submitting your issue. \r\n \r\n### Should this be an issue in the gRPC issue tracker?\r\n \r\nYes\r\n\r\n### What version of gRPC and what language are you using?\r\n\r\nMaster, C++ \r\n \r\n### What operating system (Linux, Windows, …) and version?\r\n \r\nN/A\r\n \r\n### What runtime / compiler are you using (e.g. python version or version of gcc)\r\n \r\nN/A\r\n \r\n### What did you do?\r\n\r\nUsed `ResourceQuota`\r\n \r\n### What did you expect to see?\r\n\r\nClear ownership semantics\r\n \r\n### What did you see instead?\r\n \r\n`ResourceQuota` is internally ref-counted without giving an API-level indication of this fact (such as by using `shared_ptr`). Additionally, the `SetResourceQuota` functions take a `const ResourceQuota&` but retain a reference to the underlying internal contents of the object, in apparent violation of a [style guide principle](https://google.github.io/styleguide/cppguide.html#Reference_Arguments)\r\n \r\nCc @slash-lib \r\n\r\n### Anything else we should know about your project / environment?\r\n\r\n"}}
{"actor":{"display_login":"vjpai"}}