)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"270d5291d08898a05c0fa2e8d45077f03d9b2aaf","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"fa69d971_7dd97cf2","updated":"2016-01-11 15:01:13.000000000","message":"The specification says that the changes will be made only for pools and flavors resources. But this commit message says that the changes will be made for all resources which is wrong.","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"52061c6febd32da5c7ac9161207be9bafdd971eb","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     MD NADEEM \u003cmail2nadeem92@gmail.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-01-11 12:42:26 +0530"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"HTTP put improvement for existing resource"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"At zaqar server side, we propose that PUT operation should"},{"line_number":10,"context_line":"be used to create a new resource only, where as PATCH operation"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"da6ed579_d950960d","line":7,"updated":"2016-01-15 01:02:07.000000000","message":"+1 with Eva","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"}],"specs/mitaka/http-put-improvement.rst":[{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"5d70e6adbcf20c5b1e0a255ba78134076aa97839","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Zaqar uses the HTTP PUT method to create resources like (queue, pool, flavor)."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"We introduce some pre-check on request header to get a better response when "},{"line_number":22,"context_line":"user uses PUT operation for an existing resource."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba8a016a_671ee260","line":21,"updated":"2015-11-18 16:35:49.000000000","message":"Remove trailing whitespace","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"20596271e78ee66ec986d17c8e15528c6911e691","unresolved":false,"context_lines":[{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"As of now, when user uses PUT operation for an existing resource,"},{"line_number":28,"context_line":"then the resource get updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exist in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_9696c1ee","line":28,"updated":"2015-11-26 01:29:01.000000000","message":"Change \"resource get\" to \"resource gets\".","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"73b801a8096cc5ae8c26b81e09b42b6e2f511201","unresolved":false,"context_lines":[{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"As of now, when user uses PUT operation for an existing resource,"},{"line_number":28,"context_line":"then the resource get updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exist in"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_521377b8","line":28,"in_reply_to":"9a8ffd7b_9696c1ee","updated":"2015-11-26 08:38:32.000000000","message":"Done","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"20596271e78ee66ec986d17c8e15528c6911e691","unresolved":false,"context_lines":[{"line_number":28,"context_line":"then the resource get updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exist in"},{"line_number":32,"context_line":"the env, then the conflict happens and PUT operation updates the "},{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_d607691a","line":31,"updated":"2015-11-26 01:29:01.000000000","message":"Change \"exist\" to \"exists\".","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"73b801a8096cc5ae8c26b81e09b42b6e2f511201","unresolved":false,"context_lines":[{"line_number":28,"context_line":"then the resource get updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exist in"},{"line_number":32,"context_line":"the env, then the conflict happens and PUT operation updates the "},{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_924a3fc4","line":31,"in_reply_to":"9a8ffd7b_d607691a","updated":"2015-11-26 08:38:32.000000000","message":"Done","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"5d70e6adbcf20c5b1e0a255ba78134076aa97839","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exist in"},{"line_number":32,"context_line":"the env, then the conflict happens and PUT operation updates the "},{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"So user gets confuse and unintentionally the existing resource"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba8a016a_e732d2f1","line":32,"updated":"2015-11-18 16:35:49.000000000","message":"Remove trailing whitespace.  Change \"exist\" to \"exists\".  Expand \"env\" to \"environment\" - no need for brevity here.","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"5d70e6adbcf20c5b1e0a255ba78134076aa97839","unresolved":false,"context_lines":[{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"So user gets confuse and unintentionally the existing resource"},{"line_number":36,"context_line":"get updated. "},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba8a016a_875ae628","line":36,"updated":"2015-11-18 16:35:49.000000000","message":"Remove trailing whitespace.  Change \"user gets confuse\" to \"the user gets confused\".","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"20596271e78ee66ec986d17c8e15528c6911e691","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"We will tackle this conflict in diffrent ways as mentioned"},{"line_number":42,"context_line":"below."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_56e9397f","line":41,"updated":"2015-11-26 01:29:01.000000000","message":"Change \"diffrent\" to \"different\".","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"73b801a8096cc5ae8c26b81e09b42b6e2f511201","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"We will tackle this conflict in diffrent ways as mentioned"},{"line_number":42,"context_line":"below."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_f23b8b36","line":41,"in_reply_to":"9a8ffd7b_56e9397f","updated":"2015-11-26 08:38:32.000000000","message":"Done","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"5d70e6adbcf20c5b1e0a255ba78134076aa97839","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"},{"line_number":45,"context_line":"2. Support HEAD for those resources, like queue/pool/flavor"},{"line_number":46,"context_line":"3. At zaqar client side, do a HEAD pre-check in create method, "},{"line_number":47,"context_line":"   if the resource name is already exists, raise an error"},{"line_number":48,"context_line":"4. At zaqar client side, do a HEAD pre-check in update method,"},{"line_number":49,"context_line":"   if the resource name does not exist, raise an error"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba8a016a_677a6279","line":46,"updated":"2015-11-18 16:35:49.000000000","message":"Remove trailing whitespace","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"5d70e6adbcf20c5b1e0a255ba78134076aa97839","unresolved":false,"context_lines":[{"line_number":52,"context_line":"------------"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"1. Zaqar server return 409 for an existing resource name"},{"line_number":55,"context_line":"   if the new attribute values are different from existing "},{"line_number":56,"context_line":"   resources attribute values, else it will return 204"},{"line_number":57,"context_line":"2. Support HEAD for those resources, like queue/pool/flavor"},{"line_number":58,"context_line":"3. At zaqar client side, do a HEAD pre-check in create method, "}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba8a016a_47963e94","line":55,"updated":"2015-11-18 16:35:49.000000000","message":"Remove trailing whitespace","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":13995,"name":"Nate Johnston","email":"nate.johnston@redhat.com","username":"natejohnston"},"change_message_id":"5d70e6adbcf20c5b1e0a255ba78134076aa97839","unresolved":false,"context_lines":[{"line_number":55,"context_line":"   if the new attribute values are different from existing "},{"line_number":56,"context_line":"   resources attribute values, else it will return 204"},{"line_number":57,"context_line":"2. Support HEAD for those resources, like queue/pool/flavor"},{"line_number":58,"context_line":"3. At zaqar client side, do a HEAD pre-check in create method, "},{"line_number":59,"context_line":"   if the resource name is already exists, raise an exception"},{"line_number":60,"context_line":"   based on point 1"},{"line_number":61,"context_line":"4. At zaqar client side, do a HEAD pre-check in update method,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"ba8a016a_87f666f7","line":58,"updated":"2015-11-18 16:35:49.000000000","message":"Remove trailing whitespace","commit_id":"3936d57689dbdcfa613a75f164efdfcd5fd119a8"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":11,"context_line":"  To test out your formatting, see http://www.tele3.cz/jbar/rest/rest.html"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":14,"context_line":" HTTP put improvement"},{"line_number":15,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"https://blueprints.launchpad.net/zaqar/+spec/http-put-improvement"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_b971c879","line":14,"updated":"2015-11-30 22:10:06.000000000","message":"Should \"put\" here be capitalized, for consistency within this document?","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"https://blueprints.launchpad.net/zaqar/+spec/http-put-improvement"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Zaqar uses the HTTP PUT method to create resources like (queue, pool, flavor)."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"We introduce some pre-check on request header to get a better response when "},{"line_number":22,"context_line":"user uses PUT operation for an existing resource."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_d91ccc15","line":19,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest: s/resources like (queue,/resources (like queue,","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Zaqar uses the HTTP PUT method to create resources like (queue, pool, flavor)."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"We introduce some pre-check on request header to get a better response when "},{"line_number":22,"context_line":"user uses PUT operation for an existing resource."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_19b814e5","line":21,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest: s/some pre-check/pre-checks\n\nSuggest: s/to get a better response/produce intended behavior","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":24,"context_line":"Problem description"},{"line_number":25,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"As of now, when user uses PUT operation for an existing resource,"},{"line_number":28,"context_line":"then the resource gets updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_d9912c54","line":27,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest: s/As of now,/Currently,\n\nSuggest: s/when user/when the user","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":27,"context_line":"As of now, when user uses PUT operation for an existing resource,"},{"line_number":28,"context_line":"then the resource gets updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exists in"},{"line_number":32,"context_line":"the env, then the conflict happens and PUT operation updates the "},{"line_number":33,"context_line":"existing resource."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_9972c448","line":30,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest: s/a use case, where/a use case in which","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":28,"context_line":"then the resource gets updated and a response code 201 is returned."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exists in"},{"line_number":32,"context_line":"the env, then the conflict happens and PUT operation updates the "},{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_79c36039","line":31,"updated":"2015-11-30 22:10:06.000000000","message":"Add a space between \"name\" and \"(for\".\n\nOr: \n\nSuggest: s/a name(for the new resource) which/a name for the new resource that\n\ns/is already exists/already exists","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Imagine a use case, where a user wants to create a new resource and"},{"line_number":31,"context_line":"he/she chooses a name(for the new resource) which is already exists in"},{"line_number":32,"context_line":"the env, then the conflict happens and PUT operation updates the "},{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"So user gets confuse and unintentionally the existing resource"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_f958b08c","line":32,"updated":"2015-11-30 22:10:06.000000000","message":"Instead of:\n\nalready exists in the env, then the conflict happens and PUT operation updates the existing resource.\n\nI would suggest something like:\n\n...already exists.  In this case, the existing resource will be updated and no new resource will be added.","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":33,"context_line":"existing resource."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"So user gets confuse and unintentionally the existing resource"},{"line_number":36,"context_line":"get updated. "},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_59f21c71","line":36,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest removing this sentence if the previous one is changed as suggested.","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":38,"context_line":"Proposed change"},{"line_number":39,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"We will tackle this conflict in different ways as mentioned"},{"line_number":42,"context_line":"below."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_99f8844b","line":41,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest: s/conflict/problem\nSuggest: s/different/several","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":41,"context_line":"We will tackle this conflict in different ways as mentioned"},{"line_number":42,"context_line":"below."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"},{"line_number":45,"context_line":"2. Support HEAD for those resources, like queue/pool/flavor"},{"line_number":46,"context_line":"3. At zaqar client side, do a HEAD pre-check in create method, "},{"line_number":47,"context_line":"   if the resource name is already exists, raise an error"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_59c0dce0","line":44,"updated":"2015-11-30 22:10:06.000000000","message":"Suggest: s/server return 204/server will return a 204","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":42,"context_line":"below."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"},{"line_number":45,"context_line":"2. Support HEAD for those resources, like queue/pool/flavor"},{"line_number":46,"context_line":"3. At zaqar client side, do a HEAD pre-check in create method, "},{"line_number":47,"context_line":"   if the resource name is already exists, raise an error"},{"line_number":48,"context_line":"4. At zaqar client side, do a HEAD pre-check in update method,"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_7980408c","line":45,"updated":"2015-11-30 22:10:06.000000000","message":"Instead of \n\nfor those resources, like queue/pool/flavor\n\nI would suggest something like:\n\nfor resources such as queue, pool, and flavor","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":44,"context_line":"1. Zaqar server return 204 for an existing resource name"},{"line_number":45,"context_line":"2. Support HEAD for those resources, like queue/pool/flavor"},{"line_number":46,"context_line":"3. At zaqar client side, do a HEAD pre-check in create method, "},{"line_number":47,"context_line":"   if the resource name is already exists, raise an error"},{"line_number":48,"context_line":"4. At zaqar client side, do a HEAD pre-check in update method,"},{"line_number":49,"context_line":"   if the resource name does not exist, raise an error"},{"line_number":50,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_94192b7c","line":47,"updated":"2015-11-30 22:10:06.000000000","message":"Instead of:\n\nAt zaqar client side, do a HEAD pre-check in create method, if the resource name is already exists, raise an error\n\nI would suggest something like:\n\nZaqar client will do a HEAD pre-check for a create.  If the resource name already exists, the client will raise an error.\n\n(And analogously for the next sentence.)","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":17711,"name":"Margaret Frances","email":"margaret_frances@cable.comcast.com","username":"margaret-frances"},"change_message_id":"14ae6ab771594400dad77b00ecd179d7fe1e7e18","unresolved":false,"context_lines":[{"line_number":48,"context_line":"4. At zaqar client side, do a HEAD pre-check in update method,"},{"line_number":49,"context_line":"   if the resource name does not exist, raise an error"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"Alternatives"},{"line_number":52,"context_line":"------------"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"1. Zaqar server return 409 for an existing resource name"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_948ccb80","line":51,"updated":"2015-11-30 22:10:06.000000000","message":"What follows seems to be a single alternative with four parts to it.  Can this be clarified?","commit_id":"a8d311c1093c9b47b9006ec58db20cac5c7ba7d4"},{"author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"change_message_id":"24bcbdd4ef60306f5c3d4a8a79c85458d3e74e9e","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Zaqar uses the HTTP PUT method to create resources (like queue, pool, flavor)."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"We introduce some pre-check on request header to get a better response when "},{"line_number":22,"context_line":"user uses PUT operation for an existing resource."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":6,"id":"5a710552_f9adf588","line":21,"updated":"2016-01-05 21:07:27.000000000","message":"trailing whitespace here - can you remove it?","commit_id":"a6f33ef3ed2d149e05da9c0c6045fc5bfedda30a"},{"author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"change_message_id":"24bcbdd4ef60306f5c3d4a8a79c85458d3e74e9e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa69d971_8d4c33c9","line":46,"updated":"2016-01-05 21:07:27.000000000","message":"Rather than expecting all clients everywhere to do a preflight check, I\u0027d much prefer using 409 CONFLICT, or NOT ACCEPTABLE.","commit_id":"a6f33ef3ed2d149e05da9c0c6045fc5bfedda30a"},{"author":{"_account_id":12321,"name":"Ryan Brown","email":"rybrown@redhat.com","username":"ryansb"},"change_message_id":"24bcbdd4ef60306f5c3d4a8a79c85458d3e74e9e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Alternatives"},{"line_number":51,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":6,"id":"fa69d971_8d7513fb","line":48,"updated":"2016-01-05 21:07:27.000000000","message":"For case 4, it seems like it\u0027d make more sense to send the PATCH without a preflight check and have it be rejected as 404, since the resource cannot be found.","commit_id":"a6f33ef3ed2d149e05da9c0c6045fc5bfedda30a"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"9306634e03b92c2c61b9303a9a9eb26a042c1bd7","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":"Zaqar uses the HTTP PUT method to create resources (like queue, pool, flavor)."},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"We introduce some pre-check on request header to get a better response when "},{"line_number":22,"context_line":"user uses PUT operation for an existing resource."},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"Problem description"}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a710552_67173ba4","line":21,"updated":"2015-12-15 03:29:30.000000000","message":"Remove the space.","commit_id":"3e022799ecdfdd2d190665cf135499534fff4611"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"9306634e03b92c2c61b9303a9a9eb26a042c1bd7","unresolved":false,"context_lines":[{"line_number":60,"context_line":"-----------"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Primary assignee:"},{"line_number":63,"context_line":"  Fei Long Wang"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"  MD NADEEM"},{"line_number":66,"context_line":""}],"source_content_type":"text/x-rst","patch_set":7,"id":"5a710552_c7262f16","line":63,"updated":"2015-12-15 03:29:30.000000000","message":"(nit): use launchpad id, and i prefer to add email\n\nflwang  (flwang@catalyst.net.nz)","commit_id":"3e022799ecdfdd2d190665cf135499534fff4611"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"790d8042196de5fa3d0e462b6b1b47b962ef69e2","unresolved":false,"context_lines":[{"line_number":40,"context_line":"We will tackle this issue in several ways as mentioned"},{"line_number":41,"context_line":"below."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_c316d1a6","line":43,"range":{"start_line":43,"start_character":59,"end_line":43,"end_character":63},"updated":"2015-12-18 04:17:06.000000000","message":"Please clarify in what all request will be return 204 and what was the old status code?\n\nIf we do change the existing on released API then it is backward compatibility issue right?","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"bf0526cd8e84274e8fa11003baf55d7594da9064","unresolved":false,"context_lines":[{"line_number":40,"context_line":"We will tackle this issue in several ways as mentioned"},{"line_number":41,"context_line":"below."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_e608a92f","line":43,"range":{"start_line":43,"start_character":59,"end_line":43,"end_character":63},"in_reply_to":"3a7e1126_c316d1a6","updated":"2015-12-18 12:32:08.000000000","message":"+1\nI think you\u0027re right about backward compatibility. Maybe we should make changes only to APIv2 which is unstable now.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"f1177a6dbb60f5e40463430a1532f8b5fd80ee5e","unresolved":false,"context_lines":[{"line_number":40,"context_line":"We will tackle this issue in several ways as mentioned"},{"line_number":41,"context_line":"below."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_dc53c469","line":43,"range":{"start_line":43,"start_character":59,"end_line":43,"end_character":63},"in_reply_to":"3a7e1126_c316d1a6","updated":"2015-12-21 06:15:49.000000000","message":"I will update point 1 with more detail.\n\nWe will keep backward compatibility, and will change the behavior for unstable APIv2 only.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"4a9158e35d09d3861d6c0711271a756dfed26411","unresolved":false,"context_lines":[{"line_number":40,"context_line":"We will tackle this issue in several ways as mentioned"},{"line_number":41,"context_line":"below."},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_7f4285af","line":43,"range":{"start_line":43,"start_character":59,"end_line":43,"end_character":63},"in_reply_to":"3a7e1126_dc53c469","updated":"2015-12-22 11:26:36.000000000","message":"@Fei Long Wang: At Server side, we want PUT method should be used only for create operation and PATCH method for update operation.\n\u003e\u003e So I think in case of existing resource 409 is the more suitable response.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"790d8042196de5fa3d0e462b6b1b47b962ef69e2","unresolved":false,"context_lines":[{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_83ec4990","line":46,"range":{"start_line":46,"start_character":65,"end_line":46,"end_character":70},"updated":"2015-12-18 04:17:06.000000000","message":"Why not server, what happens if users(operator, skd, apps) directly using zaqar API instead of client.\n\nBelow suggestion - \nIf zaqar manage resources with name instead of UUID then DB should through error if create request comes for existing name. As done by Nova etc.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"4a9158e35d09d3861d6c0711271a756dfed26411","unresolved":false,"context_lines":[{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_3f763d06","line":46,"range":{"start_line":46,"start_character":65,"end_line":46,"end_character":70},"in_reply_to":"3a7e1126_83ec4990","updated":"2015-12-22 11:26:36.000000000","message":"@Ghanshyam Mann, What you think if at server side we raise a 409 response for existing resource ie NameConflict?\n\nAnd at client side, to optimize response time, we will first check existence of resource using head() then on the basis of response either go for PUT operation if resource not exists else raise Name conflict exception.\nNote: Presently get() is used to confirm if a resource already exists or not. We will replace it with head() for better response time.\n\u003e\u003ehttps://github.com/openstack/python-zaqarclient/blob/master/zaqarclient/queues/v1/pool.py#L46","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"f1177a6dbb60f5e40463430a1532f8b5fd80ee5e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"1. Zaqar server will return a 204 for an existing resource name"},{"line_number":44,"context_line":"2. Support HEAD for resources such as queue, pool, flavor"},{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_fccec02b","line":46,"range":{"start_line":46,"start_character":65,"end_line":46,"end_character":70},"in_reply_to":"3a7e1126_83ec4990","updated":"2015-12-21 06:15:49.000000000","message":"Agree, we will look into it.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"790d8042196de5fa3d0e462b6b1b47b962ef69e2","unresolved":false,"context_lines":[{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Alternatives"},{"line_number":51,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_03f9394d","line":48,"range":{"start_line":48,"start_character":66,"end_line":48,"end_character":71},"updated":"2015-12-18 04:17:06.000000000","message":"This is not done by zaqar server?\n\nif not then it should be on server side","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"4a9158e35d09d3861d6c0711271a756dfed26411","unresolved":false,"context_lines":[{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Alternatives"},{"line_number":51,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_df45b96e","line":48,"range":{"start_line":48,"start_character":66,"end_line":48,"end_character":71},"in_reply_to":"3a7e1126_03f9394d","updated":"2015-12-22 11:26:36.000000000","message":"@Ghanshyam Mann, At server side we should raise 404 Not Found Exception in this case. Please let me know if you have any concern?\n\nAnd at client side, to optimize response time, we will first check existence of resource using head() then on the basis of response either go for PATCH operation if resource exists else raise Resource Not Found Exception.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"f1177a6dbb60f5e40463430a1532f8b5fd80ee5e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"3. Zaqar client will do a HEAD pre-check for a create (PUT operation),"},{"line_number":46,"context_line":"   if the resource name already exists, the client will raise an error"},{"line_number":47,"context_line":"4. Zaqar client will do a HEAD pre-check for an update (PATCH operation),"},{"line_number":48,"context_line":"   if the resource name does not exists, the client will raise an error"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"Alternatives"},{"line_number":51,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_bcdd98e1","line":48,"range":{"start_line":48,"start_character":66,"end_line":48,"end_character":71},"in_reply_to":"3a7e1126_03f9394d","updated":"2015-12-21 06:15:49.000000000","message":"Agree, we will look into it.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"4a9158e35d09d3861d6c0711271a756dfed26411","unresolved":false,"context_lines":[{"line_number":51,"context_line":"------------"},{"line_number":52,"context_line":"1. Zaqar server will return a 409 for an existing resource name,"},{"line_number":53,"context_line":"   if the value of the new resource attributes are different from"},{"line_number":54,"context_line":"   existing resources, else it will return 204"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Implementation"},{"line_number":57,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_d1104d02","line":54,"range":{"start_line":54,"start_character":43,"end_line":54,"end_character":46},"updated":"2015-12-22 11:26:36.000000000","message":"@Fei Long Wang, I think there is no need to raise 204, I think response should be consistence in all cases.\n\nIf a user use PUT operation, then his intention is to create a resource , no matter if he use same values for attributes of the resource, so here also 409 exception should be raised with a message suggesting like \"use different resource name or use PATCH method to update resource.\"\n\nPlease give your view?","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"790d8042196de5fa3d0e462b6b1b47b962ef69e2","unresolved":false,"context_lines":[{"line_number":73,"context_line":"Work Items"},{"line_number":74,"context_line":"----------"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"1. Change response code from 201 to 204 for existing name"},{"line_number":77,"context_line":"2. Add HEAD support for resources"},{"line_number":78,"context_line":"3. Pre-check header at client side before executing actual operation"},{"line_number":79,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_63a03d44","line":76,"range":{"start_line":76,"start_character":53,"end_line":76,"end_character":57},"updated":"2015-12-18 04:17:06.000000000","message":"Does it create backward incompatibility?","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":18009,"name":"Md Nadeem","email":"mail2nadeem92@gmail.com","username":"mail2nadeem92"},"change_message_id":"f1177a6dbb60f5e40463430a1532f8b5fd80ee5e","unresolved":false,"context_lines":[{"line_number":73,"context_line":"Work Items"},{"line_number":74,"context_line":"----------"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"1. Change response code from 201 to 204 for existing name"},{"line_number":77,"context_line":"2. Add HEAD support for resources"},{"line_number":78,"context_line":"3. Pre-check header at client side before executing actual operation"},{"line_number":79,"context_line":""}],"source_content_type":"text/x-rst","patch_set":8,"id":"3a7e1126_fce560a3","line":76,"range":{"start_line":76,"start_character":53,"end_line":76,"end_character":57},"in_reply_to":"3a7e1126_63a03d44","updated":"2015-12-21 06:15:49.000000000","message":"We will keep backward compatibility, and will change the behavior for unstable APIv2 only.","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"a7292d3ae6c95fbe0812f0b0919d566022389b2b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"  awesome-thing.rst."},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"  Please do not delete any of the sections in this"},{"line_number":7,"context_line":"  template.  If you have nothing to say for a whole section, just write: None"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"  For help with syntax, see http://sphinx-doc.org/rest.html"},{"line_number":10,"context_line":"  To test out your formatting, see http://www.tele3.cz/jbar/rest/rest.html"}],"source_content_type":"text/x-rst","patch_set":10,"id":"1a7b0d38_75904196","line":7,"range":{"start_line":7,"start_character":15,"end_line":7,"end_character":16},"updated":"2015-12-23 05:52:11.000000000","message":"is this required? this paragraph might be removed.","commit_id":"ace25e3d1c35ce531dc0af0a821fd78bd6fdd89d"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"a7292d3ae6c95fbe0812f0b0919d566022389b2b","unresolved":false,"context_lines":[{"line_number":36,"context_line":"response code 201."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"So while creating(PUT operation) a new resource, a user may update an"},{"line_number":39,"context_line":"existing resource."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Imagine a use case in which a user intends to create a new resource."},{"line_number":42,"context_line":"However he/she chooses a name for the new resource that already exists in"}],"source_content_type":"text/x-rst","patch_set":10,"id":"1a7b0d38_d5c7b543","line":39,"range":{"start_line":39,"start_character":17,"end_line":39,"end_character":18},"updated":"2015-12-23 05:52:11.000000000","message":":nit:s/may/might","commit_id":"ace25e3d1c35ce531dc0af0a821fd78bd6fdd89d"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"a7292d3ae6c95fbe0812f0b0919d566022389b2b","unresolved":false,"context_lines":[{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Imagine a use case in which a user intends to create a new resource."},{"line_number":42,"context_line":"However he/she chooses a name for the new resource that already exists in"},{"line_number":43,"context_line":"the env. In this case the existing resource will get update by PUT operation,"},{"line_number":44,"context_line":"where as the user assumes that he/she has sucessfully created a new resource."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"So this will lead to a misconception."}],"source_content_type":"text/x-rst","patch_set":10,"id":"1a7b0d38_155d3de9","line":43,"range":{"start_line":43,"start_character":26,"end_line":43,"end_character":34},"updated":"2015-12-23 05:52:11.000000000","message":":nit:  s/\u0027existing resource will get update by PUT operation where as the user assumes that he/she has sucessfully created a new resource.\u0027/existing resource will be updated instead of creating a new resource.","commit_id":"ace25e3d1c35ce531dc0af0a821fd78bd6fdd89d"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"a7292d3ae6c95fbe0812f0b0919d566022389b2b","unresolved":false,"context_lines":[{"line_number":43,"context_line":"the env. In this case the existing resource will get update by PUT operation,"},{"line_number":44,"context_line":"where as the user assumes that he/she has sucessfully created a new resource."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"So this will lead to a misconception."},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Proposed change"},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"1a7b0d38_f5e671e7","line":46,"range":{"start_line":46,"start_character":17,"end_line":46,"end_character":18},"updated":"2015-12-23 05:52:11.000000000","message":"this will lead to unintended changes of the resource?","commit_id":"ace25e3d1c35ce531dc0af0a821fd78bd6fdd89d"},{"author":{"_account_id":11278,"name":"Anusha Ramineni","email":"anusha.ramineni@india.nec.com","username":"anusha08"},"change_message_id":"a7292d3ae6c95fbe0812f0b0919d566022389b2b","unresolved":false,"context_lines":[{"line_number":68,"context_line":"Alternatives"},{"line_number":69,"context_line":"------------"},{"line_number":70,"context_line":"1. We will change response code from 201 to 204 for PUT operation"},{"line_number":71,"context_line":"   on existing resource"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"Implementation"},{"line_number":74,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":10,"id":"1a7b0d38_95ee0deb","line":71,"range":{"start_line":71,"start_character":15,"end_line":71,"end_character":23},"updated":"2015-12-23 05:52:11.000000000","message":"please specify the disadvantages/advantages of using this alternative over proposed change","commit_id":"ace25e3d1c35ce531dc0af0a821fd78bd6fdd89d"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"f95e63991f191977cc95ec76c5310f7a480745de","unresolved":false,"context_lines":[{"line_number":52,"context_line":"   to either use different resource name or use PATCH operation to update"},{"line_number":53,"context_line":"   existing resource."},{"line_number":54,"context_line":"4. Same as point 3, for update(PATCH) operation, zaqar client firstly call \"HEAD\""},{"line_number":55,"context_line":"   to check if resource exists then it will update it else raise \u003c404\u003e NotFound exception."},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"Alternatives"},{"line_number":58,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":11,"id":"1a7b0d38_894a7182","line":55,"range":{"start_line":55,"start_character":89,"end_line":55,"end_character":90},"updated":"2015-12-23 10:14:14.000000000","message":"Thanks for update. It is little bit not clear that what new resource operation you will introduced and what changes in existing operation. How about something-\n\n1. Existing create resource operation\n - resources name\n - Existing behavior:\n     - PUT used to create and update resource.\n - New behavior:\n     - PUT will only create resource.\n     - If request on existing behavior then 409 will be raised from server side.\n     - Maintain backward compatibility for users of API \u003c v2 versions\n     - Changes in success code?\n     - Changes in error code? (new error code 409?)\n     - Changes in request param?\n     - Changes in response ?\n\n2. Existing update resource operation\n - resources name\n - Existing behavior:\n     - Patch used to update resource.\n - New behavior:\n     - no changes?\n\n3. New resource operation\n - resources name\n - HEAD\n   - success response code.\n   - error response code.\n   - Example of request wit URI\n   - Example of response of HEAD.\n   - from which API versions this will be available?\n\n4. Usage of API with new behavior-\n - \u003chere you can mention how user/zaqar client will use new APIs\u003e\n\nAlso what is actual need of HEAD? can we do it with GET?","commit_id":"9f9459f87990ab2e697350f1cc4f6948a6a90991"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"270d5291d08898a05c0fa2e8d45077f03d9b2aaf","unresolved":false,"context_lines":[{"line_number":47,"context_line":"    Note: Zaqar server throw ResourceDoesNotExist exception for PATCH"},{"line_number":48,"context_line":"    operation on a resource that does not exists."},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    - New behavior:"},{"line_number":51,"context_line":"        - PUT will only create resource."},{"line_number":52,"context_line":"        - PATCH will be the only operation to update resource."},{"line_number":53,"context_line":"        - Zaqar server will throw 409 response code for PUT operation"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa69d971_c5bbfbe3","line":50,"updated":"2016-01-11 15:01:13.000000000","message":"If we will use HEAD: \n\nPlease add an info about HEAD operation at Zaqar Server for these resources. Now I can see a mention of HEAD only in client section.\n\nAlso please describe advantages and disadvantages of adding HEAD operation directly in specification.","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"52061c6febd32da5c7ac9161207be9bafdd971eb","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    - New behavior:"},{"line_number":51,"context_line":"        - PUT will only create resource."},{"line_number":52,"context_line":"        - PATCH will be the only operation to update resource."},{"line_number":53,"context_line":"        - Zaqar server will throw 409 response code for PUT operation"},{"line_number":54,"context_line":"          on existing resource."},{"line_number":55,"context_line":"        - We will maintain backward compatibility for users of API \u003c v2 versions."},{"line_number":56,"context_line":"        - Changes in error code - A new error class \"NameConflict\" will be"}],"source_content_type":"text/x-rst","patch_set":12,"id":"da6ed579_9e11a45f","line":53,"updated":"2016-01-15 01:02:07.000000000","message":"I\u0027m hesitating to agree with this, since it will break the idempotent of PUT method.","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"52061c6febd32da5c7ac9161207be9bafdd971eb","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        - PATCH will be the only operation to update resource."},{"line_number":53,"context_line":"        - Zaqar server will throw 409 response code for PUT operation"},{"line_number":54,"context_line":"          on existing resource."},{"line_number":55,"context_line":"        - We will maintain backward compatibility for users of API \u003c v2 versions."},{"line_number":56,"context_line":"        - Changes in error code - A new error class \"NameConflict\" will be"},{"line_number":57,"context_line":"          introduced in error.py"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"da6ed579_b90b6223","line":55,"range":{"start_line":55,"start_character":0,"end_line":55,"end_character":8},"updated":"2016-01-15 01:02:07.000000000","message":"How?","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"270d5291d08898a05c0fa2e8d45077f03d9b2aaf","unresolved":false,"context_lines":[{"line_number":63,"context_line":"2. At Zaqar Client"},{"line_number":64,"context_line":"    - Resources name: pool, flavor"},{"line_number":65,"context_line":"    - Existing behaviour"},{"line_number":66,"context_line":"        - While creating a resource, GET method used to check its existance."},{"line_number":67,"context_line":"    - New behavior"},{"line_number":68,"context_line":"        - GET will be replaced by HEAD method for better response time."},{"line_number":69,"context_line":""}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa69d971_e56e34ff","line":66,"updated":"2016-01-11 15:01:13.000000000","message":"For pools and flavors in python-zaqarclient during creation of these resources, the GET method is not only used to check existance of the resource, but also to gather resource\u0027s field values, if it already exists. So HEAD operation will not be able to fully replace GET operation.\n\nBut I think that\u0027s a bad behavior and I opened a bug report: https://bugs.launchpad.net/python-zaqarclient/+bug/1532776. If this bug will be considered as valid and fixed, then HEAD operation will be enough to replace GET method.","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"},{"author":{"_account_id":18683,"name":"Eva Balycheva","email":"ubershy@gmail.com","username":"eva"},"change_message_id":"270d5291d08898a05c0fa2e8d45077f03d9b2aaf","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    - Existing behaviour"},{"line_number":66,"context_line":"        - While creating a resource, GET method used to check its existance."},{"line_number":67,"context_line":"    - New behavior"},{"line_number":68,"context_line":"        - GET will be replaced by HEAD method for better response time."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Alternatives"},{"line_number":71,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"fa69d971_5055801b","line":68,"updated":"2016-01-11 15:01:13.000000000","message":"If we will use HEAD:\nPlease describe what will the client exactly do, when HEAD request to the server will return \"resource does not exist\" and \"resource exists\" responses.","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"},{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"52061c6febd32da5c7ac9161207be9bafdd971eb","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    - Existing behaviour"},{"line_number":66,"context_line":"        - While creating a resource, GET method used to check its existance."},{"line_number":67,"context_line":"    - New behavior"},{"line_number":68,"context_line":"        - GET will be replaced by HEAD method for better response time."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"Alternatives"},{"line_number":71,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":12,"id":"da6ed579_79396ad6","line":68,"in_reply_to":"fa69d971_5055801b","updated":"2016-01-15 01:02:07.000000000","message":"Agree with Eva, it\u0027s not a replacement. Given we\u0027re using GET to check the existence, so maybe we don\u0027t really need the HEAD?","commit_id":"b4fc0f0c19fb8889a7067d644b1667343b7a197f"}],"specs/mitaka/index.rst":[{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"790d8042196de5fa3d0e462b6b1b47b962ef69e2","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"3a7e1126_23b23595","updated":"2015-12-18 04:17:06.000000000","message":"Why we need this change, may be accidental :)","commit_id":"c6b5bb1a212ee50ed569a2aa05053cdbae3ddd85"}]}
