)]}'
{"horizon/static/horizon/js/angular/services/hz.api.features.js":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b17299de73702b2cf1326c644389a2991039f27b","unresolved":false,"context_lines":[{"line_number":92,"context_line":"     ```"},{"line_number":93,"context_line":"     */"},{"line_number":94,"context_line":"    function ifEnabled(feature, options) {"},{"line_number":95,"context_line":"      options \u003d angular.extend({}, {enabled: false}, options);"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"      return settingsService.ifEnabled("},{"line_number":98,"context_line":"        \u0027FEATURES.\u0027 + feature + \u0027.enabled\u0027,"}],"source_content_type":"text/javascript","patch_set":7,"id":"3acd31a7_de6c3537","line":95,"updated":"2015-05-04 23:35:03.000000000","message":"can be shorten to angular.extend({ enabled: false }, options)","commit_id":"b57b3b975f0606c30459560892180a28e57d2c7d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"2f6cd8f758969d4172d242103922f00774e357b5","unresolved":false,"context_lines":[{"line_number":92,"context_line":"     ```"},{"line_number":93,"context_line":"     */"},{"line_number":94,"context_line":"    function ifEnabled(feature, options) {"},{"line_number":95,"context_line":"      options \u003d angular.extend({}, {enabled: false}, options);"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"      return settingsService.ifEnabled("},{"line_number":98,"context_line":"        \u0027FEATURES.\u0027 + feature + \u0027.enabled\u0027,"}],"source_content_type":"text/javascript","patch_set":7,"id":"3acd31a7_841aeb7b","line":95,"in_reply_to":"3acd31a7_de6c3537","updated":"2015-05-05 05:09:38.000000000","message":"Done","commit_id":"b57b3b975f0606c30459560892180a28e57d2c7d"}],"openstack_dashboard/local/local_settings.py.example":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b17299de73702b2cf1326c644389a2991039f27b","unresolved":false,"context_lines":[{"line_number":199,"context_line":"# LAUNCH_INSTANCE_LEGACY_ENABLED and LAUNCH_INSTANCE_NG_ENABLED"},{"line_number":200,"context_line":"# have been moved to FEATURES.LAUNCH_INSTANCE_LEGACY"},{"line_number":201,"context_line":"# and LAUNCH_INSTANCE_NG respectively. Use the FEATURES section"},{"line_number":202,"context_line":"# to manage these settings."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"# The Xen Hypervisor has the ability to set the mount point for volumes"},{"line_number":205,"context_line":"# attached to instances (other Hypervisors currently do not). Setting"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3acd31a7_3e58c989","line":202,"updated":"2015-05-04 23:35:03.000000000","message":"should we just remove this?","commit_id":"b57b3b975f0606c30459560892180a28e57d2c7d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"2f6cd8f758969d4172d242103922f00774e357b5","unresolved":false,"context_lines":[{"line_number":199,"context_line":"# LAUNCH_INSTANCE_LEGACY_ENABLED and LAUNCH_INSTANCE_NG_ENABLED"},{"line_number":200,"context_line":"# have been moved to FEATURES.LAUNCH_INSTANCE_LEGACY"},{"line_number":201,"context_line":"# and LAUNCH_INSTANCE_NG respectively. Use the FEATURES section"},{"line_number":202,"context_line":"# to manage these settings."},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"# The Xen Hypervisor has the ability to set the mount point for volumes"},{"line_number":205,"context_line":"# attached to instances (other Hypervisors currently do not). Setting"}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3acd31a7_e4dcff74","line":202,"in_reply_to":"3acd31a7_3e58c989","updated":"2015-05-05 05:09:38.000000000","message":"I debated on this, but then thought that I should leave this in at least through the beginning of Liberty since I sent out a mailing list message about it a week or two ago as well as a youtube video where I tell people how to enable it. This way they\u0027d know where to go look instead.  (https://www.youtube.com/watch?v\u003de6MYAUzZZag)","commit_id":"b57b3b975f0606c30459560892180a28e57d2c7d"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"b17299de73702b2cf1326c644389a2991039f27b","unresolved":false,"context_lines":[{"line_number":637,"context_line":"    },"},{"line_number":638,"context_line":"    \u0027LAUNCH_INSTANCE_NG\u0027: {"},{"line_number":639,"context_line":"        \u0027enabled\u0027: False,"},{"line_number":640,"context_line":"        \u0027status\u0027: \u0027beta\u0027"},{"line_number":641,"context_line":"    }"},{"line_number":642,"context_line":"}"},{"line_number":643,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3acd31a7_de53156a","line":640,"updated":"2015-05-04 23:35:03.000000000","message":"should we provide a list of statuses (accompanied with some description)? or will this be free form? I prefer a preset list rather than seeing random statuses.","commit_id":"b57b3b975f0606c30459560892180a28e57d2c7d"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"2f6cd8f758969d4172d242103922f00774e357b5","unresolved":false,"context_lines":[{"line_number":637,"context_line":"    },"},{"line_number":638,"context_line":"    \u0027LAUNCH_INSTANCE_NG\u0027: {"},{"line_number":639,"context_line":"        \u0027enabled\u0027: False,"},{"line_number":640,"context_line":"        \u0027status\u0027: \u0027beta\u0027"},{"line_number":641,"context_line":"    }"},{"line_number":642,"context_line":"}"},{"line_number":643,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":7,"id":"3acd31a7_a4c3a756","line":640,"in_reply_to":"3acd31a7_de53156a","updated":"2015-05-05 05:09:38.000000000","message":"Done.\n\nI also prefer a preset list. I\u0027ve added some proposed documentation, but not sure we should formalize it in code just yet.\n\nBelow is a bigger idea of how we could do it in code, but didn\u0027t think we should do it in this patch. We could follow on later with it if needed, because it builds on the current patch and doesn\u0027t conflict with it (enabled True / False would still take precendent).\n\nThe idea is that the status is really an ordered list of configurable stages.  We\u0027d have some default list of stages, but customers could always add more.\n\nYou could then enabled all features at a certain status level by setting the \"enabled_status\" value to the minimum status you want enabled.  However, just like the current patch, manually setting the enabled toggle on any specific feature would force it to be enabled / disabled regardless of the enabled status. Kind of like log level settings.\n\nSo in psuedo-ish code:\nFEATURES \u003d {\n    \u0027status_stages\u0027: [\"EXPERIMENTAL\", \"BETA\", \"SUPPORTED\"],\n\n    \u0027enabled_status\u0027: \u0027SUPPORTED\u0027,\n\n    \u0027LAUNCH_INSTANCE_LEGACY\u0027: {\n        \u0027status\u0027: \u0027SUPPORTED\u0027,\n    },\n    \u0027LAUNCH_INSTANCE_NG\u0027: {\n        \u0027enabled\u0027: True,\n        \u0027status\u0027: \u0027BETA\u0027,\n    },\n    \u0027IDENTITY_USERS_NG\u0027: {\n        \u0027enabled\u0027: True,\n        \u0027status\u0027: \u0027EXPERIMENTAL\u0027,\n    }\n}\n\ndef is_enabled(feature):\n    return feature.enabled is not False and (feature.enabled or (\n        FEATURES.status_stages.index(feature.status) \u003e\u003d\n        FEATURES.status_stages.index(feature.enabled_stage)))","commit_id":"b57b3b975f0606c30459560892180a28e57d2c7d"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"fe166d7ac02151403ca489d3e7a1da7ccdf7a465","unresolved":false,"context_lines":[{"line_number":619,"context_line":"# If it is not specified, the feature will default to disabled unless the code"},{"line_number":620,"context_line":"# looking up the feature specifies a different default."},{"line_number":621,"context_line":""},{"line_number":622,"context_line":"FEATURES \u003d {"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    # The Launch Instance user experience has been significantly enhanced."},{"line_number":625,"context_line":"    # You can choose whether to enable the new launch instance experience,"}],"source_content_type":"application/octet-stream","patch_set":17,"id":"ba3cc151_903700b0","line":622,"updated":"2015-06-29 18:07:49.000000000","message":"This seems like a duplication of settings.","commit_id":"69748482084b9cd4d0f5825a418e80d8c90de3a3"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"7f14e9fea7cf027833df409bf4475a6129eb886c","unresolved":false,"context_lines":[{"line_number":619,"context_line":"# If it is not specified, the feature will default to disabled unless the code"},{"line_number":620,"context_line":"# looking up the feature specifies a different default."},{"line_number":621,"context_line":""},{"line_number":622,"context_line":"FEATURES \u003d {"},{"line_number":623,"context_line":""},{"line_number":624,"context_line":"    # The Launch Instance user experience has been significantly enhanced."},{"line_number":625,"context_line":"    # You can choose whether to enable the new launch instance experience,"}],"source_content_type":"application/octet-stream","patch_set":17,"id":"ba3cc151_37c29c34","line":622,"in_reply_to":"ba3cc151_903700b0","updated":"2015-06-30 01:10:17.000000000","message":"It is, I think the intention is for patch to land first and switch the launch instance over to this.","commit_id":"69748482084b9cd4d0f5825a418e80d8c90de3a3"}],"openstack_dashboard/static/openstack-service-api/features.service.js":[{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"514217ef3fad6c3762f2305025c560c78bd6cd10","unresolved":false,"context_lines":[{"line_number":16,"context_line":"(function () {"},{"line_number":17,"context_line":"  \u0027use strict\u0027;"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"  angular.module(\u0027horizon.openstack-service-api\u0027)"},{"line_number":20,"context_line":"    .factory(\u0027horizon.openstack-service-api.features\u0027, featuresService);"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"  featuresService.$inject \u003d [\u0027horizon.openstack-service-api.settings\u0027];"}],"source_content_type":"text/javascript","patch_set":20,"id":"ba3cc151_1ace5f5a","line":19,"updated":"2015-07-01 06:24:34.000000000","message":"code style:\n\nangular\n    .module(\u0027horizon.openstack-service-api\u0027)\n    .factory(\u0027horizon.openstack-service-api.features\u0027, featuresService);","commit_id":"3346d97f3b8dc4c4cc722efe84a2e9497c04b1c9"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"455a87e0a1673306055d17c90d14998a0474b21b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"(function () {"},{"line_number":17,"context_line":"  \u0027use strict\u0027;"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"  angular.module(\u0027horizon.openstack-service-api\u0027)"},{"line_number":20,"context_line":"    .factory(\u0027horizon.openstack-service-api.features\u0027, featuresService);"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"  featuresService.$inject \u003d [\u0027horizon.openstack-service-api.settings\u0027];"}],"source_content_type":"text/javascript","patch_set":20,"id":"ba3cc151_8d679824","line":19,"in_reply_to":"ba3cc151_1ace5f5a","updated":"2015-07-01 08:16:47.000000000","message":"Done","commit_id":"3346d97f3b8dc4c4cc722efe84a2e9497c04b1c9"}],"openstack_dashboard/static/openstack-service-api/features.service.spec.js":[{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"514217ef3fad6c3762f2305025c560c78bd6cd10","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      var onEnabled \u003d function () {"},{"line_number":61,"context_line":"        expectedResult.enabled \u003d true;"},{"line_number":62,"context_line":"      };"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      var onNotEnabled \u003d function () {"},{"line_number":65,"context_line":"        expectedResult.enabled \u003d false;"}],"source_content_type":"text/javascript","patch_set":20,"id":"ba3cc151_1ad89fee","line":62,"updated":"2015-07-01 06:24:34.000000000","message":"use function declaration:\n\nfunction onEnabled() {\n  expectedResult.enabled \u003d true;\n}","commit_id":"3346d97f3b8dc4c4cc722efe84a2e9497c04b1c9"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"455a87e0a1673306055d17c90d14998a0474b21b","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      var onEnabled \u003d function () {"},{"line_number":61,"context_line":"        expectedResult.enabled \u003d true;"},{"line_number":62,"context_line":"      };"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      var onNotEnabled \u003d function () {"},{"line_number":65,"context_line":"        expectedResult.enabled \u003d false;"}],"source_content_type":"text/javascript","patch_set":20,"id":"ba3cc151_cd54c022","line":62,"in_reply_to":"ba3cc151_1ad89fee","updated":"2015-07-01 08:16:47.000000000","message":"Whoops! Good catch. Done","commit_id":"3346d97f3b8dc4c4cc722efe84a2e9497c04b1c9"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"514217ef3fad6c3762f2305025c560c78bd6cd10","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        expectedResult.enabled \u003d true;"},{"line_number":62,"context_line":"      };"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      var onNotEnabled \u003d function () {"},{"line_number":65,"context_line":"        expectedResult.enabled \u003d false;"},{"line_number":66,"context_line":"      };"},{"line_number":67,"context_line":""}],"source_content_type":"text/javascript","patch_set":20,"id":"ba3cc151_5aece78e","line":64,"updated":"2015-07-01 06:24:34.000000000","message":"use function declaration.","commit_id":"3346d97f3b8dc4c4cc722efe84a2e9497c04b1c9"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"455a87e0a1673306055d17c90d14998a0474b21b","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        expectedResult.enabled \u003d true;"},{"line_number":62,"context_line":"      };"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      var onNotEnabled \u003d function () {"},{"line_number":65,"context_line":"        expectedResult.enabled \u003d false;"},{"line_number":66,"context_line":"      };"},{"line_number":67,"context_line":""}],"source_content_type":"text/javascript","patch_set":20,"id":"ba3cc151_ed2664cd","line":64,"in_reply_to":"ba3cc151_5aece78e","updated":"2015-07-01 08:16:47.000000000","message":"Done","commit_id":"3346d97f3b8dc4c4cc722efe84a2e9497c04b1c9"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"2921377e6ffdf4846a562a0a9e5421e964d70127","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"      function onEnabled() {"},{"line_number":61,"context_line":"        expectedResult.enabled \u003d true;"},{"line_number":62,"context_line":"      };"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      function onNotEnabled() {"},{"line_number":65,"context_line":"        expectedResult.enabled \u003d false;"}],"source_content_type":"text/javascript","patch_set":21,"id":"ba3cc151_121ff86c","line":62,"updated":"2015-07-01 21:38:59.000000000","message":"remove `;`.","commit_id":"d0a1736d5f5bee4d4c3dc0d65b1ce32bd9c049a9"},{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"2921377e6ffdf4846a562a0a9e5421e964d70127","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"      function onNotEnabled() {"},{"line_number":65,"context_line":"        expectedResult.enabled \u003d false;"},{"line_number":66,"context_line":"      };"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"      beforeEach(inject(function () {"},{"line_number":69,"context_line":"        expectedResult \u003d {enabled: null};"}],"source_content_type":"text/javascript","patch_set":21,"id":"ba3cc151_720e843c","line":66,"updated":"2015-07-01 21:38:59.000000000","message":"same here.","commit_id":"d0a1736d5f5bee4d4c3dc0d65b1ce32bd9c049a9"}],"openstack_dashboard/test/tests/utils.py":[{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"274b817ce821e007dc6b582470f0c00bfd97ae1f","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def test_enabled_feature(self):"},{"line_number":73,"context_line":"        self.assertTrue(features.enabled(\u0027ENABLED_FEATURE\u0027))"},{"line_number":74,"context_line":"        self.assertTrue(features.enabled(\u0027ENABLED_FEATURE\u0027, True))"},{"line_number":75,"context_line":"        self.assertTrue(features.enabled(\u0027ENABLED_FEATURE\u0027, False))"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def test_not_enabled_feature(self):"},{"line_number":78,"context_line":"        self.assertFalse(features.enabled(\u0027NOT_ENABLED_FEATURE\u0027))"}],"source_content_type":"text/x-python","patch_set":17,"id":"ba3cc151_f70af4d1","line":75,"updated":"2015-06-30 01:01:49.000000000","message":"I believe second argument is the default value, but this value only gets used if the feature doesn\u0027t explicitly have enabled defined. At first glance, it was quite confusing.\n\nSome questions to consider, when will we ever want to enable a feature by default? If it should be enabled by default, then what is the point of using this feature?","commit_id":"69748482084b9cd4d0f5825a418e80d8c90de3a3"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"12f2c222d043e5f3dcc45e2ae1c68121ba5c3f7a","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    def test_enabled_feature(self):"},{"line_number":73,"context_line":"        self.assertTrue(features.enabled(\u0027ENABLED_FEATURE\u0027))"},{"line_number":74,"context_line":"        self.assertTrue(features.enabled(\u0027ENABLED_FEATURE\u0027, True))"},{"line_number":75,"context_line":"        self.assertTrue(features.enabled(\u0027ENABLED_FEATURE\u0027, False))"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def test_not_enabled_feature(self):"},{"line_number":78,"context_line":"        self.assertFalse(features.enabled(\u0027NOT_ENABLED_FEATURE\u0027))"}],"source_content_type":"text/x-python","patch_set":17,"id":"ba3cc151_f1164bf0","line":75,"in_reply_to":"ba3cc151_f70af4d1","updated":"2015-07-01 00:04:34.000000000","message":"@Thai Point 1: Default Value\n\nThe default concept is modeled after getattr in python:\n\nFrom: https://docs.python.org/2/library/functions.html#getattr\n\n\"If the named attribute does not exist, default is returned if provided, otherwise AttributeError is raised.\"\n\nIn looking at my source, I actually made it a keyword argument instead. E.g. default\u003dTrue or default\u003dFalse.  So, updated.\n\n@Thai Point 2: Enabled by Default\n\nThis is a good question. On a specific response to your question, here is another question: Should we switch the logic to default to True? Or we could make that a setting itself where it is a choice of whether you are blacklisting vs whitelisting?\n\nFEATURES \u003d {\n  \u0027enable_by_default\u0027: True,\n}\n\nFrom the potentially YAGNI department and sort of tangential to your questions: in earlier patches, I had the idea that features maybe could be set to a status (beta, supported, deprecated) or perhaps just set to an arbitrary group. Maybe a group could default or maybe default is just at attribute. The way that they would be defined is be setting an extra attribute in the feature object.  So in the below, Feature 2, 3, 4 would all be enabled. (keep in mind that this patch doesn\u0027t support this concept other than it could be extended in the future to support this.)\n\nFEATURES \u003d {\n   \u0027enabled_groups\u0027: [\u0027DEFAULTS\u0027, \u0027HYPERVISORS\u0027],\n    \u0027FEATURE1\u0027: {\n        \u0027groups\u0027: [\u0027CONTAINERS\u0027,]\n    },\n    \u0027FEATURE2: {\n        \u0027groups\u0027: [\u0027CONTAINERS\u0027,\u0027HYPERVISORS\u0027]\n    },\n    \u0027FEATURE3\u0027: {\t\n        \u0027groups\u0027: [\u0027DEFAULTS\u0027, \u0027HYPERVISORS\u0027]\n    },\n    \u0027FEATURE4\u0027: {\t\n        \u0027groups\u0027: [\u0027DEFAULTS\u0027]\n    }\n\n}","commit_id":"69748482084b9cd4d0f5825a418e80d8c90de3a3"}],"openstack_dashboard/utils/features.py":[{"author":{"_account_id":13805,"name":"Shaoquan Chen","email":"sean.chen2@hp.com","username":"SeanChen"},"change_message_id":"11e7b6208cb52c764f579ba278bc2c430c16ad83","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    This looks at the following sample structure in local_settings.py"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    FEATURE \u003d {"},{"line_number":24,"context_line":"        \u0027LAUNCH_INSTANCE_LEGACY\u0027: {"},{"line_number":25,"context_line":"            \u0027enabled\u0027: True"},{"line_number":26,"context_line":"        },"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa32b979_c614c745","line":23,"updated":"2015-06-16 01:14:42.000000000","message":"typo, should be FEATURES","commit_id":"f59d62dafebc5c02de82bef091bf9cc8726aec23"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ac22be84a7cf2e0fe048e7f999a0c72da2dcc51e","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    This looks at the following sample structure in local_settings.py"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    FEATURE \u003d {"},{"line_number":24,"context_line":"        \u0027LAUNCH_INSTANCE_LEGACY\u0027: {"},{"line_number":25,"context_line":"            \u0027enabled\u0027: True"},{"line_number":26,"context_line":"        },"}],"source_content_type":"text/x-python","patch_set":15,"id":"fa32b979_ad8cdf35","line":23,"in_reply_to":"fa32b979_c614c745","updated":"2015-06-16 16:17:05.000000000","message":"done","commit_id":"f59d62dafebc5c02de82bef091bf9cc8726aec23"},{"author":{"_account_id":9576,"name":"Thai Tran","email":"tqtran@us.ibm.com","username":"tqtran"},"change_message_id":"274b817ce821e007dc6b582470f0c00bfd97ae1f","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    :param default what to return if the feature is not found."},{"line_number":41,"context_line":"    \"\"\""},{"line_number":42,"context_line":"    features \u003d getattr(settings, \"FEATURES\", {})"},{"line_number":43,"context_line":"    return (features.get(feature, {}).get(\u0027enabled\u0027, default)) is True"}],"source_content_type":"text/x-python","patch_set":17,"id":"ba3cc151_17e8b80f","line":43,"updated":"2015-06-30 01:01:49.000000000","message":"Question: the \"is True\" at the end ensures what exactly? are we saying that enabled can be values other than true/false? if not, then the extra check might not be relevant.","commit_id":"69748482084b9cd4d0f5825a418e80d8c90de3a3"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"12f2c222d043e5f3dcc45e2ae1c68121ba5c3f7a","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    :param default what to return if the feature is not found."},{"line_number":41,"context_line":"    \"\"\""},{"line_number":42,"context_line":"    features \u003d getattr(settings, \"FEATURES\", {})"},{"line_number":43,"context_line":"    return (features.get(feature, {}).get(\u0027enabled\u0027, default)) is True"}],"source_content_type":"text/x-python","patch_set":17,"id":"ba3cc151_942c8d03","line":43,"in_reply_to":"ba3cc151_17e8b80f","updated":"2015-07-01 00:04:34.000000000","message":"Well, I removed it and the tests still passed, so apparently it is not necessary.  TBH, I can\u0027t remember at the moment if there was a good reason.  So it is gone.","commit_id":"69748482084b9cd4d0f5825a418e80d8c90de3a3"}]}
