)]}'
{"horizon/utils/functions.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"aa7569e8925a8158eb34d01916d732df360778d6","unresolved":false,"context_lines":[{"line_number":111,"context_line":"    except ValueError:"},{"line_number":112,"context_line":"        page_size \u003d int(default)"},{"line_number":113,"context_line":"        handler.update(horizon_pagesize\u003dpage_size)"},{"line_number":114,"context_line":"    return page_size"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"def get_log_length(request, default\u003d35):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_d512cc58","line":114,"updated":"2017-11-29 15:21:51.000000000","message":"The logic is very similar to get_config_value(). How about changing get_config_value() or introducing a similar function?\n\nI don\u0027t know we can replace get_config_value() completely or not. Could you investigate it too?","commit_id":"e31e87c12d246ac9d674bbec7d51be8996d2e66f"},{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"04a1c67f43a8a6b326bfa51909f12ead3e33e78e","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        log_length \u003d int(default)"},{"line_number":126,"context_line":"        handler.update(instance_log_length\u003dlog_length)"},{"line_number":127,"context_line":"    return log_length"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"def get_timezone(request):"},{"line_number":131,"context_line":"    # Session and cookie store timezone as django_timezone."}],"source_content_type":"text/x-python","patch_set":1,"id":"5f2577a7_4e6241b0","line":128,"updated":"2017-09-14 21:35:58.000000000","message":"more docs would be great in here for each def","commit_id":"e31e87c12d246ac9d674bbec7d51be8996d2e66f"}],"horizon/utils/user_settings.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"aa7569e8925a8158eb34d01916d732df360778d6","unresolved":false,"context_lines":[{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":31,"context_line":"class UserSettings(object):"},{"line_number":32,"context_line":"    KEYS \u003d (lambda: settings.LANGUAGE_COOKIE_NAME, \"django_timezone\","},{"line_number":33,"context_line":"            \"horizon_pagesize\", \"instance_log_length\")"},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_231f8908","line":31,"updated":"2017-11-29 15:21:51.000000000","message":"Could you split the logic into cookie handling and storage logic? The cookie handling is common to all storage backends, so I think it is better to be a separate class.","commit_id":"e31e87c12d246ac9d674bbec7d51be8996d2e66f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"aa7569e8925a8158eb34d01916d732df360778d6","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":31,"context_line":"class UserSettings(object):"},{"line_number":32,"context_line":"    KEYS \u003d (lambda: settings.LANGUAGE_COOKIE_NAME, \"django_timezone\","},{"line_number":33,"context_line":"            \"horizon_pagesize\", \"instance_log_length\")"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def __init__(self, request):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_43a96d8d","line":32,"range":{"start_line":32,"start_character":12,"end_line":32,"end_character":49},"updated":"2017-11-29 15:21:51.000000000","message":"Why do you need \u0027lambda\u0027 here?\n\nIs there a case where settings.LANGUAGE_COOKIE_NAME is changed after the class is loaded? Even if so, using lambda looks tricky. It can be loaded dynamically for example by using @property.","commit_id":"e31e87c12d246ac9d674bbec7d51be8996d2e66f"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"aa7569e8925a8158eb34d01916d732df360778d6","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"def get_user_settings_handler(request):"},{"line_number":93,"context_line":"    handler \u003d getattr(settings, \"USER_SETTINGS_HANDLER\", None)"},{"line_number":94,"context_line":"    if not handler:"},{"line_number":95,"context_line":"        handler \u003d SessionUserSettings"},{"line_number":96,"context_line":"    if isinstance(handler, six.string_types):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff82abbf_a394f937","line":93,"range":{"start_line":93,"start_character":4,"end_line":93,"end_character":62},"updated":"2017-11-29 15:21:51.000000000","message":"It is better to configure a backend rather than replacing the handler itself.","commit_id":"e31e87c12d246ac9d674bbec7d51be8996d2e66f"}],"openstack_dashboard/dashboards/settings/user/forms.py":[{"author":{"_account_id":16628,"name":"Beth Elwell","email":"e.r.elwell@gmail.com","username":"bethelwell"},"change_message_id":"04a1c67f43a8a6b326bfa51909f12ead3e33e78e","unresolved":false,"context_lines":[{"line_number":26,"context_line":""},{"line_number":27,"context_line":"from horizon import forms"},{"line_number":28,"context_line":"from horizon import messages"},{"line_number":29,"context_line":"from horizon.utils import functions"},{"line_number":30,"context_line":"from horizon.utils import user_settings"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"5f2577a7_2e3ed58b","line":29,"updated":"2017-09-14 21:35:58.000000000","message":"functions not used - line should be deleted","commit_id":"e31e87c12d246ac9d674bbec7d51be8996d2e66f"}]}
