)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"24a4f6bf9cbcfe10658bba21cc75bc2881e602f1","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Zhihao Yuan \u003czhihao.yuan@rackspace.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2013-10-08 18:05:05 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"feat(validation): project id length"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I3ebc3c9e04c7a5673083fb384ea6889e69045a99"},{"line_number":10,"context_line":"Closes-Bug: 1233418"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"AAAATH%2F%2Fz90%3D","line":7,"updated":"2013-10-09 14:18:18.000000000","message":"Pls, explain what the patch does. Thanks!","commit_id":"40c595117bdec0523dd8157ec97ada2160146b5e"}],"marconi/common/transport/wsgi/helpers.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"cb1368725dedaa87b6a8e72b3ef0a40a2df4c717","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                 {\u0027queue\u0027: queue, \u0027project\u0027: project})"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        raise falcon.HTTPBadRequest(_(u\u0027Invalid queue identification\u0027),"},{"line_number":71,"context_line":"                                    six.text_type(ex))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"def require_accepts_json(req, resp, params):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2Blow%3D","line":71,"updated":"2013-11-22 19:22:20.000000000","message":"TBH, I\u0027m not entirely comfortable just exposing the exception directly to the user. In my experience, exception messages are often more developer-centric than user-centric. \n\nI understand that in the case of ValidationFailed, care has been taken to provide a user-friendly message. However, this pattern is not universally followed and can cause future contributors to mistakenly think it is OK to simply return the stringified version of any exception in the HTTP response body.\n\nI would prefer it if you added an attribute to the exception class to make it explicit to the reader what is happening. E.g.:\n\n# Explicit\n# NOTE: Attribute name isn\u0027t important; just pick one you like\nex.user_msg\n\nvs.\n\n# Implicit\nsix.text_type(ex)","commit_id":"dc1839752ebc9c3fdb7db1e62f41fdcfeadb51b6"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"81b482e8ded6ac2f711a6e55da3a5119d159ad01","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                 {\u0027queue\u0027: queue, \u0027project\u0027: project})"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        raise falcon.HTTPBadRequest(_(u\u0027Invalid queue identification\u0027),"},{"line_number":71,"context_line":"                                    six.text_type(ex))"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":""},{"line_number":74,"context_line":"def require_accepts_json(req, resp, params):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2BlhI%3D","line":71,"in_reply_to":"AAAATn%2F%2Blow%3D","updated":"2013-11-22 19:29:27.000000000","message":"I think I should just hard code a message here...","commit_id":"dc1839752ebc9c3fdb7db1e62f41fdcfeadb51b6"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"58bdaed0fdf702c49dd72678d9033b156d1c49c4","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        raise falcon.HTTPBadRequest(_(u\u0027Invalid queue identification\u0027),"},{"line_number":83,"context_line":"                                    _(u\u0027The format of the submitted \u0027"},{"line_number":84,"context_line":"                                      u\u0027queue name is not valid.\u0027))"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def require_accepts_json(req, resp, params):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F%2BLeg%3D","line":84,"updated":"2013-11-29 16:44:52.000000000","message":"\"queue name or project id is not valid\"","commit_id":"4fb9cb413450559598033b9439688cc6a3fd61fe"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"14173ce23a7534c923a9dfe18810db51c479c282","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        raise falcon.HTTPBadRequest(_(u\u0027Invalid queue identification\u0027),"},{"line_number":83,"context_line":"                                    _(u\u0027The format of the submitted \u0027"},{"line_number":84,"context_line":"                                      u\u0027queue name is not valid.\u0027))"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def require_accepts_json(req, resp, params):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F%2BLV8%3D","line":84,"in_reply_to":"AAAATn%2F%2BLeg%3D","updated":"2013-11-29 17:11:35.000000000","message":"Done","commit_id":"4fb9cb413450559598033b9439688cc6a3fd61fe"}],"marconi/queues/transport/validation.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"cb1368725dedaa87b6a8e72b3ef0a40a2df4c717","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    if project is not None and len(project) \u003e PROJECT_ID_MAX_LEN:"},{"line_number":59,"context_line":"        raise ValidationFailed("},{"line_number":60,"context_line":"            \u0027Project ids may not be more than 256 characters long.\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    if len(queue) \u003e QUEUE_NAME_MAX_LEN:"},{"line_number":63,"context_line":"        raise ValidationFailed("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2Bllo%3D","line":60,"updated":"2013-11-22 19:22:20.000000000","message":"How about interpolating PROJECT_ID_MAX_LEN rather than hard-coding the number?","commit_id":"dc1839752ebc9c3fdb7db1e62f41fdcfeadb51b6"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"81b482e8ded6ac2f711a6e55da3a5119d159ad01","unresolved":false,"context_lines":[{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    if project is not None and len(project) \u003e PROJECT_ID_MAX_LEN:"},{"line_number":59,"context_line":"        raise ValidationFailed("},{"line_number":60,"context_line":"            \u0027Project ids may not be more than 256 characters long.\u0027)"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    if len(queue) \u003e QUEUE_NAME_MAX_LEN:"},{"line_number":63,"context_line":"        raise ValidationFailed("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2BliA%3D","line":60,"in_reply_to":"AAAATn%2F%2Bllo%3D","updated":"2013-11-22 19:29:27.000000000","message":"Done","commit_id":"dc1839752ebc9c3fdb7db1e62f41fdcfeadb51b6"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"cb1368725dedaa87b6a8e72b3ef0a40a2df4c717","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    if len(queue) \u003e QUEUE_NAME_MAX_LEN:"},{"line_number":63,"context_line":"        raise ValidationFailed("},{"line_number":64,"context_line":"            \u0027Queue names may not be more than 64 characters long.\u0027)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    if not QUEUE_NAME_REGEX.match(queue):"},{"line_number":67,"context_line":"        raise ValidationFailed("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2Bllk%3D","line":64,"updated":"2013-11-22 19:22:20.000000000","message":"See above.","commit_id":"dc1839752ebc9c3fdb7db1e62f41fdcfeadb51b6"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"81b482e8ded6ac2f711a6e55da3a5119d159ad01","unresolved":false,"context_lines":[{"line_number":61,"context_line":""},{"line_number":62,"context_line":"    if len(queue) \u003e QUEUE_NAME_MAX_LEN:"},{"line_number":63,"context_line":"        raise ValidationFailed("},{"line_number":64,"context_line":"            \u0027Queue names may not be more than 64 characters long.\u0027)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    if not QUEUE_NAME_REGEX.match(queue):"},{"line_number":67,"context_line":"        raise ValidationFailed("}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2Blh4%3D","line":64,"in_reply_to":"AAAATn%2F%2Bllk%3D","updated":"2013-11-22 19:29:27.000000000","message":"Done","commit_id":"dc1839752ebc9c3fdb7db1e62f41fdcfeadb51b6"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"58bdaed0fdf702c49dd72678d9033b156d1c49c4","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# only ASCII characters."},{"line_number":36,"context_line":"QUEUE_NAME_REGEX \u003d re.compile(\u0027^[a-zA-Z0-9_\\-]+$\u0027)"},{"line_number":37,"context_line":"QUEUE_NAME_MAX_LEN \u003d 64"},{"line_number":38,"context_line":"PROJECT_ID_MAX_LEN \u003d 256"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class ValidationFailed(ValueError):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F%2BLac%3D","line":38,"updated":"2013-11-29 16:44:52.000000000","message":"I think we could make it 100. AFIK, the project name is limited to 64 and the project id is an uuid. Thoughts?","commit_id":"4fb9cb413450559598033b9439688cc6a3fd61fe"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"5d9c73030962a120fc456367f33c9db1210320d6","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# only ASCII characters."},{"line_number":36,"context_line":"QUEUE_NAME_REGEX \u003d re.compile(\u0027^[a-zA-Z0-9_\\-]+$\u0027)"},{"line_number":37,"context_line":"QUEUE_NAME_MAX_LEN \u003d 64"},{"line_number":38,"context_line":"PROJECT_ID_MAX_LEN \u003d 256"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class ValidationFailed(ValueError):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F%2BFOQ%3D","line":38,"in_reply_to":"AAAATn%2F%2BLWI%3D","updated":"2013-12-02 18:45:26.000000000","message":"Yeah, I meant project id in keystone is an UUID. I should\u0027ve been more explicit.","commit_id":"4fb9cb413450559598033b9439688cc6a3fd61fe"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"14173ce23a7534c923a9dfe18810db51c479c282","unresolved":false,"context_lines":[{"line_number":35,"context_line":"# only ASCII characters."},{"line_number":36,"context_line":"QUEUE_NAME_REGEX \u003d re.compile(\u0027^[a-zA-Z0-9_\\-]+$\u0027)"},{"line_number":37,"context_line":"QUEUE_NAME_MAX_LEN \u003d 64"},{"line_number":38,"context_line":"PROJECT_ID_MAX_LEN \u003d 256"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class ValidationFailed(ValueError):"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAATn%2F%2BLWI%3D","line":38,"in_reply_to":"AAAATn%2F%2BLac%3D","updated":"2013-11-29 17:11:35.000000000","message":"Project id is not defined to be a UUID (client ID is); it\u0027s totally deployment dependent.  I choose 256 the number for no good reason -- just a random but enough boundary check.","commit_id":"4fb9cb413450559598033b9439688cc6a3fd61fe"}]}
