)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"e2cf487f98ef03817665e85e3cecb18d36710e28","unresolved":true,"context_lines":[{"line_number":4,"context_line":"Commit:     Slawek Kaplonski \u003cskaplons@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2021-01-11 13:41:23 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Suppress deprecation warnings in policy enforer"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"As we are in the middle of the migration to new secure RBAC policies"},{"line_number":10,"context_line":"and we have a lot of deprecated default rules, our log in e.g."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"00821a7c_a28392a1","line":7,"range":{"start_line":7,"start_character":40,"end_line":7,"end_character":47},"updated":"2021-01-11 14:00:38.000000000","message":"enforcer","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"}],"neutron/policy.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"e2cf487f98ef03817665e85e3cecb18d36710e28","unresolved":true,"context_lines":[{"line_number":74,"context_line":"    global _ENFORCER"},{"line_number":75,"context_line":"    if not _ENFORCER:"},{"line_number":76,"context_line":"        _ENFORCER \u003d policy.Enforcer(conf, policy_file\u003dpolicy_file)"},{"line_number":77,"context_line":"        if suppress_deprecation_warnings is not None:"},{"line_number":78,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d ("},{"line_number":79,"context_line":"                suppress_deprecation_warnings)"},{"line_number":80,"context_line":"        register_rules(_ENFORCER)"}],"source_content_type":"text/x-python","patch_set":1,"id":"d1c7233b_31e0a1a9","line":77,"range":{"start_line":77,"start_character":8,"end_line":77,"end_character":52},"updated":"2021-01-11 14:00:38.000000000","message":"if suppress_deprecation_warnings:","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"f3bbb10910e97411b8aa28c4628888850f090c50","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    global _ENFORCER"},{"line_number":75,"context_line":"    if not _ENFORCER:"},{"line_number":76,"context_line":"        _ENFORCER \u003d policy.Enforcer(conf, policy_file\u003dpolicy_file)"},{"line_number":77,"context_line":"        if suppress_deprecation_warnings is not None:"},{"line_number":78,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d ("},{"line_number":79,"context_line":"                suppress_deprecation_warnings)"},{"line_number":80,"context_line":"        register_rules(_ENFORCER)"}],"source_content_type":"text/x-python","patch_set":1,"id":"010c6d9c_f39831f6","line":77,"range":{"start_line":77,"start_character":8,"end_line":77,"end_character":52},"in_reply_to":"d1c7233b_31e0a1a9","updated":"2021-01-12 15:52:07.000000000","message":"Done","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"},{"author":{"_account_id":8313,"name":"Lajos Katona","display_name":"lajoskatona","email":"katonalala@gmail.com","username":"elajkat","status":"Ericsson Software Technology"},"change_message_id":"9c644376e38c60b667f83f773e88d3bf57086abe","unresolved":true,"context_lines":[{"line_number":75,"context_line":"    if not _ENFORCER:"},{"line_number":76,"context_line":"        _ENFORCER \u003d policy.Enforcer(conf, policy_file\u003dpolicy_file)"},{"line_number":77,"context_line":"        if suppress_deprecation_warnings is not None:"},{"line_number":78,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d ("},{"line_number":79,"context_line":"                suppress_deprecation_warnings)"},{"line_number":80,"context_line":"        register_rules(_ENFORCER)"},{"line_number":81,"context_line":"        _ENFORCER.load_rules(True)"},{"line_number":82,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"b9e2ab23_e38f5d0b","line":79,"range":{"start_line":78,"start_character":12,"end_line":79,"end_character":46},"updated":"2021-01-11 13:46:42.000000000","message":"It\u0027s strange that this is not \"setteble\" via __init__ or such way in oslo_policy","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"976e91d9ab1e1d91fb5954a9788a1c43861e5e01","unresolved":true,"context_lines":[{"line_number":77,"context_line":"        if suppress_deprecation_warnings is not None:"},{"line_number":78,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d ("},{"line_number":79,"context_line":"                suppress_deprecation_warnings)"},{"line_number":80,"context_line":"        register_rules(_ENFORCER)"},{"line_number":81,"context_line":"        _ENFORCER.load_rules(True)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1e15dfb0_a9889148","line":80,"range":{"start_line":80,"start_character":0,"end_line":80,"end_character":8},"updated":"2021-01-11 14:09:41.000000000","message":"also there is another flag which control the default check_str changes \u0027suppress_default_change_warnings\u0027 that also you can make True until the new policy migration.\n\nI made this new flag in oslo policy separate because sometime(in normal changes than all policy changes) we want to warn operator for check_str\u0027s  default value change as that can break them.\n\n- like i did in https://github.com/openstack/nova/blob/ce49cda42465f1266186be8da11b36aabb39847a/nova/policy.py#L106-L112","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"},{"author":{"_account_id":11975,"name":"Slawek Kaplonski","email":"skaplons@redhat.com","username":"slaweq"},"change_message_id":"f3bbb10910e97411b8aa28c4628888850f090c50","unresolved":false,"context_lines":[{"line_number":77,"context_line":"        if suppress_deprecation_warnings is not None:"},{"line_number":78,"context_line":"            _ENFORCER.suppress_deprecation_warnings \u003d ("},{"line_number":79,"context_line":"                suppress_deprecation_warnings)"},{"line_number":80,"context_line":"        register_rules(_ENFORCER)"},{"line_number":81,"context_line":"        _ENFORCER.load_rules(True)"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"d1435748_107d9cc2","line":80,"range":{"start_line":80,"start_character":0,"end_line":80,"end_character":8},"in_reply_to":"1e15dfb0_a9889148","updated":"2021-01-12 15:52:07.000000000","message":"Done","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"}],"neutron/tests/base.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"e2cf487f98ef03817665e85e3cecb18d36710e28","unresolved":true,"context_lines":[{"line_number":394,"context_line":"        # Give a private copy of the directory to each test."},{"line_number":395,"context_line":"        self.useFixture(fixture.PluginDirectoryFixture())"},{"line_number":396,"context_line":""},{"line_number":397,"context_line":"        policy.init(suppress_deprecation_warnings\u003dTrue)"},{"line_number":398,"context_line":"        self.addCleanup(policy.reset)"},{"line_number":399,"context_line":"        self.addCleanup(resource_registry.unregister_all_resources)"},{"line_number":400,"context_line":"        self.addCleanup(db_api.sqla_remove_all)"}],"source_content_type":"text/x-python","patch_set":1,"id":"10fcbfc8_11715595","line":397,"updated":"2021-01-11 14:00:38.000000000","message":"+1, we have too many logs right now","commit_id":"7b0c0a1bb2d8fd862c24b689f98102c6bb5a7c60"}]}
