)]}'
{"reference/active-reviewers.rst":[{"author":{"_account_id":964,"name":"Anne Gentle","email":"annegentle@justwriteclick.com","username":"annegentle"},"change_message_id":"6fdf4b4a5774a025af539d7690aa45928c6cbb22","unresolved":false,"context_lines":[{"line_number":3,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"Some tags and, more specifically, metrics require there to be a common agreement"},{"line_number":6,"context_line":"on when a reviewer, most of the time a core member of a team, should be"},{"line_number":7,"context_line":"considered active as far as the project it serves goes. This document"},{"line_number":8,"context_line":"establishes such metrics and the parameters around it."},{"line_number":9,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_a7551f51","line":6,"updated":"2016-07-05 21:51:34.000000000","message":"Apologies but let\u0027s try a revision like so, what do you think?\n\n\nSome tag definitions contain metrics encoded in Python scripts and require common agreement on what metrics indicate activity in a project. The reference definition of an active reviewer is measured through metrics and parameters and defined in Python scripts stored in this repository. The scope of the definition is per project. Often core members are the most active reviewers of patch sets. This document establishes the metrics and the parameters around them.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":8099,"name":"Graham Hayes","email":"gr@ham.ie","username":"graham"},"change_message_id":"f123a696367e69da73cbe3b9ba37726845a537c8","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Goal"},{"line_number":11,"context_line":"----"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":14,"context_line":"performance or any other personal evaluation. This metric is meant to be used"},{"line_number":15,"context_line":"only by the governance team and withing the governance realm as a way to avoid"},{"line_number":16,"context_line":"false positive when evaluating a project\u0027s health."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_e5ee9120","line":14,"range":{"start_line":13,"start_character":56,"end_line":14,"end_character":44},"updated":"2016-07-07 15:45:51.000000000","message":"Well, should Reviewers not be held to this standard?\n\nIf a project is going to be penalised for reviews not meeting these metrics, the project should be allowed use it to make judgements about reviewers.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"3decf678dcc3a6f5c53992fdb221d40c17502c44","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Goal"},{"line_number":11,"context_line":"----"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":14,"context_line":"performance or any other personal evaluation. This metric is meant to be used"},{"line_number":15,"context_line":"only by the governance team and withing the governance realm as a way to avoid"},{"line_number":16,"context_line":"false positive when evaluating a project\u0027s health."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_0ed74224","line":14,"range":{"start_line":13,"start_character":56,"end_line":14,"end_character":44},"in_reply_to":"1aa78d24_e5ee9120","updated":"2016-07-08 14:55:57.000000000","message":"I don\u0027t mind projects using these metrics. What I think shouldn\u0027t be done is *EVALUATING* personal performance. I\u0027d expect PTLs to be able to draw they our conclusions and talk to the members of the team.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":964,"name":"Anne Gentle","email":"annegentle@justwriteclick.com","username":"annegentle"},"change_message_id":"6fdf4b4a5774a025af539d7690aa45928c6cbb22","unresolved":false,"context_lines":[{"line_number":13,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":14,"context_line":"performance or any other personal evaluation. This metric is meant to be used"},{"line_number":15,"context_line":"only by the governance team and withing the governance realm as a way to avoid"},{"line_number":16,"context_line":"false positive when evaluating a project\u0027s health."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Threshold"},{"line_number":19,"context_line":"---------"}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_169f07b5","line":16,"updated":"2016-07-05 21:51:34.000000000","message":"I like this goal statement -- perhaps move it to the first sentence to state the positive first, then state the anti-use.\n\nAlso, withing should be within.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":10343,"name":"Jim Rollenhagen","email":"jim@jimrollenhagen.com","username":"jimrollenhagen"},"change_message_id":"7a1e17faaaf15301ecd89cd9736cf59e6cc376e8","unresolved":false,"context_lines":[{"line_number":19,"context_line":"---------"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_565b4f2e","line":22,"updated":"2016-07-05 20:31:41.000000000","message":"in what timeframe?","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"076d18eb6b9916cd1a8432ffc8d41b39c460dcb4","unresolved":false,"context_lines":[{"line_number":19,"context_line":"---------"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_56806f46","line":22,"in_reply_to":"1aa78d24_565b4f2e","updated":"2016-07-05 20:35:21.000000000","message":"good point. The current timeframe is 6 months. Will incorporate.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":8099,"name":"Graham Hayes","email":"gr@ham.ie","username":"graham"},"change_message_id":"f123a696367e69da73cbe3b9ba37726845a537c8","unresolved":false,"context_lines":[{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":1,"id":"1aa78d24_8544ed49","line":24,"updated":"2016-07-07 15:45:51.000000000","message":"This should be a very clear list like so:\n\n* 30 Reviews\n* 6 patches\n* Over 6 months\n** The 6 Months are defined as (from the beginning of the last cycle, to the start of this cycle|the last 6 calendar months)\n\nIn a narrative form it is much harder to grok the important metrics.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":964,"name":"Anne Gentle","email":"annegentle@justwriteclick.com","username":"annegentle"},"change_message_id":"6fdf4b4a5774a025af539d7690aa45928c6cbb22","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"1aa78d24_a796bf49","line":25,"updated":"2016-07-05 21:51:34.000000000","message":"30 reviews per six months\n\nAnd, uh, help me interpret the code... is the definition also six patches per six months? \n\nDo the six months line up precisely with release dates? If that is the intent, state it clearly here.","commit_id":"8fd9f6655d021f224034160ea2cb9f54354b9994"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"540b1463482525495ea83dcba23885590ae2e6c3","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Goal"},{"line_number":11,"context_line":"----"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":14,"context_line":"performance or any other personal evaluation. This metric is meant to be used"},{"line_number":15,"context_line":"only by the governance team and withing the governance realm as a way to avoid"},{"line_number":16,"context_line":"false positive when evaluating a project\u0027s health."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_8b120e57","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":46},"updated":"2016-07-08 11:39:16.000000000","message":"There! you said it. Now it will be used for just this ...\n\nThere is no way you can enforce this so it is just as good to remove the sentence and state what you intend to use it for :)","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":8099,"name":"Graham Hayes","email":"gr@ham.ie","username":"graham"},"change_message_id":"8f2dfad911f5275c549c36b7eb5976ce2b426472","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Goal"},{"line_number":11,"context_line":"----"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":14,"context_line":"performance or any other personal evaluation. This metric is meant to be used"},{"line_number":15,"context_line":"only by the governance team and withing the governance realm as a way to avoid"},{"line_number":16,"context_line":"false positive when evaluating a project\u0027s health."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_aff555cc","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":46},"in_reply_to":"1aa78d24_8b120e57","updated":"2016-07-08 12:12:35.000000000","message":"Comment from PS 1 still stands.","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"417aefede79e636f698bacf6151ab4f3ee9b02ea","unresolved":false,"context_lines":[{"line_number":10,"context_line":"Goal"},{"line_number":11,"context_line":"----"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":14,"context_line":"performance or any other personal evaluation. This metric is meant to be used"},{"line_number":15,"context_line":"only by the governance team and withing the governance realm as a way to avoid"},{"line_number":16,"context_line":"false positive when evaluating a project\u0027s health."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_9136b3e5","line":14,"range":{"start_line":13,"start_character":0,"end_line":14,"end_character":46},"in_reply_to":"1aa78d24_aff555cc","updated":"2016-07-08 15:12:45.000000000","message":"I\u0027m happy to remove this sentence if other people feel strong about it. My opinion is that it is better to express these \"restrictions\" explicitly even if there\u0027s a chance people will misuse these metrics. Not mentioning it feels like omitting something important and I\u0027m personally not comfortable with that.\n\nI do not intend to enforce it but I want to have a place that we can point people to and say: \"There, it was clearly written there\"\n\n(pretty much like the questions on TSA\u0027s immigration form ;)","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"540b1463482525495ea83dcba23885590ae2e6c3","unresolved":false,"context_lines":[{"line_number":18,"context_line":"Threshold"},{"line_number":19,"context_line":"---------"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_ab470a4a","line":21,"updated":"2016-07-08 11:39:16.000000000","message":"what about commits?\n\nwhat about zero score reviews (there ARE statistics in the stats response that CAN be used; just that stackalytics doesn\u0027t use them)?\n\nwhat about commits to infra or governance in support of a project(s) releases?\n\nwhat about triaging bugs?\n\nin your experience as a PTL and as a core reviewer, think back to the amount of time you spent on writing code, reviewing others code, and doing other things in service of a project and think whether you are proposing a metric that fairly represents your own activity.","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"417aefede79e636f698bacf6151ab4f3ee9b02ea","unresolved":false,"context_lines":[{"line_number":18,"context_line":"Threshold"},{"line_number":19,"context_line":"---------"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_b1cdaf88","line":21,"in_reply_to":"1aa78d24_ab470a4a","updated":"2016-07-08 15:12:45.000000000","message":"All good points, Amrith. These are things I\u0027d like to evaluate separately as I hardly believe we\u0027ll all be able to agree on all of them in a single patch.\n\nThe zero score reviews is an excellent point that I\u0027d like to investigate a bit more on and see how we can introduce it in the metrics.\n\nAs far as commits and other metrics go, I\u0027m a bit hesitant to add them in this patch as it defines an active reviewer and not an active contributor to a project. These are all important metrics and they are taken into account in other parts of the stats but not specifically in the core evaluation (or reviews evaluation) as it all comes down to what\u0027s going on in gerrit.","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"540b1463482525495ea83dcba23885590ae2e6c3","unresolved":false,"context_lines":[{"line_number":19,"context_line":"---------"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_4ba4a607","line":22,"range":{"start_line":22,"start_character":74,"end_line":22,"end_character":76},"updated":"2016-07-08 11:39:16.000000000","message":"30 a day sounds good to me. did you mean 30 an hour?\n\nkidding. you need to specify a period over which you will measure the 30.","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"417aefede79e636f698bacf6151ab4f3ee9b02ea","unresolved":false,"context_lines":[{"line_number":19,"context_line":"---------"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_f14a9754","line":22,"range":{"start_line":22,"start_character":74,"end_line":22,"end_character":76},"in_reply_to":"1aa78d24_4ba4a607","updated":"2016-07-08 15:12:45.000000000","message":"lol, yeah! next PS makes the timeframe clear :D","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":8099,"name":"Graham Hayes","email":"gr@ham.ie","username":"graham"},"change_message_id":"8f2dfad911f5275c549c36b7eb5976ce2b426472","unresolved":false,"context_lines":[{"line_number":21,"context_line":"Based on the recent growth of our community, the amount of cross-project efforts"},{"line_number":22,"context_line":"and the constant encouragement for collaborations throughout OpenStack, **30** is"},{"line_number":23,"context_line":"considered to be a sufficient minimum number that is required for a reviewer to"},{"line_number":24,"context_line":"be considered active in a project."}],"source_content_type":"text/x-rst","patch_set":2,"id":"1aa78d24_8f0e99e3","line":24,"updated":"2016-07-08 12:12:35.000000000","message":"Again, this should be a list, not in a sentence.","commit_id":"ddecbcd3e798413ba41f2cf6ae856e56a03078ac"},{"author":{"_account_id":6547,"name":"Andreas Jaeger","email":"jaegerandi@gmail.com","username":"jaegerandi"},"change_message_id":"0fae23a0d3f904eeb328e90a2a47d72777362d5f","unresolved":false,"context_lines":[{"line_number":14,"context_line":""},{"line_number":15,"context_line":"This metric is not used - and it should never be used - to evaluate reviewers"},{"line_number":16,"context_line":"performance or any other personal evaluation. This metric is meant to be used by"},{"line_number":17,"context_line":"the governance team and withing the governance realm as a way to avoid false"},{"line_number":18,"context_line":"positive when evaluating a project\u0027s health."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Threshold"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1aa78d24_e43ce9c9","line":17,"range":{"start_line":17,"start_character":24,"end_line":17,"end_character":31},"updated":"2016-07-13 06:16:51.000000000","message":"typo: within","commit_id":"2c561338ad44532893747e1260deef4d3f2aa51f"},{"author":{"_account_id":308,"name":"Thierry Carrez","email":"thierry@openstack.org","username":"ttx"},"change_message_id":"6b20c77c2416470d33bc649b928593eeb95ff5e1","unresolved":false,"context_lines":[{"line_number":23,"context_line":"The criteria used to evaluate active members activity is:"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"* Reviewed at least 30 reviews over the last 6 months"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Reviewed at least 5% of the proposed changes over the last 6 months"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"The 6 months period is evaluate from the moment the script is executed and it\u0027s"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1aa78d24_d61bbfc8","line":26,"updated":"2016-07-11 15:56:36.000000000","message":"missing \u0027OR\u0027 here ?","commit_id":"2c561338ad44532893747e1260deef4d3f2aa51f"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"7ae836b5281f74a0eddd4497ca864ba83e824eb7","unresolved":false,"context_lines":[{"line_number":23,"context_line":"The criteria used to evaluate active members activity is:"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"* Reviewed at least 30 reviews over the last 6 months"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Reviewed at least 5% of the proposed changes over the last 6 months"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"The 6 months period is evaluate from the moment the script is executed and it\u0027s"}],"source_content_type":"text/x-rst","patch_set":3,"id":"1aa78d24_9afabebb","line":26,"in_reply_to":"1aa78d24_d61bbfc8","updated":"2016-07-12 15:12:14.000000000","message":"yeah. I meant this as OR but I\u0027ll make it explicit.","commit_id":"2c561338ad44532893747e1260deef4d3f2aa51f"}],"tools/teamstats.py":[{"author":{"_account_id":6547,"name":"Andreas Jaeger","email":"jaegerandi@gmail.com","username":"jaegerandi"},"change_message_id":"0fae23a0d3f904eeb328e90a2a47d72777362d5f","unresolved":false,"context_lines":[{"line_number":78,"context_line":"                           six_months)).json()[\u0027stats\u0027][0][\u0027id\u0027]"},{"line_number":79,"context_line":"        companies.setdefault(company, {\u0027reviewers\u0027: 0, \u0027reviews\u0027: 0})"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        if eng[\u0027metric\u0027] \u003e\u003d MIN_REVIEWS:"},{"line_number":82,"context_line":"            companies[company][\u0027reviews\u0027] +\u003d eng[\u0027metric\u0027]"},{"line_number":83,"context_line":"            companies[company][\u0027reviewers\u0027] +\u003d 1"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_0445b541","line":81,"updated":"2016-07-13 06:16:51.000000000","message":"Where is the 5 % rule implemented?","commit_id":"2c561338ad44532893747e1260deef4d3f2aa51f"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"15ee06fb8de7b6a42d364ba7135eed757d9c4ed4","unresolved":false,"context_lines":[{"line_number":78,"context_line":"                           six_months)).json()[\u0027stats\u0027][0][\u0027id\u0027]"},{"line_number":79,"context_line":"        companies.setdefault(company, {\u0027reviewers\u0027: 0, \u0027reviews\u0027: 0})"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        if eng[\u0027metric\u0027] \u003e\u003d MIN_REVIEWS:"},{"line_number":82,"context_line":"            companies[company][\u0027reviews\u0027] +\u003d eng[\u0027metric\u0027]"},{"line_number":83,"context_line":"            companies[company][\u0027reviewers\u0027] +\u003d 1"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"1aa78d24_4be861b3","line":81,"in_reply_to":"1aa78d24_0445b541","updated":"2016-07-13 09:58:17.000000000","message":"pls, read my last comment. I held off modifying this file while the discussion evolves. I\u0027ll probably get to it today/tomorrow.","commit_id":"2c561338ad44532893747e1260deef4d3f2aa51f"},{"author":{"_account_id":8099,"name":"Graham Hayes","email":"gr@ham.ie","username":"graham"},"change_message_id":"db4627273a924002d1d9690c02ef0b487dea072e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                           six_months)).json()[\u0027stats\u0027][0][\u0027id\u0027]"},{"line_number":111,"context_line":"        companies.setdefault(company, {\u0027reviewers\u0027: 0, \u0027reviews\u0027: 0})"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        if eng[\u0027metric\u0027] \u003e\u003d MIN_REVIEWS or eng[\u0027metric\u0027] \u003e\u003d min_percent:"},{"line_number":114,"context_line":"            companies[company][\u0027reviews\u0027] +\u003d eng[\u0027metric\u0027]"},{"line_number":115,"context_line":"            companies[company][\u0027reviewers\u0027] +\u003d 1"},{"line_number":116,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1aa78d24_80165156","line":113,"updated":"2016-07-14 17:00:17.000000000","message":"Should this be reviewed 5% of the changes, or has a number of reviews that is \u003e\u003d  5% of the number of proposed commits ?\n(aka - if a repo had 100 commits, would 4 reviews to one change, and 1 to another be enough? )","commit_id":"ff36c87d7d557eb9bb344fe6bf8b3138a9d31bcc"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"dc71e922d00cfe9cd617b7864044587e830cdd15","unresolved":false,"context_lines":[{"line_number":110,"context_line":"                           six_months)).json()[\u0027stats\u0027][0][\u0027id\u0027]"},{"line_number":111,"context_line":"        companies.setdefault(company, {\u0027reviewers\u0027: 0, \u0027reviews\u0027: 0})"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"        if eng[\u0027metric\u0027] \u003e\u003d MIN_REVIEWS or eng[\u0027metric\u0027] \u003e\u003d min_percent:"},{"line_number":114,"context_line":"            companies[company][\u0027reviews\u0027] +\u003d eng[\u0027metric\u0027]"},{"line_number":115,"context_line":"            companies[company][\u0027reviewers\u0027] +\u003d 1"},{"line_number":116,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1aa78d24_d6591690","line":113,"in_reply_to":"1aa78d24_80165156","updated":"2016-07-15 12:36:40.000000000","message":"That\u0027s a good question. The current code proposes the latter. That is, it counts the total number of reviewes regardless of whether they were made to the same review.\n\nIn my opinion, it\u0027s fine as it is. I don\u0027t want to over-complicate this metric and I believe it sets the bar high enough.","commit_id":"ff36c87d7d557eb9bb344fe6bf8b3138a9d31bcc"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"75fbf79b2db8c166a4500cbff14949b0d14ce4c0","unresolved":false,"context_lines":[{"line_number":33,"context_line":"# NOTE(flaper87): This value affects both, single-vendor and diverse-affiliation"},{"line_number":34,"context_line":"# tags and it\u0027s been tuned to a reasonable enough threshold to measure reviews"},{"line_number":35,"context_line":"# activeness. Changes to this value must be discussed separately."},{"line_number":36,"context_line":"MIN_PERCENTAGE_REVIEWS \u003d 0.02  # 2%"},{"line_number":37,"context_line":"MIN_REVIEWS \u003d 30"},{"line_number":38,"context_line":"MIN_COMMITS \u003d 6"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_6d9a1270","line":36,"range":{"start_line":36,"start_character":31,"end_line":36,"end_character":35},"updated":"2016-07-25 14:38:27.000000000","message":"I think most people realize that :)","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"32649584163f0bb7579fedce34f0716b66a3b4b8","unresolved":false,"context_lines":[{"line_number":33,"context_line":"# NOTE(flaper87): This value affects both, single-vendor and diverse-affiliation"},{"line_number":34,"context_line":"# tags and it\u0027s been tuned to a reasonable enough threshold to measure reviews"},{"line_number":35,"context_line":"# activeness. Changes to this value must be discussed separately."},{"line_number":36,"context_line":"MIN_PERCENTAGE_REVIEWS \u003d 0.02  # 2%"},{"line_number":37,"context_line":"MIN_REVIEWS \u003d 30"},{"line_number":38,"context_line":"MIN_COMMITS \u003d 6"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_d382c0ff","line":36,"range":{"start_line":36,"start_character":31,"end_line":36,"end_character":35},"in_reply_to":"dada55a8_6d9a1270","updated":"2016-07-25 15:01:55.000000000","message":"you\u0027d be surprised ;)","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"034d46822616dbdfc9dfbc50e550dc9c1456f8cf","unresolved":false,"context_lines":[{"line_number":33,"context_line":"# NOTE(flaper87): This value affects both, single-vendor and diverse-affiliation"},{"line_number":34,"context_line":"# tags and it\u0027s been tuned to a reasonable enough threshold to measure reviews"},{"line_number":35,"context_line":"# activeness. Changes to this value must be discussed separately."},{"line_number":36,"context_line":"MIN_PERCENTAGE_REVIEWS \u003d 0.02  # 2%"},{"line_number":37,"context_line":"MIN_REVIEWS \u003d 30"},{"line_number":38,"context_line":"MIN_COMMITS \u003d 6"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_edacf4a0","line":36,"range":{"start_line":36,"start_character":31,"end_line":36,"end_character":35},"in_reply_to":"dada55a8_d382c0ff","updated":"2016-07-26 17:43:25.000000000","message":"The other change says 5%, I guess we are going for 2%?\nhttps://review.openstack.org/#/c/342225/5/reference/active-reviewers.rst@27","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"e586224b1a3a5da2cd5d5ee40ea81350c46971ec","unresolved":false,"context_lines":[{"line_number":33,"context_line":"# NOTE(flaper87): This value affects both, single-vendor and diverse-affiliation"},{"line_number":34,"context_line":"# tags and it\u0027s been tuned to a reasonable enough threshold to measure reviews"},{"line_number":35,"context_line":"# activeness. Changes to this value must be discussed separately."},{"line_number":36,"context_line":"MIN_PERCENTAGE_REVIEWS \u003d 0.02  # 2%"},{"line_number":37,"context_line":"MIN_REVIEWS \u003d 30"},{"line_number":38,"context_line":"MIN_COMMITS \u003d 6"},{"line_number":39,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_63093484","line":36,"range":{"start_line":36,"start_character":31,"end_line":36,"end_character":35},"in_reply_to":"dada55a8_d382c0ff","updated":"2016-07-26 18:54:57.000000000","message":"The variable name is MIN_PERCENTAGE_REVIEWS so I would actually have interpreted this as 0.02%. Thanks for the clarifying comment.","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"e586224b1a3a5da2cd5d5ee40ea81350c46971ec","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    @functools.wraps(func)"},{"line_number":45,"context_line":"    def memoized(*args, **kwargs):"},{"line_number":46,"context_line":"        key \u003d (args, tuple(kwargs.items()))"},{"line_number":47,"context_line":"        try:"},{"line_number":48,"context_line":"            return cache[key]"},{"line_number":49,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_435cf07c","line":46,"updated":"2016-07-26 18:54:57.000000000","message":"The order of the return values of items() is not guaranteed to be consistent. You should probably sort on the key if you\u0027re going to use this as a key in a dictionary to avoid a bunch of overhead. You won\u0027t get the *wrong* answers this way, it\u0027ll just end up doing more work more often.","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"8ef8dcd63242c3700b0c7004f974299cebd06149","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    @functools.wraps(func)"},{"line_number":45,"context_line":"    def memoized(*args, **kwargs):"},{"line_number":46,"context_line":"        key \u003d (args, tuple(kwargs.items()))"},{"line_number":47,"context_line":"        try:"},{"line_number":48,"context_line":"            return cache[key]"},{"line_number":49,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_8cf6158d","line":46,"in_reply_to":"dada55a8_435cf07c","updated":"2016-07-26 19:57:37.000000000","message":"mmh, I actually uploaded the version w/o the sorted call by mistake... #dumb\n\nI\u0027ll propose a follow-up patch refactoring this code a bit and incorporating Amrith\u0027s and John\u0027s comments.","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"034d46822616dbdfc9dfbc50e550dc9c1456f8cf","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    team_stats \u003d {}"},{"line_number":67,"context_line":"    group \u003d \"%s-group\" % team.lower()"},{"line_number":68,"context_line":"    commits_total \u003d _get_number_of_commits(group)"},{"line_number":69,"context_line":"    min_percent \u003d int(commits_total * MIN_PERCENTAGE_REVIEWS)"},{"line_number":70,"context_line":"    reviews \u003d s.get(\u0027http://stackalytics.com/api/\u0027"},{"line_number":71,"context_line":"                    \u00271.0/stats/engineers?metric\u003dmarks\u0026release\u003dall\u0027"},{"line_number":72,"context_line":"                    \u0027\u0026start_date\u003d%s\u0026project_type\u003dall\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_4d4c2042","line":69,"range":{"start_line":69,"start_character":18,"end_line":69,"end_character":61},"updated":"2016-07-26 17:43:25.000000000","message":"Nit: ln76 is a little non-obvious, could this be something like:\n\n commit_based_threshold \u003d int(commits_total * MIN_PERCENTAGE_REVIEWS)\n min_reviews \u003d min(MIN_REVIEWS, commit_based_threshold)\n\nSomething tells me I am overthinking this...","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"034d46822616dbdfc9dfbc50e550dc9c1456f8cf","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    team_stats \u003d {}"},{"line_number":67,"context_line":"    group \u003d \"%s-group\" % team.lower()"},{"line_number":68,"context_line":"    commits_total \u003d _get_number_of_commits(group)"},{"line_number":69,"context_line":"    min_percent \u003d int(commits_total * MIN_PERCENTAGE_REVIEWS)"},{"line_number":70,"context_line":"    reviews \u003d s.get(\u0027http://stackalytics.com/api/\u0027"},{"line_number":71,"context_line":"                    \u00271.0/stats/engineers?metric\u003dmarks\u0026release\u003dall\u0027"},{"line_number":72,"context_line":"                    \u0027\u0026start_date\u003d%s\u0026project_type\u003dall\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_cdd01056","line":69,"range":{"start_line":69,"start_character":4,"end_line":69,"end_character":15},"updated":"2016-07-26 17:43:25.000000000","message":"Nit: this reads like its a percent, but its actually a number of commits. Maybe this could be commit_based_threshold or something?","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"b538daf8579a61700b5a32b12a9c4b2817ab5d24","unresolved":false,"context_lines":[{"line_number":66,"context_line":"    team_stats \u003d {}"},{"line_number":67,"context_line":"    group \u003d \"%s-group\" % team.lower()"},{"line_number":68,"context_line":"    commits_total \u003d _get_number_of_commits(group)"},{"line_number":69,"context_line":"    min_percent \u003d int(commits_total * MIN_PERCENTAGE_REVIEWS)"},{"line_number":70,"context_line":"    reviews \u003d s.get(\u0027http://stackalytics.com/api/\u0027"},{"line_number":71,"context_line":"                    \u00271.0/stats/engineers?metric\u003dmarks\u0026release\u003dall\u0027"},{"line_number":72,"context_line":"                    \u0027\u0026start_date\u003d%s\u0026project_type\u003dall\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_ed3cf4e2","line":69,"range":{"start_line":69,"start_character":18,"end_line":69,"end_character":61},"in_reply_to":"dada55a8_4d4c2042","updated":"2016-07-26 17:44:28.000000000","message":"I mean max, oops.","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"},{"author":{"_account_id":782,"name":"John Garbutt","email":"john@johngarbutt.com","username":"johngarbutt"},"change_message_id":"034d46822616dbdfc9dfbc50e550dc9c1456f8cf","unresolved":false,"context_lines":[{"line_number":91,"context_line":"@_memoize"},{"line_number":92,"context_line":"def get_core_reviews_by_company(group):"},{"line_number":93,"context_line":"    # reviews by individual"},{"line_number":94,"context_line":"    commits_total \u003d _get_number_of_commits(group)"},{"line_number":95,"context_line":"    min_percent \u003d int(commits_total * MIN_PERCENTAGE_REVIEWS)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    reviews \u003d s.get(\u0027http://stackalytics.com/api/\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_8d90d8ee","line":94,"updated":"2016-07-26 17:43:25.000000000","message":"Nit: duplication.","commit_id":"73d58516f72e8d9d10b6d3e2120214b31a43a693"}]}
