)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11592,"name":"Julie Gravel","email":"julie.gravel@suse.com","username":"jgravel"},"change_message_id":"c50ae12af972fc2f972eb87b39a4871b25ff8dd4","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Adds ability to set default log length"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"By default if you view the log of an instance in Horizon it is 35"},{"line_number":10,"context_line":"lines. This patch gives an option to user set the log length in"},{"line_number":11,"context_line":"the settings file by setting the INSTANCE_LOG_LENGTH varibale in"},{"line_number":12,"context_line":"the settings file."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a8c0949_008c997e","line":10,"updated":"2014-11-05 18:13:43.000000000","message":"This sentence is repetitive and contains a misspelled word (varibale). It would be nice to clean up a bit, maybe something like: This patch gives users an option to set the log length in the settings file with the INSTANCE_LOG_LENGTH variable.\n\n\nAlso only the first line of the commit message should be wrapped at 50 chars. The next paragraph can be wrapped at 72 chars.","commit_id":"2c3042786e761cee514bb0c61b3611ae308d045a"},{"author":{"_account_id":7012,"name":"Brianna Poulos","email":"Brianna.Poulos@jhuapl.edu","username":"brianna-poulos"},"change_message_id":"8105958a9d2fdede48002e4be859d1e36d6341ac","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Adds ability to set default log length"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"By default if you view the log of an instance in Horizon it is 35"},{"line_number":10,"context_line":"lines. This patch gives allows user to override the default log"},{"line_number":11,"context_line":"length."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: If7285ce31261f2442d3015161c445dda86240dfa"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"5a890539_8d7b6b28","line":10,"updated":"2014-11-20 16:30:51.000000000","message":"\"gives allows\" doesn\u0027t make sense (use either \"This patch gives the user the ability to override...\" or \"This patch allows the user to override...\")\n\nAlso, I think it\u0027s important to clarify how the user will be able to override the default log message length.","commit_id":"cc48dd56fa2f20e2a6cf5a14c2a1c18ac06e8438"}],"horizon/utils/functions.py":[{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"15b0d3220582be8a2a78a96a2aad39dde92583a8","unresolved":false,"context_lines":[{"line_number":79,"context_line":"    now \u003d datetime.datetime.utcnow()"},{"line_number":80,"context_line":"    return datetime.datetime(now.year + 1, now.month, now.day, now.hour,"},{"line_number":81,"context_line":"                             now.minute, now.second, now.microsecond,"},{"line_number":82,"context_line":"                             now.tzinfo)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a890539_ac24f60e","line":82,"updated":"2014-11-18 21:35:30.000000000","message":"a little more simple: future \u003d now.replace(now.year + 1)\n  https://docs.python.org/2/library/datetime.html#datetime.date.replace","commit_id":"1d9966b3aaf7369609c2209e6f1d56749b121e9e"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"b2e7a970daa58fb607e630bf826b4a0b66d59e0b","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027, default)))"},{"line_number":79,"context_line":"    except ValueError:"},{"line_number":80,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":81,"context_line":"    return log_length"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a890539_0e4b075a","line":78,"updated":"2014-11-20 08:03:50.000000000","message":"I still think it would be better to add the ability to set *default* log length in the settings file just like page_size at L65, now it\u0027s fixed to 35 if we can\u0027t get instance_log_length from cookie at the beginning.","commit_id":"8dd6e08f867074e52fb2a5bad364cf12ed6bdfb8"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"ea6f4abaf26c457500605517eb0c9934f0f89cf4","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027, default)))"},{"line_number":79,"context_line":"    except ValueError:"},{"line_number":80,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":81,"context_line":"    return log_length"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a890539_54ff6201","line":78,"in_reply_to":"5a890539_0e06a720","updated":"2014-11-20 09:30:33.000000000","message":"I agree with storing log length in the cookie and we can change it in the settings dashboard, it\u0027s a useful improvement. My previous comment means we can get the default log length from settings file before store in cookie like page_size at L65 so we can change the fixed 35.","commit_id":"8dd6e08f867074e52fb2a5bad364cf12ed6bdfb8"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"b677cca21232289e9c470f45580d9faddb0bc8f9","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027, default)))"},{"line_number":79,"context_line":"    except ValueError:"},{"line_number":80,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":81,"context_line":"    return log_length"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a890539_0e06a720","line":78,"in_reply_to":"5a890539_0e4b075a","updated":"2014-11-20 08:40:45.000000000","message":"In my previous patches i had added a variable in the settings file but then it was decided that we don\u0027t want to user to edit the settings file for this setting. That is why i removed it.\n\nPlease read previous comments","commit_id":"8dd6e08f867074e52fb2a5bad364cf12ed6bdfb8"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"618d12d5d5ccd3b4116b2121a3d444117ecd3da8","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027, default)))"},{"line_number":79,"context_line":"    except ValueError:"},{"line_number":80,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":81,"context_line":"    return log_length"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a890539_d4719278","line":78,"in_reply_to":"5a890539_54ff6201","updated":"2014-11-20 09:36:55.000000000","message":"That is what community doesn\u0027t know want. They don\u0027t want for user to go in the settings file and edit the default 35. And if they want to change the default 35 than they have to do it from the settings dashboard. \n\ncan we ask others view on this?? because i don\u0027t want other coming and telling me that they again don\u0027t want to put the variable in settings file.","commit_id":"8dd6e08f867074e52fb2a5bad364cf12ed6bdfb8"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"40ef96be85af723ed2de89f810d2c697b6f62c7d","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027,"},{"line_number":79,"context_line":"                        getattr(settings,"},{"line_number":80,"context_line":"                                \u0027INSTANCE_LOG_LENGTH\u0027,"},{"line_number":81,"context_line":"                                default))))"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_2a4993b7","line":78,"updated":"2014-12-17 09:52:29.000000000","message":"Is there a possibility that \u0027instance_log_length\u0027 key is missing in cookies? Shouldn\u0027t a default value be provided here?","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"08f32eaf29ea5493a424e3647c106b9407703750","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027,"},{"line_number":79,"context_line":"                        getattr(settings,"},{"line_number":80,"context_line":"                                \u0027INSTANCE_LOG_LENGTH\u0027,"},{"line_number":81,"context_line":"                                default))))"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_7ea439b9","line":78,"in_reply_to":"3a961159_2a4993b7","updated":"2014-12-17 12:09:02.000000000","message":"Timur: If You see here, if \u0027instance_log_length\u0027 key is missing in cookies then it will look this value in the settings file and if there also value is missing then it will take the default\u003d35 as a value.","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"0aff2db6aa0cc241e8d878ffeabc7e94d48ebde3","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    try:"},{"line_number":76,"context_line":"        log_length \u003d int(session.get("},{"line_number":77,"context_line":"            \u0027instance_log_length\u0027,"},{"line_number":78,"context_line":"            cookies.get(\u0027instance_log_length\u0027,"},{"line_number":79,"context_line":"                        getattr(settings,"},{"line_number":80,"context_line":"                                \u0027INSTANCE_LOG_LENGTH\u0027,"},{"line_number":81,"context_line":"                                default))))"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_df5a8429","line":78,"in_reply_to":"3a961159_7ea439b9","updated":"2014-12-17 15:10:37.000000000","message":"Yep, sorry, I overlooked default value for cookies (or somehow confused it with something else). Now I realize that this code is fine.","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"d7b36343f74aab283dd11cbb5adaad6275caf70e","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                default))))"},{"line_number":82,"context_line":"    except ValueError:"},{"line_number":83,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":84,"context_line":"    return log_length"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def natural_sort(attr):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_eabeabff","line":84,"updated":"2014-12-17 09:30:17.000000000","message":"What do you think about add here any logging? Not sure if it is important, but silent exceptions could be a bit problem, as for me.","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"0aff2db6aa0cc241e8d878ffeabc7e94d48ebde3","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                default))))"},{"line_number":82,"context_line":"    except ValueError:"},{"line_number":83,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":84,"context_line":"    return log_length"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def natural_sort(attr):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_1f632cde","line":84,"in_reply_to":"3a961159_7e8b591e","updated":"2014-12-17 15:10:37.000000000","message":"Doing things in the same manner makes sense to me.","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"40ef96be85af723ed2de89f810d2c697b6f62c7d","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                default))))"},{"line_number":82,"context_line":"    except ValueError:"},{"line_number":83,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":84,"context_line":"    return log_length"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def natural_sort(attr):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_0afcd73d","line":84,"in_reply_to":"3a961159_eabeabff","updated":"2014-12-17 09:52:29.000000000","message":"+1 for the LOG.warn message about size value which couldn\u0027t be coerced to int.","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"08f32eaf29ea5493a424e3647c106b9407703750","unresolved":false,"context_lines":[{"line_number":81,"context_line":"                                default))))"},{"line_number":82,"context_line":"    except ValueError:"},{"line_number":83,"context_line":"        log_length \u003d session[\u0027instance_log_length\u0027] \u003d int(default)"},{"line_number":84,"context_line":"    return log_length"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"def natural_sort(attr):"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a961159_7e8b591e","line":84,"in_reply_to":"3a961159_eabeabff","updated":"2014-12-17 12:09:02.000000000","message":"Paul: i followed the example of def get_page_size and in that function also no log is used that is why also i didn\u0027t used any log statement here also.","commit_id":"9873c1c46b61cead62850fe54ad0d742f13949a1"}],"openstack_dashboard/dashboards/project/instances/views.py":[{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"3adc5f4c4651ef14b2b01fa1547dca7d37ae1798","unresolved":false,"context_lines":[{"line_number":20,"context_line":"Views for managing instances."},{"line_number":21,"context_line":"\"\"\""},{"line_number":22,"context_line":"from datetime import datetime  # noqa"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from django.core.urlresolvers import reverse"},{"line_number":25,"context_line":"from django.core.urlresolvers import reverse_lazy"},{"line_number":26,"context_line":"from django import http"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_c5065020","line":23,"updated":"2014-11-11 15:50:36.000000000","message":"Maybe it yould be better to get rid of imports, which require # noqa tag? What do you think about importing module?","commit_id":"9a8ff4e2fe2336aed394766aea1b7a1703b7949c"},{"author":{"_account_id":9317,"name":"Ana Krivokapic","email":"akrivoka@redhat.com","username":"akrivoka"},"change_message_id":"f94e511598e40c5e97acac39f0df9f8d0a8fe37d","unresolved":false,"context_lines":[{"line_number":20,"context_line":"Views for managing instances."},{"line_number":21,"context_line":"\"\"\""},{"line_number":22,"context_line":"from datetime import datetime  # noqa"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from django.core.urlresolvers import reverse"},{"line_number":25,"context_line":"from django.core.urlresolvers import reverse_lazy"},{"line_number":26,"context_line":"from django import http"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_ee4de973","line":23,"in_reply_to":"5a890539_c5065020","updated":"2014-11-11 16:47:56.000000000","message":"Good catch Paul - yes, let\u0027s stick to importing modules only.","commit_id":"9a8ff4e2fe2336aed394766aea1b7a1703b7949c"},{"author":{"_account_id":9317,"name":"Ana Krivokapic","email":"akrivoka@redhat.com","username":"akrivoka"},"change_message_id":"0454ad87a6bfb56f9d02505d2a0b4b0f88d8694a","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        return initial"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":""},{"line_number":145,"context_line":"def _one_year():"},{"line_number":146,"context_line":"    now \u003d datetime.utcnow()"},{"line_number":147,"context_line":"    return datetime(now.year + 1, now.month, now.day, now.hour,"},{"line_number":148,"context_line":"                    now.minute, now.second, now.microsecond, now.tzinfo)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_65a59c52","line":145,"updated":"2014-11-11 15:46:37.000000000","message":"Two issues with this function:\n* First, I think the name is slightly misleading. I would expect the function named \"one year\" to return a time interval of one year. Instead, this returns the point in time which is one year from now. So I think a better name would be \"one_year_from_now()\".\n* Secondly, this function is generic enough that it might be useful in other places. I would suggest placing it in a more generic location. For example, horizon/utils/functions.py.","commit_id":"9a8ff4e2fe2336aed394766aea1b7a1703b7949c"}],"openstack_dashboard/dashboards/settings/user/forms.py":[{"author":{"_account_id":9317,"name":"Ana Krivokapic","email":"akrivoka@redhat.com","username":"akrivoka"},"change_message_id":"d8414b8f55dc4bd83a577d19c8f06a8a570dd31e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                                  help_text\u003d_(\"Number of items to show per \""},{"line_number":46,"context_line":"                                              \"page\"))"},{"line_number":47,"context_line":"    instance_log_length \u003d forms.IntegerField("},{"line_number":48,"context_line":"        label\u003d_(\"Items Per Page\"), min_value\u003d1,"},{"line_number":49,"context_line":"        help_text\u003d_(\"Number of log lines to be shown per instance\"))"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    @staticmethod"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a890539_f316bf54","line":48,"updated":"2014-11-19 17:04:13.000000000","message":"The label seems wrong.","commit_id":"54e352c6730e75aa6fee8cc7a194dda3311fe993"},{"author":{"_account_id":9317,"name":"Ana Krivokapic","email":"akrivoka@redhat.com","username":"akrivoka"},"change_message_id":"d8414b8f55dc4bd83a577d19c8f06a8a570dd31e","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        response.set_cookie(\u0027horizon_pagesize\u0027, data[\u0027pagesize\u0027],"},{"line_number":120,"context_line":"                            expires\u003d_one_year())"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        request.session[\u0027horizon_instance_log_length\u0027] \u003d \\"},{"line_number":123,"context_line":"            data[\u0027instance_log_length\u0027]"},{"line_number":124,"context_line":"        response.set_cookie(\u0027horizon_instance_log_length\u0027,"},{"line_number":125,"context_line":"                            data[\u0027instance_log_length\u0027], expires\u003d_one_year())"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a890539_0e0ebe34","line":122,"updated":"2014-11-19 17:04:13.000000000","message":"Please avoid using backslashes for line continuation.","commit_id":"54e352c6730e75aa6fee8cc7a194dda3311fe993"},{"author":{"_account_id":11599,"name":"Nikunj Aggarwal","email":"nikunj.aggarwal@hp.com","username":"nikunj2512"},"change_message_id":"04a36663ddc84d20b5d26b6a5bc2ab88fed9cacc","unresolved":false,"context_lines":[{"line_number":119,"context_line":"        response.set_cookie(\u0027horizon_pagesize\u0027, data[\u0027pagesize\u0027],"},{"line_number":120,"context_line":"                            expires\u003d_one_year())"},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"        request.session[\u0027horizon_instance_log_length\u0027] \u003d \\"},{"line_number":123,"context_line":"            data[\u0027instance_log_length\u0027]"},{"line_number":124,"context_line":"        response.set_cookie(\u0027horizon_instance_log_length\u0027,"},{"line_number":125,"context_line":"                            data[\u0027instance_log_length\u0027], expires\u003d_one_year())"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a890539_eec972ad","line":122,"in_reply_to":"5a890539_0e0ebe34","updated":"2014-11-19 17:08:49.000000000","message":"Ok but this is going more than 80 chars, so please do you any better way??","commit_id":"54e352c6730e75aa6fee8cc7a194dda3311fe993"}]}
