)]}'
{"oslo_policy/generator.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                       {\u0027method\u0027: operation[\u0027method\u0027],"},{"line_number":123,"context_line":"                        \u0027path\u0027: operation[\u0027path\u0027]})"},{"line_number":124,"context_line":"        intended_scope \u003d \"\""},{"line_number":125,"context_line":"        if hasattr(default, \u0027scope_types\u0027) and default.scope_types is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope: \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s-scope \u0027 % {\u0027scope\u0027: scope})"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_0b7d587e","line":125,"range":{"start_line":125,"start_character":11,"end_line":125,"end_character":18},"updated":"2017-11-15 19:57:57.000000000","message":"using hasattr is generally frowned up, plus it makes you do 2 checks here. This would be much better:\n\n    if getattr(default, \u0027scope_types\u0027, None) is not None:","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c03b2bf33c410dc08e1d9ab6fdae78bea1b942e","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                       {\u0027method\u0027: operation[\u0027method\u0027],"},{"line_number":123,"context_line":"                        \u0027path\u0027: operation[\u0027path\u0027]})"},{"line_number":124,"context_line":"        intended_scope \u003d \"\""},{"line_number":125,"context_line":"        if hasattr(default, \u0027scope_types\u0027) and default.scope_types is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope: \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s-scope \u0027 % {\u0027scope\u0027: scope})"}],"source_content_type":"text/x-python","patch_set":5,"id":"ff82abbf_2c1aca7c","line":125,"range":{"start_line":125,"start_character":11,"end_line":125,"end_character":18},"in_reply_to":"1f485f77_0b7d587e","updated":"2017-11-22 15:53:42.000000000","message":"Do you have links as to why hasattr is frowned upon? Just for my education","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if hasattr(default, \u0027scope_types\u0027) and default.scope_types is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope: \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s-scope \u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_ebf0bcff","line":128,"updated":"2017-11-15 19:57:57.000000000","message":"adding \"-scope\" seems unnecessary since we\u0027ve just said \"Intended scope\".\n\nI also don\u0027t love that this will leave a trailing space and doesn\u0027t have commas between elements.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope: \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s-scope \u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"},{"line_number":132,"context_line":"                {\u0027help\u0027: _format_help_text(default.description),"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_cb43c012","line":129,"updated":"2017-11-15 19:57:57.000000000","message":"might just as well put the \\n in line 131 and not have this line","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c03b2bf33c410dc08e1d9ab6fdae78bea1b942e","unresolved":false,"context_lines":[{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope: \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s-scope \u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"},{"line_number":132,"context_line":"                {\u0027help\u0027: _format_help_text(default.description),"}],"source_content_type":"text/x-python","patch_set":5,"id":"ff82abbf_e7a4fb0a","line":129,"in_reply_to":"1f485f77_cb43c012","updated":"2017-11-22 15:53:42.000000000","message":"That makes it so the newline is always there. Keeping it here ensures it\u0027s only populated when scope type information is actually present.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"6463d2d48263501a31dd5d9019ed7f9b4ae42745","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if getattr(default, \u0027scope_types\u0027, None) is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope(s): \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s\u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_94da0815","line":128,"updated":"2017-12-04 16:26:10.000000000","message":"Should these scopes be separated by commas or whitespace or something? The way this is written now if there are 2 scopes the names will be mushed together.\n\nIs there a reason this for loop isn\u0027t written as a join() call?","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"9d2efc347c4f979b9b3a86630c5b46ce8e9b0f15","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if getattr(default, \u0027scope_types\u0027, None) is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope(s): \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s\u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_17efd584","line":128,"in_reply_to":"df87a7cf_577ebde4","updated":"2017-12-04 21:00:37.000000000","message":"Ah, right, it can be more than one,  for over ride purpose, although that will be rare.","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"},{"author":{"_account_id":2218,"name":"Adam Young","email":"adam@younglogic.com","username":"ayoung"},"change_message_id":"c73936b709e6a71e8eb600bb553f4063a67e7090","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if getattr(default, \u0027scope_types\u0027, None) is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope(s): \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s\u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_f40eefe3","line":128,"in_reply_to":"df87a7cf_94da0815","updated":"2017-12-04 19:31:14.000000000","message":"Its supposed to be a 0 or 1 length, I think","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3785d5401bbb70ed26ce895f10df33673dda3c78","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if getattr(default, \u0027scope_types\u0027, None) is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope(s): \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s\u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_a074a236","line":128,"in_reply_to":"df87a7cf_94da0815","updated":"2017-12-04 18:53:34.000000000","message":"Oh - yeah. Good call, that\u0027s a lot better.","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c1e1a4b1970a2291aa4a7a9a65459ebd158ec16","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if getattr(default, \u0027scope_types\u0027, None) is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope(s): \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s\u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_577ebde4","line":128,"in_reply_to":"df87a7cf_f40d8f90","updated":"2017-12-04 20:30:45.000000000","message":"Multiple types will certainly be a possibility. This just makes sure we render all possible scopes in the docs.","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"8e412c8e990a545b6a96e4d99615363170a3bc6a","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        if getattr(default, \u0027scope_types\u0027, None) is not None:"},{"line_number":126,"context_line":"            intended_scope \u003d \u0027# Intended scope(s): \u0027"},{"line_number":127,"context_line":"            for scope in default.scope_types:"},{"line_number":128,"context_line":"                intended_scope +\u003d (\u0027%(scope)s\u0027 % {\u0027scope\u0027: scope})"},{"line_number":129,"context_line":"            intended_scope +\u003d \u0027\\n\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"        text \u003d (\u0027%(help)s\\n%(op)s%(scope)s#%(text)s\\n\u0027 %"}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_f40d8f90","line":128,"in_reply_to":"df87a7cf_f40eefe3","updated":"2017-12-04 19:49:54.000000000","message":"That\u0027s not a list, that\u0027s just a variable. Should we not be expecting to support multiple \"types\"?","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"}],"oslo_policy/policy.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":777,"context_line":"        raise cfg.ConfigFilesNotFoundError((path,))"},{"line_number":778,"context_line":""},{"line_number":779,"context_line":"    def enforce(self, rule, target, creds, do_raise\u003dFalse, exc\u003dNone,"},{"line_number":780,"context_line":"                enforce_scope\u003dFalse, *args, **kwargs):"},{"line_number":781,"context_line":"        \"\"\"Checks authorization of a rule against the target and credentials."},{"line_number":782,"context_line":""},{"line_number":783,"context_line":"        :param rule: The rule to evaluate."}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_90961593","line":780,"range":{"start_line":780,"start_character":30,"end_line":780,"end_character":35},"updated":"2017-11-15 19:57:57.000000000","message":"Why let the caller control this here? They should always enforce scope when the rule has a scope configured. Else we\u0027re giving them a way to be insecure. And that shouldn\u0027t be a backward compat concern because nobody is configuring scope on their RuleDefaults today.\n\nEven if we do allow a caller to control this, shouldn\u0027t the default be True? If you\u0027re going to allow someone to be insecure in some cases, at least be secure by default.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":833,"context_line":"            else:"},{"line_number":834,"context_line":"                # Check the scope of the operation against the possible scope"},{"line_number":835,"context_line":"                # attributes provided in `creds`."},{"line_number":836,"context_line":"                token_scope \u003d None"},{"line_number":837,"context_line":"                if creds.get(\u0027project_id\u0027):"},{"line_number":838,"context_line":"                    token_scope \u003d \u0027project\u0027"},{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_b0fa31ba","line":836,"updated":"2017-11-15 19:57:57.000000000","message":"We should always set token_scope. Having a None default may mean we don\u0027t notice bugs until runtime.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c03b2bf33c410dc08e1d9ab6fdae78bea1b942e","unresolved":false,"context_lines":[{"line_number":833,"context_line":"            else:"},{"line_number":834,"context_line":"                # Check the scope of the operation against the possible scope"},{"line_number":835,"context_line":"                # attributes provided in `creds`."},{"line_number":836,"context_line":"                token_scope \u003d None"},{"line_number":837,"context_line":"                if creds.get(\u0027project_id\u0027):"},{"line_number":838,"context_line":"                    token_scope \u003d \u0027project\u0027"},{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"}],"source_content_type":"text/x-python","patch_set":5,"id":"ff82abbf_c747771d","line":836,"in_reply_to":"1f485f77_b0fa31ba","updated":"2017-11-22 15:53:42.000000000","message":"So - default to \u0027project\u0027 and override if \u0027system\u0027 is set?","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":835,"context_line":"                # attributes provided in `creds`."},{"line_number":836,"context_line":"                token_scope \u003d None"},{"line_number":837,"context_line":"                if creds.get(\u0027project_id\u0027):"},{"line_number":838,"context_line":"                    token_scope \u003d \u0027project\u0027"},{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"},{"line_number":840,"context_line":"                    token_scope \u003d \u0027system\u0027"},{"line_number":841,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_50fd3daf","line":838,"updated":"2017-11-15 19:57:57.000000000","message":"also need to account for domain-scoped tokens, which won\u0027t have project_id.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c03b2bf33c410dc08e1d9ab6fdae78bea1b942e","unresolved":false,"context_lines":[{"line_number":835,"context_line":"                # attributes provided in `creds`."},{"line_number":836,"context_line":"                token_scope \u003d None"},{"line_number":837,"context_line":"                if creds.get(\u0027project_id\u0027):"},{"line_number":838,"context_line":"                    token_scope \u003d \u0027project\u0027"},{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"},{"line_number":840,"context_line":"                    token_scope \u003d \u0027system\u0027"},{"line_number":841,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"ff82abbf_a7211350","line":838,"in_reply_to":"1f485f77_50fd3daf","updated":"2017-11-22 15:53:42.000000000","message":"True - but from a policy perspective, a domain operation is just a project operation. I reworked this and added a comment.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":836,"context_line":"                token_scope \u003d None"},{"line_number":837,"context_line":"                if creds.get(\u0027project_id\u0027):"},{"line_number":838,"context_line":"                    token_scope \u003d \u0027project\u0027"},{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"},{"line_number":840,"context_line":"                    token_scope \u003d \u0027system\u0027"},{"line_number":841,"context_line":""},{"line_number":842,"context_line":"                if self.registered_rules.get(rule):"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_f025495d","line":839,"updated":"2017-11-15 19:57:57.000000000","message":"should be elif... no point in checking this if we\u0027ve already determined it\u0027s project-scoped.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c03b2bf33c410dc08e1d9ab6fdae78bea1b942e","unresolved":false,"context_lines":[{"line_number":836,"context_line":"                token_scope \u003d None"},{"line_number":837,"context_line":"                if creds.get(\u0027project_id\u0027):"},{"line_number":838,"context_line":"                    token_scope \u003d \u0027project\u0027"},{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"},{"line_number":840,"context_line":"                    token_scope \u003d \u0027system\u0027"},{"line_number":841,"context_line":""},{"line_number":842,"context_line":"                if self.registered_rules.get(rule):"}],"source_content_type":"text/x-python","patch_set":5,"id":"ff82abbf_07bb1fe2","line":839,"in_reply_to":"1f485f77_f025495d","updated":"2017-11-22 15:53:42.000000000","message":"Done","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"},{"line_number":840,"context_line":"                    token_scope \u003d \u0027system\u0027"},{"line_number":841,"context_line":""},{"line_number":842,"context_line":"                if self.registered_rules.get(rule):"},{"line_number":843,"context_line":"                    registered_rule \u003d self.registered_rules[rule]"},{"line_number":844,"context_line":"                    if registered_rule.scope_types and ("},{"line_number":845,"context_line":"                            token_scope not in registered_rule.scope_types):"},{"line_number":846,"context_line":"                        if enforce_scope:"},{"line_number":847,"context_line":"                            raise InvalidScope("},{"line_number":848,"context_line":"                                rule, registered_rule.scope_types, token_scope"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_b0d231ff","line":845,"range":{"start_line":842,"start_character":0,"end_line":845,"end_character":76},"updated":"2017-11-15 19:57:57.000000000","message":"would be better as:\n\n    registered_rule \u003d self.registered_rules.get(rule)\n    if registered_rule and registered_rule.scope_types and\n            (token_scope not in registered_rule.scope_types):","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"8c03b2bf33c410dc08e1d9ab6fdae78bea1b942e","unresolved":false,"context_lines":[{"line_number":839,"context_line":"                if creds.get(\u0027system\u0027):"},{"line_number":840,"context_line":"                    token_scope \u003d \u0027system\u0027"},{"line_number":841,"context_line":""},{"line_number":842,"context_line":"                if self.registered_rules.get(rule):"},{"line_number":843,"context_line":"                    registered_rule \u003d self.registered_rules[rule]"},{"line_number":844,"context_line":"                    if registered_rule.scope_types and ("},{"line_number":845,"context_line":"                            token_scope not in registered_rule.scope_types):"},{"line_number":846,"context_line":"                        if enforce_scope:"},{"line_number":847,"context_line":"                            raise InvalidScope("},{"line_number":848,"context_line":"                                rule, registered_rule.scope_types, token_scope"}],"source_content_type":"text/x-python","patch_set":5,"id":"ff82abbf_278ae31a","line":845,"range":{"start_line":842,"start_character":0,"end_line":845,"end_character":76},"in_reply_to":"1f485f77_b0d231ff","updated":"2017-11-22 15:53:42.000000000","message":"Pulling the registered_rule out makes sense, but I think keeping it as two separate if statements helps readability.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"976876427476d160bf9add83fa23473fd164749b","unresolved":false,"context_lines":[{"line_number":946,"context_line":"                             in. Accepts any string, though valid version"},{"line_number":947,"context_line":"                             strings are encouraged. Silently ignored if"},{"line_number":948,"context_line":"                             deprecated_for_removal is False."},{"line_number":949,"context_line":"    :param scope_types: A tuple containing the intended scopes of the operation"},{"line_number":950,"context_line":"                        being done."},{"line_number":951,"context_line":""},{"line_number":952,"context_line":"    .. versionchanged 1.29"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_50a65d55","line":949,"range":{"start_line":949,"start_character":26,"end_line":949,"end_character":31},"updated":"2017-11-15 19:57:57.000000000","message":"I would prefer a list instead of a tuple here. More consistent with other args (e.g. DocumentedRuleDefault\u0027s operations), easier to work with (e.g. can set to []), etc.","commit_id":"603d8ef237ad0e18660f4def53f25a0369413c8e"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"6463d2d48263501a31dd5d9019ed7f9b4ae42745","unresolved":false,"context_lines":[{"line_number":964,"context_line":"    .. versionchanged 1.29"},{"line_number":965,"context_line":"       Added *deprecated_since* parameter."},{"line_number":966,"context_line":""},{"line_number":967,"context_line":"    .. versionchanged 1.29"},{"line_number":968,"context_line":"       Added *scope_types* parameter."},{"line_number":969,"context_line":""},{"line_number":970,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_145cb87c","line":967,"updated":"2017-12-04 16:26:10.000000000","message":"This will be at least 1.31","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"},{"author":{"_account_id":5046,"name":"Lance Bragstad","email":"lbragstad@redhat.com","username":"ldbragst"},"change_message_id":"3785d5401bbb70ed26ce895f10df33673dda3c78","unresolved":false,"context_lines":[{"line_number":964,"context_line":"    .. versionchanged 1.29"},{"line_number":965,"context_line":"       Added *deprecated_since* parameter."},{"line_number":966,"context_line":""},{"line_number":967,"context_line":"    .. versionchanged 1.29"},{"line_number":968,"context_line":"       Added *scope_types* parameter."},{"line_number":969,"context_line":""},{"line_number":970,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":7,"id":"df87a7cf_402b56ea","line":967,"in_reply_to":"df87a7cf_145cb87c","updated":"2017-12-04 18:53:34.000000000","message":"Done","commit_id":"f0e2ffe27373e11b02e741af48fe1563ee9a4924"}]}
