)]}'
{"horizon/decorators.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"078e9e9a1a4f1104a940c3a6cf90d716743e2ceb","unresolved":false,"context_lines":[{"line_number":24,"context_line":"from django.utils.decorators import available_attrs  # noqa"},{"line_number":25,"context_line":"from django.utils.translation import ugettext_lazy as _"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"from osprofiler import profiler"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"def _current_component(view_func, dashboard\u003dNone, panel\u003dNone):"}],"source_content_type":"text/x-python","patch_set":18,"id":"3ac371cc_8bc4ee40","line":27,"updated":"2016-08-14 12:03:35.000000000","message":"You need to add osprofiler to requirements.txt.","commit_id":"1f07c8fdc878a1f44a5a16375627d168c4b2996b"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"f03550075e1ccd6e7fd56f839a9dab5e40190f85","unresolved":false,"context_lines":[{"line_number":94,"context_line":"        return view_func"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"def trace_with_osprofiler(function):"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def parse_and_patch_args(*args, **kwargs):"},{"line_number":100,"context_line":"        info_args \u003d {}"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"        func_name \u003d function.__module__ + \u0027.\u0027 + function.__name__"},{"line_number":103,"context_line":"        decorator \u003d profiler.trace(func_name,"},{"line_number":104,"context_line":"                                   info\u003dinfo_args, hide_args\u003dFalse,"},{"line_number":105,"context_line":"                                   allow_multiple_trace\u003dTrue)"},{"line_number":106,"context_line":"        wrapped \u003d decorator(function)"},{"line_number":107,"context_line":"        return wrapped(*args, **kwargs)"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"    return parse_and_patch_args"}],"source_content_type":"text/x-python","patch_set":21,"id":"3ac371cc_255b1789","line":109,"range":{"start_line":97,"start_character":0,"end_line":109,"end_character":31},"updated":"2016-08-16 10:32:28.000000000","message":"I think we need to conditionally return the same `function\u0027 here in case profiler is disabled, see how it is done in a previous patch for templates: https://review.openstack.org/#/c/303514/35/openstack_dashboard/context_processors.py","commit_id":"47b6b83075110db0b814addf19302ce7656da5d7"}],"horizon/views.py":[{"author":{"_account_id":22587,"name":"xujun","email":"xu.jun@99cloud.net","username":"majik"},"change_message_id":"c7bd0d671ede59513fb34af24d8a183f0ee97f39","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                    allow_multiple_trace\u003dTrue)"},{"line_number":75,"context_line":"    def render_to_response(self, context):"},{"line_number":76,"context_line":"        return super(HorizonTemplateView, self).render_to_response(context)"},{"line_number":77,"context_line":"    # pass"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class HorizonFormView(PageTitleMixin, generic.FormView):"}],"source_content_type":"text/x-python","patch_set":18,"id":"3ac371cc_eb8762d5","line":77,"range":{"start_line":77,"start_character":4,"end_line":77,"end_character":10},"updated":"2016-08-14 12:32:56.000000000","message":"should be removed","commit_id":"1f07c8fdc878a1f44a5a16375627d168c4b2996b"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"078e9e9a1a4f1104a940c3a6cf90d716743e2ceb","unresolved":false,"context_lines":[{"line_number":74,"context_line":"                    allow_multiple_trace\u003dTrue)"},{"line_number":75,"context_line":"    def render_to_response(self, context):"},{"line_number":76,"context_line":"        return super(HorizonTemplateView, self).render_to_response(context)"},{"line_number":77,"context_line":"    # pass"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"class HorizonFormView(PageTitleMixin, generic.FormView):"}],"source_content_type":"text/x-python","patch_set":18,"id":"3ac371cc_8b76ae3c","line":77,"range":{"start_line":77,"start_character":4,"end_line":77,"end_character":10},"updated":"2016-08-14 12:03:35.000000000","message":"unnecessary","commit_id":"1f07c8fdc878a1f44a5a16375627d168c4b2996b"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"f03550075e1ccd6e7fd56f839a9dab5e40190f85","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"class HorizonTemplateView(PageTitleMixin, generic.TemplateView):"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"    @profiler.trace(\u0027horizon.render_to_response\u0027, info\u003dNone,"},{"line_number":73,"context_line":"                    hide_args\u003dFalse,"},{"line_number":74,"context_line":"                    allow_multiple_trace\u003dTrue)"},{"line_number":75,"context_line":"    def render_to_response(self, context):"},{"line_number":76,"context_line":"        return super(HorizonTemplateView, self).render_to_response(context)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"class HorizonFormView(PageTitleMixin, generic.FormView):"}],"source_content_type":"text/x-python","patch_set":21,"id":"3ac371cc_25d2f7d2","line":76,"range":{"start_line":72,"start_character":0,"end_line":76,"end_character":75},"updated":"2016-08-16 10:32:28.000000000","message":"Same here about conditional tracing.","commit_id":"47b6b83075110db0b814addf19302ce7656da5d7"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"def trace(name):"},{"line_number":72,"context_line":"    def decorator(func):"},{"line_number":73,"context_line":"        if getattr(settings, \u0027OPENSTACK_PROFILER\u0027, {}).get(\u0027enabled\u0027):"},{"line_number":74,"context_line":"            return profiler.trace(name, info\u003dNone, hide_args\u003dFalse,"},{"line_number":75,"context_line":"                                  allow_multiple_trace\u003dTrue)(func)"},{"line_number":76,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_6c6fd492","line":73,"updated":"2016-11-15 00:52:51.000000000","message":"assumes key enabled exists. should use a safer check.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"def trace(name):"},{"line_number":72,"context_line":"    def decorator(func):"},{"line_number":73,"context_line":"        if getattr(settings, \u0027OPENSTACK_PROFILER\u0027, {}).get(\u0027enabled\u0027):"},{"line_number":74,"context_line":"            return profiler.trace(name, info\u003dNone, hide_args\u003dFalse,"},{"line_number":75,"context_line":"                                  allow_multiple_trace\u003dTrue)(func)"},{"line_number":76,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_15301556","line":73,"in_reply_to":"7a77a97e_6c6fd492","updated":"2016-11-15 10:04:23.000000000","message":"Actually, it\u0027s safe enough in a sense that {}.get(\u0027anything\u0027) \u003d\u003d None, but being more explicit wouldn\u0027t hurt.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"d786aebdf28b9f9677c10ef6fe0898b3634a2dc8","unresolved":false,"context_lines":[{"line_number":77,"context_line":"            return func"},{"line_number":78,"context_line":"    return decorator"},{"line_number":79,"context_line":""},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"class HorizonTemplateView(PageTitleMixin, generic.TemplateView):"},{"line_number":82,"context_line":"    @trace(\u0027horizon.render_to_response\u0027)"},{"line_number":83,"context_line":"    def render_to_response(self, context):"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_a3ea52aa","line":80,"updated":"2016-11-17 11:24:39.000000000","message":"The same trick of putting the if on the outside could be done here.","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"}],"openstack_dashboard/api/ceilometer.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from openstack_dashboard.api import base"},{"line_number":24,"context_line":"from openstack_dashboard.api import keystone"},{"line_number":25,"context_line":"from openstack_dashboard.contrib.developer.profiler import api as profiler"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def is_iterable(var):"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_2c14fcf3","line":25,"updated":"2016-11-15 00:52:51.000000000","message":"this file is deprecated, not sure adding profiler code to it makes sense.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":"from openstack_dashboard.api import base"},{"line_number":24,"context_line":"from openstack_dashboard.api import keystone"},{"line_number":25,"context_line":"from openstack_dashboard.contrib.developer.profiler import api as profiler"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"def is_iterable(var):"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_95d8a5f1","line":25,"in_reply_to":"7a77a97e_2c14fcf3","updated":"2016-11-15 10:04:23.000000000","message":"Agree, let\u0027s remove it.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":459,"context_line":"        self._tenants \u003d {}"},{"line_number":460,"context_line":""},{"line_number":461,"context_line":"    @profiler.trace"},{"line_number":462,"context_line":"    def get_user(self, user_id):"},{"line_number":463,"context_line":"        \"\"\"Returns user fetched from API."},{"line_number":464,"context_line":""},{"line_number":465,"context_line":"        Caching the result, so it doesn\u0027t contact API twice with the"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_0c266068","line":462,"updated":"2016-11-15 00:52:51.000000000","message":"regardless of deprecated, these calls are already handled in api/keystone.py","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"}],"openstack_dashboard/api/glance.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":210,"context_line":"            kwargs[\u0027filters\u0027] \u003d filters"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"def image_delete(request, image_id):"},{"line_number":214,"context_line":"    return glanceclient(request).images.delete(image_id)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":""}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_2cb95cea","line":213,"updated":"2016-11-15 00:52:51.000000000","message":"why not delete?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":210,"context_line":"            kwargs[\u0027filters\u0027] \u003d filters"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":""},{"line_number":213,"context_line":"def image_delete(request, image_id):"},{"line_number":214,"context_line":"    return glanceclient(request).images.delete(image_id)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":""}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_b5584158","line":213,"in_reply_to":"7a77a97e_2cb95cea","updated":"2016-11-15 10:04:23.000000000","message":"Guess it was lost during the V2 transition. fixed.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    return glanceclient(request).images.delete(image_id)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"def image_get(request, image_id):"},{"line_number":218,"context_line":"    \"\"\"Returns an Image object populated with metadata for image"},{"line_number":219,"context_line":"    with supplied identifier."},{"line_number":220,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_4cce9884","line":217,"updated":"2016-11-15 00:52:51.000000000","message":"why not get?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":214,"context_line":"    return glanceclient(request).images.delete(image_id)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":""},{"line_number":217,"context_line":"def image_get(request, image_id):"},{"line_number":218,"context_line":"    \"\"\"Returns an Image object populated with metadata for image"},{"line_number":219,"context_line":"    with supplied identifier."},{"line_number":220,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_d555bd1d","line":217,"in_reply_to":"7a77a97e_4cce9884","updated":"2016-11-15 10:04:23.000000000","message":"ditto","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"}],"openstack_dashboard/api/heat.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    if template_data:"},{"line_number":114,"context_line":"        tpl \u003d template_data"},{"line_number":115,"context_line":"    elif template_url:"},{"line_number":116,"context_line":"        with contextlib.closing(request.urlopen(template_url)) as u:"},{"line_number":117,"context_line":"            tpl \u003d u.read()"},{"line_number":118,"context_line":"    else:"},{"line_number":119,"context_line":"        return {}, None"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_8cad108b","line":116,"updated":"2016-11-15 00:52:51.000000000","message":"should we profile this external request?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    if template_data:"},{"line_number":114,"context_line":"        tpl \u003d template_data"},{"line_number":115,"context_line":"    elif template_url:"},{"line_number":116,"context_line":"        with contextlib.closing(request.urlopen(template_url)) as u:"},{"line_number":117,"context_line":"            tpl \u003d u.read()"},{"line_number":118,"context_line":"    else:"},{"line_number":119,"context_line":"        return {}, None"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_3020bf9b","line":116,"in_reply_to":"7a77a97e_8cad108b","updated":"2016-11-15 10:04:23.000000000","message":"Thank you, didn\u0027t notice the external call here. I\u0027ll decorate `get_template_files` function.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"}],"openstack_dashboard/api/keystone.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":990,"context_line":"    return manager.list()"},{"line_number":991,"context_line":""},{"line_number":992,"context_line":""},{"line_number":993,"context_line":"def mapping_create(request, mapping_id, rules):"},{"line_number":994,"context_line":"    manager \u003d keystoneclient(request, admin\u003dTrue).federation.mappings"},{"line_number":995,"context_line":"    try:"},{"line_number":996,"context_line":"        return manager.create(mapping_id\u003dmapping_id, rules\u003drules)"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_0ce740e5","line":993,"updated":"2016-11-15 00:52:51.000000000","message":"why not profile this?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":990,"context_line":"    return manager.list()"},{"line_number":991,"context_line":""},{"line_number":992,"context_line":""},{"line_number":993,"context_line":"def mapping_create(request, mapping_id, rules):"},{"line_number":994,"context_line":"    manager \u003d keystoneclient(request, admin\u003dTrue).federation.mappings"},{"line_number":995,"context_line":"    try:"},{"line_number":996,"context_line":"        return manager.create(mapping_id\u003dmapping_id, rules\u003drules)"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_b04bef58","line":993,"in_reply_to":"7a77a97e_0ce740e5","updated":"2016-11-15 10:04:23.000000000","message":"Done","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":1022,"context_line":"    return manager.list()"},{"line_number":1023,"context_line":""},{"line_number":1024,"context_line":""},{"line_number":1025,"context_line":"def protocol_create(request, protocol_id, identity_provider, mapping):"},{"line_number":1026,"context_line":"    manager \u003d keystoneclient(request).federation.protocols"},{"line_number":1027,"context_line":"    try:"},{"line_number":1028,"context_line":"        return manager.create(protocol_id, identity_provider, mapping)"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_ece124d2","line":1025,"updated":"2016-11-15 00:52:51.000000000","message":"why not profile this?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":1022,"context_line":"    return manager.list()"},{"line_number":1023,"context_line":""},{"line_number":1024,"context_line":""},{"line_number":1025,"context_line":"def protocol_create(request, protocol_id, identity_provider, mapping):"},{"line_number":1026,"context_line":"    manager \u003d keystoneclient(request).federation.protocols"},{"line_number":1027,"context_line":"    try:"},{"line_number":1028,"context_line":"        return manager.create(protocol_id, identity_provider, mapping)"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_903ef3b6","line":1025,"in_reply_to":"7a77a97e_ece124d2","updated":"2016-11-15 10:04:23.000000000","message":"Done","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"}],"openstack_dashboard/api/network.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"078e9e9a1a4f1104a940c3a6cf90d716743e2ceb","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        return self.floating_ips is not None"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"@trace_with_osprofiler"},{"line_number":51,"context_line":"def floating_ip_pools_list(request):"},{"line_number":52,"context_line":"    return NetworkClient(request).floating_ips.list_pools()"},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":18,"id":"3ac371cc_cb038675","line":50,"range":{"start_line":50,"start_character":0,"end_line":50,"end_character":22},"updated":"2016-08-14 12:03:35.000000000","message":"do you really need to add the decorator here? floating_ips.list_pools is decorated too. Do we need to add the decorator to both?\n\nI would like to confirm what is the guideline of adding the osprofiler decorator for future development.","commit_id":"1f07c8fdc878a1f44a5a16375627d168c4b2996b"}],"openstack_dashboard/api/neutron.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"94b12bc6d27c764da0fa21cd2b50248e1dd2d195","unresolved":false,"context_lines":[{"line_number":54,"context_line":""},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"class NeutronAPIDictWrapper(base.APIDictWrapper):"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def __init__(self, apidict):"},{"line_number":59,"context_line":"        if \u0027admin_state_up\u0027 in apidict:"},{"line_number":60,"context_line":"            if apidict[\u0027admin_state_up\u0027]:"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_ad94978a","side":"PARENT","line":57,"updated":"2016-08-23 18:05:17.000000000","message":"unrelated. I am okay with this blank line for readability.","commit_id":"9dfde9a3e72e16bf21fb51603d165bf50ac7d671"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"94b12bc6d27c764da0fa21cd2b50248e1dd2d195","unresolved":false,"context_lines":[{"line_number":360,"context_line":""},{"line_number":361,"context_line":""},{"line_number":362,"context_line":"class FloatingIpManager(network_base.FloatingIpManager):"},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"    device_owner_map \u003d {"},{"line_number":365,"context_line":"        \u0027compute:\u0027: \u0027compute\u0027,"},{"line_number":366,"context_line":"        \u0027neutron:LOADBALANCER\u0027: \u0027loadbalancer\u0027,"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_0d904b94","side":"PARENT","line":363,"updated":"2016-08-23 18:05:17.000000000","message":"ditto","commit_id":"9dfde9a3e72e16bf21fb51603d165bf50ac7d671"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"94b12bc6d27c764da0fa21cd2b50248e1dd2d195","unresolved":false,"context_lines":[{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":9,"context_line":"# not use this file except in compliance with the License. You may obtain"},{"line_number":10,"context_line":"#    a copy of the License at"},{"line_number":11,"context_line":"#"},{"line_number":12,"context_line":"#         http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":13,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_adadb7ea","line":10,"updated":"2016-08-23 18:05:17.000000000","message":"If you change the number of spaces at the beginning of lines, L.10 needs to be changed too.","commit_id":"04c5620c69879dc3cbdc6c461a073cc749bdc0ef"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"d300ac62bc28d7f99b2d2c50da86bd3ae59a8ecd","unresolved":false,"context_lines":[{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":9,"context_line":"# not use this file except in compliance with the License. You may obtain"},{"line_number":10,"context_line":"#    a copy of the License at"},{"line_number":11,"context_line":"#"},{"line_number":12,"context_line":"#         http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":13,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_5e41cc0a","line":10,"in_reply_to":"1ac06dbe_adadb7ea","updated":"2016-08-25 10:59:37.000000000","message":"Restored original indents.","commit_id":"04c5620c69879dc3cbdc6c461a073cc749bdc0ef"}],"openstack_dashboard/contrib/developer/profiler/api.py":[{"author":{"_account_id":19520,"name":"Kirill Bespalov","email":"kbespalov@mirantis.com","username":"k.bespalov"},"change_message_id":"8f4f69f3b868c28963952e3fb0a6174b88ef82c5","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"def trace(function):"},{"line_number":105,"context_line":"    if not settings.OPENSTACK_PROFILER[\u0027enabled\u0027]:"},{"line_number":106,"context_line":"        return function"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def wrapper(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_4f3960d8","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":50},"updated":"2016-08-24 13:52:48.000000000","message":"To enable it we must set the value in the settings and obviously restart the service.\n\nCan we use also environment variables to enable profiling dynamically in the runtime ?","commit_id":"04c5620c69879dc3cbdc6c461a073cc749bdc0ef"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"94b12bc6d27c764da0fa21cd2b50248e1dd2d195","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"def trace(function):"},{"line_number":105,"context_line":"    if not settings.OPENSTACK_PROFILER[\u0027enabled\u0027]:"},{"line_number":106,"context_line":"        return function"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def wrapper(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_297b7cc2","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":49},"updated":"2016-08-23 18:05:17.000000000","message":"We need to consider cases where OPENSTACK_PROFILER is not defined in settings module and OPENSTACK_PROFILER has no key named \u0027enabled\u0027.","commit_id":"04c5620c69879dc3cbdc6c461a073cc749bdc0ef"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"06f599395095d53607f4858cba1c5afedf1b04d9","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"def trace(function):"},{"line_number":105,"context_line":"    if not settings.OPENSTACK_PROFILER[\u0027enabled\u0027]:"},{"line_number":106,"context_line":"        return function"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def wrapper(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_2fca246f","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":49},"in_reply_to":"1ac06dbe_297b7cc2","updated":"2016-08-24 13:55:54.000000000","message":"Akihiro, \u0027enabled\u0027 key is the only key defined explicitly in settings.py above. We really mean it\u0027s there, if it\u0027s not, then something is broken in settings.","commit_id":"04c5620c69879dc3cbdc6c461a073cc749bdc0ef"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"06f599395095d53607f4858cba1c5afedf1b04d9","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"def trace(function):"},{"line_number":105,"context_line":"    if not settings.OPENSTACK_PROFILER[\u0027enabled\u0027]:"},{"line_number":106,"context_line":"        return function"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def wrapper(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":27,"id":"1ac06dbe_2ff504cb","line":105,"range":{"start_line":105,"start_character":11,"end_line":105,"end_character":50},"in_reply_to":"1ac06dbe_4f3960d8","updated":"2016-08-24 13:55:54.000000000","message":"Using environment variables is obviously not the way that Apache\u0027s behavior could be dynamically changed :/.","commit_id":"04c5620c69879dc3cbdc6c461a073cc749bdc0ef"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"def trace(function):"},{"line_number":103,"context_line":"    if not settings.OPENSTACK_PROFILER[\u0027enabled\u0027]:"},{"line_number":104,"context_line":"        return function"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def wrapper(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_0c0ca093","line":103,"updated":"2016-11-15 00:52:51.000000000","message":"safer settings check?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":100,"context_line":""},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"def trace(function):"},{"line_number":103,"context_line":"    if not settings.OPENSTACK_PROFILER[\u0027enabled\u0027]:"},{"line_number":104,"context_line":"        return function"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def wrapper(*args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_f081e74e","line":103,"in_reply_to":"7a77a97e_0c0ca093","updated":"2016-11-15 10:04:23.000000000","message":"Done","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"b6110ec7dc494b287831997ad013f7d1e8e2379e","unresolved":false,"context_lines":[{"line_number":101,"context_line":""},{"line_number":102,"context_line":"def trace(function):"},{"line_number":103,"context_line":"    if not PROFILER_SETTINGS.get(\u0027enabled\u0027, False):"},{"line_number":104,"context_line":"        return function"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    def wrapper(*args, **kwargs):"},{"line_number":107,"context_line":"        info_args \u003d {}"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_61ab121e","line":104,"updated":"2016-11-16 11:05:50.000000000","message":"I wonder if it would make sense to move this check outside, to the global level, and define different \"trace\" functions depending on the setting?","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"b6110ec7dc494b287831997ad013f7d1e8e2379e","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        func_name \u003d function.__module__ + \u0027.\u0027 + function.__name__"},{"line_number":109,"context_line":"        decorator \u003d profiler.trace(func_name,"},{"line_number":110,"context_line":"                                   info\u003dinfo_args, hide_args\u003dFalse,"},{"line_number":111,"context_line":"                                   allow_multiple_trace\u003dTrue)"},{"line_number":112,"context_line":"        wrapped \u003d decorator(function)"},{"line_number":113,"context_line":"        return wrapped(*args, **kwargs)"},{"line_number":114,"context_line":""}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_a118ca85","line":111,"updated":"2016-11-16 11:05:50.000000000","message":"Does this have to be called on every function call? Can\u0027t it be moved one level to the outside, to only be called when the function is being defined?","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"fd3afebadd7cae03007c7078ba63b7361b92e987","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        wrapped \u003d decorator(function)"},{"line_number":113,"context_line":"        return wrapped(*args, **kwargs)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    return wrapper"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_b38ca180","line":115,"updated":"2016-11-16 11:10:34.000000000","message":"Something like:\n\n    if not PROFILER_SETTINGS.get(\u0027enabled\u0027, False):\n        def trace(function):\n            return function\n    else:\n        def trace(function):\n            info_args \u003d {}\n            func_name \u003d function.__module__ + \u0027.\u0027 + function.__name__\n            decorator \u003d profiler.trace(func_name,\n                                       info\u003dinfo_args, hide_args\u003dFalse,\n                                       allow_multiple_trace\u003dTrue)\n            return decorator(function)","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"3fd6b78db407673af5255386aa296ae1de04ce1b","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        wrapped \u003d decorator(function)"},{"line_number":113,"context_line":"        return wrapped(*args, **kwargs)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    return wrapper"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_43b89ec8","line":115,"in_reply_to":"7a77a97e_3aed8bef","updated":"2016-11-17 11:23:31.000000000","message":"I think you are still creating the decorator on every call to the function.","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"1a0148539acc13b535f87c1e075538194d8fe68b","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        wrapped \u003d decorator(function)"},{"line_number":113,"context_line":"        return wrapped(*args, **kwargs)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    return wrapper"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_2e1629f1","line":115,"in_reply_to":"7a77a97e_43b89ec8","updated":"2016-11-17 12:05:40.000000000","message":"My bad, didn\u0027t realize the first that you meant 2 different things.","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"1d3ff9d31baf19770328fcf2193a1d2c960865a2","unresolved":false,"context_lines":[{"line_number":112,"context_line":"        wrapped \u003d decorator(function)"},{"line_number":113,"context_line":"        return wrapped(*args, **kwargs)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    return wrapper"}],"source_content_type":"text/x-python","patch_set":53,"id":"7a77a97e_3aed8bef","line":115,"in_reply_to":"7a77a97e_b38ca180","updated":"2016-11-17 10:13:26.000000000","message":"Totally makes sense to me, fixed!","commit_id":"f254a017054495d26fc19c2dee0adfe9d963e6ca"},{"author":{"_account_id":8648,"name":"Radomir Dopieralski","email":"openstack@dopieralski.pl","username":"thesheep"},"change_message_id":"99a86957bf496a7c15d15500e0440aca56919ae2","unresolved":false,"context_lines":[{"line_number":111,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":112,"context_line":"            return wrapped(*args, **kwargs)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        return wrapper"}],"source_content_type":"text/x-python","patch_set":56,"id":"7a77a97e_ce002069","line":114,"updated":"2016-11-18 11:02:14.000000000","message":"Why do you need the wrapper? It literally does nothing. You can just return decorator(function) directly.","commit_id":"a4d3517af03f762c5074a8670ee27850d3c7a308"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"a3a3fa564998c8a5b7eea67deaf837ec1e57252e","unresolved":false,"context_lines":[{"line_number":111,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":112,"context_line":"            return wrapped(*args, **kwargs)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        return wrapper"}],"source_content_type":"text/x-python","patch_set":56,"id":"7a77a97e_c99e5a06","line":114,"in_reply_to":"7a77a97e_ce002069","updated":"2016-11-18 11:25:53.000000000","message":"Damn true!","commit_id":"a4d3517af03f762c5074a8670ee27850d3c7a308"}],"openstack_dashboard/usage/quotas.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"b38224d9f5ebcf1ac3c2c09422ef0dde8f262d0f","unresolved":false,"context_lines":[{"line_number":368,"context_line":""},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"@profiler.trace"},{"line_number":371,"context_line":"def _get_tenant_volume_usages(request, usages, disabled_quotas, tenant_id):"},{"line_number":372,"context_line":"    if \u0027volumes\u0027 not in disabled_quotas:"},{"line_number":373,"context_line":"        try:"},{"line_number":374,"context_line":"            if tenant_id:"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_0c83c0cd","line":371,"updated":"2016-11-15 00:52:51.000000000","message":"this looks like double profiling with the cinder calls below.","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"},{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"3e465f8486446f52a1d5d234c7956aba2d69de6a","unresolved":false,"context_lines":[{"line_number":368,"context_line":""},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"@profiler.trace"},{"line_number":371,"context_line":"def _get_tenant_volume_usages(request, usages, disabled_quotas, tenant_id):"},{"line_number":372,"context_line":"    if \u0027volumes\u0027 not in disabled_quotas:"},{"line_number":373,"context_line":"        try:"},{"line_number":374,"context_line":"            if tenant_id:"}],"source_content_type":"text/x-python","patch_set":51,"id":"7a77a97e_70ddd76f","line":371,"in_reply_to":"7a77a97e_0c83c0cd","updated":"2016-11-15 10:04:23.000000000","message":"The idea is to trace the combined time of calls to cinder related to quotas usage. I guess the summed up time is bad, but how bad is it?","commit_id":"479e94327fc61bafa63c2f0cc16508ff2d842491"}],"releasenotes/notes/openstack-profiler-at-developer-dashboard-da1b1556e30aa858.yaml":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4a5ba40c8d6a56abd280559f279c64ffa204518a","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - A new Profiler panel in the Developer dashboard is"},{"line_number":4,"context_line":"    introduced. It integrates"},{"line_number":5,"context_line":"    `osprofiler library \u003chttps://github.com/openstack/osprofiler\u003e`_"},{"line_number":6,"context_line":"    into horizon, thus implementing"},{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_11af932a","line":5,"range":{"start_line":5,"start_character":25,"end_line":5,"end_character":64},"updated":"2016-08-30 09:11:54.000000000","message":"As a release note, I think it is better to point to http://docs.openstack.org/developer/osprofiler/ or at least git.openstack.org rather than github.com.","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"887e99d4303934766423c2a175efd9863dbf2ba9","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - A new Profiler panel in the Developer dashboard is"},{"line_number":4,"context_line":"    introduced. It integrates"},{"line_number":5,"context_line":"    `osprofiler library \u003chttps://github.com/openstack/osprofiler\u003e`_"},{"line_number":6,"context_line":"    into horizon, thus implementing"},{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_fe762505","line":5,"range":{"start_line":5,"start_character":25,"end_line":5,"end_character":64},"in_reply_to":"fa7ab95a_11af932a","updated":"2016-08-31 14:57:00.000000000","message":"Done","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4a5ba40c8d6a56abd280559f279c64ffa204518a","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    `osprofiler library \u003chttps://github.com/openstack/osprofiler\u003e`_"},{"line_number":6,"context_line":"    into horizon, thus implementing"},{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_df7ff712","line":8,"range":{"start_line":8,"start_character":34,"end_line":8,"end_character":38},"updated":"2016-08-30 09:11:54.000000000","message":"- A comma -\u003e a period\n- to -\u003e To","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"887e99d4303934766423c2a175efd9863dbf2ba9","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    `osprofiler library \u003chttps://github.com/openstack/osprofiler\u003e`_"},{"line_number":6,"context_line":"    into horizon, thus implementing"},{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_1e74a9fb","line":8,"range":{"start_line":8,"start_character":34,"end_line":8,"end_character":38},"in_reply_to":"fa7ab95a_df7ff712","updated":"2016-08-31 14:57:00.000000000","message":"Done","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4a5ba40c8d6a56abd280559f279c64ffa204518a","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    into horizon, thus implementing"},{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"},{"line_number":12,"context_line":"    (say, in a Devstack VM). MongoDB should be installed"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_dfa617ad","line":9,"range":{"start_line":9,"start_character":19,"end_line":9,"end_character":48},"updated":"2016-08-30 09:11:54.000000000","message":"It is better to be quoted by double backquote.\n\n  ``OPENSTACK_PROFILER[\u0027enabled\u0027]``","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"887e99d4303934766423c2a175efd9863dbf2ba9","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    into horizon, thus implementing"},{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"},{"line_number":12,"context_line":"    (say, in a Devstack VM). MongoDB should be installed"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_3e5fad76","line":9,"range":{"start_line":9,"start_character":19,"end_line":9,"end_character":48},"in_reply_to":"fa7ab95a_dfa617ad","updated":"2016-08-31 14:57:00.000000000","message":"Done","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4a5ba40c8d6a56abd280559f279c64ffa204518a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"},{"line_number":12,"context_line":"    (say, in a Devstack VM). MongoDB should be installed"},{"line_number":13,"context_line":"    `manually \u003chttps://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_1ff23f9a","line":10,"range":{"start_line":10,"start_character":7,"end_line":10,"end_character":13},"updated":"2016-08-30 09:11:54.000000000","message":"-\u003e ``True`` (need to use double backquotes)","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"887e99d4303934766423c2a175efd9863dbf2ba9","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"},{"line_number":12,"context_line":"    (say, in a Devstack VM). MongoDB should be installed"},{"line_number":13,"context_line":"    `manually \u003chttps://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition\u003e`_"}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_5e647148","line":10,"range":{"start_line":10,"start_character":7,"end_line":10,"end_character":13},"in_reply_to":"fa7ab95a_1ff23f9a","updated":"2016-08-31 14:57:00.000000000","message":"Done","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"4a5ba40c8d6a56abd280559f279c64ffa204518a","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"},{"line_number":12,"context_line":"    (say, in a Devstack VM). MongoDB should be installed"},{"line_number":13,"context_line":"    `manually \u003chttps://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition\u003e`_"},{"line_number":14,"context_line":"    and allowed to receive requests on 0.0.0.0 interface."}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_7fc26bea","line":11,"range":{"start_line":10,"start_character":21,"end_line":11,"end_character":60},"updated":"2016-08-30 09:11:54.000000000","message":"Is there any documentation how operators can customize it to fit their deployment? All-in-One environment is used only by developers and production systems use HA setup. How can operators configure the profiler panel to fit multiple keystone nodes? Some guide should be provided.","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"},{"author":{"_account_id":13325,"name":"Paul Karikh","email":"pkarikh@gmail.com","username":"paul.karikh"},"change_message_id":"887e99d4303934766423c2a175efd9863dbf2ba9","unresolved":false,"context_lines":[{"line_number":7,"context_line":"    `blueprint openstack-profiler-at-developer-dashboard \u003chttps://blueprints.launchpad.net/horizon/+spec/openstack-profiler-at-developer-dashboard\u003e`_."},{"line_number":8,"context_line":"    Initially profiler is disabled, to enable it you"},{"line_number":9,"context_line":"    have to change OPENSTACK_PROFILER[\u0027enabled\u0027] value"},{"line_number":10,"context_line":"    to `True`. Also, by default it expects MongoDB cluster"},{"line_number":11,"context_line":"    to be present on the same host where Keystone is located"},{"line_number":12,"context_line":"    (say, in a Devstack VM). MongoDB should be installed"},{"line_number":13,"context_line":"    `manually \u003chttps://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition\u003e`_"},{"line_number":14,"context_line":"    and allowed to receive requests on 0.0.0.0 interface."}],"source_content_type":"text/x-yaml","patch_set":34,"id":"fa7ab95a_8c7881fa","line":11,"range":{"start_line":10,"start_character":21,"end_line":11,"end_character":60},"in_reply_to":"fa7ab95a_7fc26bea","updated":"2016-08-31 14:57:00.000000000","message":"I updated this line with small explanation how to configure it.","commit_id":"dadc4181ceb0b84fabfd11faa4a9dda23c33b1d0"}],"requirements.txt":[{"author":{"_account_id":8040,"name":"Timur Sufiev","email":"tsufiev@gmail.com","username":"tsufiev"},"change_message_id":"f03550075e1ccd6e7fd56f839a9dab5e40190f85","unresolved":false,"context_lines":[{"line_number":18,"context_line":"django-pyscss\u003e\u003d2.0.2 # BSD License (2 clause)"},{"line_number":19,"context_line":"iso8601\u003e\u003d0.1.11 # MIT"},{"line_number":20,"context_line":"netaddr!\u003d0.7.16,\u003e\u003d0.7.12 # BSD"},{"line_number":21,"context_line":"osprofiler\u003e\u003d1.4 # Apache-2.0"},{"line_number":22,"context_line":"oslo.concurrency\u003e\u003d3.8.0 # Apache-2.0"},{"line_number":23,"context_line":"oslo.config\u003e\u003d3.14.0 # Apache-2.0"},{"line_number":24,"context_line":"oslo.i18n\u003e\u003d2.1.0 # Apache-2.0"}],"source_content_type":"text/plain","patch_set":21,"id":"3ac371cc_a521c7fd","line":21,"range":{"start_line":21,"start_character":0,"end_line":21,"end_character":28},"updated":"2016-08-16 10:32:28.000000000","message":"Not needed, see line 29. Unit tests are run using upper-constraints which already contain osprofiler\u003d\u003d1.4.0, while pip installs the highest possible version. We should be fine w/o this string.","commit_id":"47b6b83075110db0b814addf19302ce7656da5d7"}]}
