)]}'
{"congress/api/library_policy_model.py":[{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"bf9201910cab16ab13dbac658e6b8f6974007bda","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                 dict will also be rendered for the user."},{"line_number":45,"context_line":"        \"\"\""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if \u0027name\u0027 in params:"},{"line_number":48,"context_line":"                # Note(thread-safety): blocking call"},{"line_number":49,"context_line":"                try:"},{"line_number":50,"context_line":"                    policy \u003d self.invoke_rpc("}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_bdb33f0a","line":47,"range":{"start_line":47,"start_character":2,"end_line":47,"end_character":32},"updated":"2017-07-17 03:53:33.000000000","message":"this should be added in get_item right? get_items should return all policies?","commit_id":"56c2732ef71cdcd61706c8b9705ed2a4e3c5ebd5"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"788b4e08805a8389212709b78cb83d8540965ce2","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                 dict will also be rendered for the user."},{"line_number":45,"context_line":"        \"\"\""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if \u0027name\u0027 in params:"},{"line_number":48,"context_line":"                # Note(thread-safety): blocking call"},{"line_number":49,"context_line":"                try:"},{"line_number":50,"context_line":"                    policy \u003d self.invoke_rpc("}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_6a8416b2","line":47,"range":{"start_line":47,"start_character":2,"end_line":47,"end_character":32},"in_reply_to":"1f1a1f67_15bae36c","updated":"2017-07-21 05:51:11.000000000","message":"yes, sounds reasonable to me. please add the comment regarding the same here, that would be good. Thanks","commit_id":"56c2732ef71cdcd61706c8b9705ed2a4e3c5ebd5"},{"author":{"_account_id":18591,"name":"Eric Kao","email":"ekcs.openstack@gmail.com","username":"ekcs"},"change_message_id":"a6ecc4d868e1a7461c734270cf39a45a0bd9bb48","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                 dict will also be rendered for the user."},{"line_number":45,"context_line":"        \"\"\""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if \u0027name\u0027 in params:"},{"line_number":48,"context_line":"                # Note(thread-safety): blocking call"},{"line_number":49,"context_line":"                try:"},{"line_number":50,"context_line":"                    policy \u003d self.invoke_rpc("}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_d6d24600","line":47,"range":{"start_line":47,"start_character":2,"end_line":47,"end_character":32},"in_reply_to":"1f1a1f67_6a8416b2","updated":"2017-07-26 21:41:48.000000000","message":"Great! Explanation added.","commit_id":"56c2732ef71cdcd61706c8b9705ed2a4e3c5ebd5"},{"author":{"_account_id":18591,"name":"Eric Kao","email":"ekcs.openstack@gmail.com","username":"ekcs"},"change_message_id":"d495f238247952f57eba34759fa8f87021136a2c","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                 dict will also be rendered for the user."},{"line_number":45,"context_line":"        \"\"\""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if \u0027name\u0027 in params:"},{"line_number":48,"context_line":"                # Note(thread-safety): blocking call"},{"line_number":49,"context_line":"                try:"},{"line_number":50,"context_line":"                    policy \u003d self.invoke_rpc("}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_15bae36c","line":47,"range":{"start_line":47,"start_character":2,"end_line":47,"end_character":32},"in_reply_to":"1f1a1f67_9f4e1236","updated":"2017-07-18 06:38:58.000000000","message":"The issue is if we put it into get_item, then if we ever relax the restriction for unique names, we have to make backward-incompatible change to API. By putting it in get_items, the API does not promise names to be unique, and API consumer don\u0027t even need to know names are unique.\n\nSecondarily, it seems get_items by name would better fit the expectation of a typical API consumer who generally does not assume names are unique.\n\nWhat do you think?\n\nI can def add more doc if the approach makes sense to you. Thanks!","commit_id":"56c2732ef71cdcd61706c8b9705ed2a4e3c5ebd5"},{"author":{"_account_id":18591,"name":"Eric Kao","email":"ekcs.openstack@gmail.com","username":"ekcs"},"change_message_id":"538093c9165c2c1e3abed8d95cdee9f305e5ef19","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                 dict will also be rendered for the user."},{"line_number":45,"context_line":"        \"\"\""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if \u0027name\u0027 in params:"},{"line_number":48,"context_line":"                # Note(thread-safety): blocking call"},{"line_number":49,"context_line":"                try:"},{"line_number":50,"context_line":"                    policy \u003d self.invoke_rpc("}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_f8d3055f","line":47,"range":{"start_line":47,"start_character":2,"end_line":47,"end_character":32},"in_reply_to":"1f1a1f67_bdb33f0a","updated":"2017-07-17 05:06:28.000000000","message":"Oh maybe I should\u0027ve explained more. I didn\u0027t want to build into the API the assumption that we have unique name in the library. So the API method can take a name parameter and return the list of all library policies with that name. Basically a filter on getting all policies with the name parameter is supplied. In our current system it\u0027d always be 0 or 1.","commit_id":"56c2732ef71cdcd61706c8b9705ed2a4e3c5ebd5"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"50692fabe0d0ad686b69f8bffb562974bc105aae","unresolved":false,"context_lines":[{"line_number":44,"context_line":"                 dict will also be rendered for the user."},{"line_number":45,"context_line":"        \"\"\""},{"line_number":46,"context_line":"        try:"},{"line_number":47,"context_line":"            if \u0027name\u0027 in params:"},{"line_number":48,"context_line":"                # Note(thread-safety): blocking call"},{"line_number":49,"context_line":"                try:"},{"line_number":50,"context_line":"                    policy \u003d self.invoke_rpc("}],"source_content_type":"text/x-python","patch_set":1,"id":"1f1a1f67_9f4e1236","line":47,"range":{"start_line":47,"start_character":2,"end_line":47,"end_character":32},"in_reply_to":"1f1a1f67_f8d3055f","updated":"2017-07-18 04:36:22.000000000","message":"As the functionality is not exposed or supported now to end user, not sure if we have to add this logic here, wouldn\u0027t it be more apt to add it get_item section as it\u0027s 0 or 1? can be moved to here in future when it is supported , wdyt?\n\n\nIf you think its more logical to add here only, can you add a comment here about this functionality , so that it will be easier to understand when we refer.","commit_id":"56c2732ef71cdcd61706c8b9705ed2a4e3c5ebd5"}]}
