)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"6d6c5936e164f40b74a6a5cd05bf91418d8d3216","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  of each Opt as the basis for the output.  This kind of exposes"},{"line_number":26,"context_line":"  the implementation of Opt, but I limit it to the public members"},{"line_number":27,"context_line":"  so maybe that\u0027s okay?"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"bp machine-readable-sample-config"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I236918f0c1da27358aace66914aae5c34afef301"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dfeb2761_6acb26a5","line":28,"updated":"2017-03-30 21:12:40.000000000","message":"A couple of other notes for my reference:\n\n-Help text seems to be inconsistently formatted.  Some have literal \\n in the text, others have actual newlines.  It would probably be good to normalize that in this output somehow.\n\n-Need to handle sample_defaults.  I don\u0027t believe this will do the right thing as-is.","commit_id":"ef12c3aecd03f4073fb6d4480649f2052943e240"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"683314e20648c31b2359c1419d93b44c4c2426a4","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  of each Opt as the basis for the output.  This kind of exposes"},{"line_number":26,"context_line":"  the implementation of Opt, but I limit it to the public members"},{"line_number":27,"context_line":"  so maybe that\u0027s okay?"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"bp machine-readable-sample-config"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I236918f0c1da27358aace66914aae5c34afef301"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dfeb2761_bddfba38","line":28,"in_reply_to":"dfeb2761_6acb26a5","updated":"2017-04-04 15:22:44.000000000","message":"\u003e -Help text seems to be inconsistently formatted.  Some have literal \\n in the text, others have actual newlines.  It would probably be good to normalize that in this output somehow.\n\nIMO, any form of normalization should occur later in the toolchain. There\u0027s likely more normalization that will need to be done (parsing as rST, for example) for many of said tools","commit_id":"ef12c3aecd03f4073fb6d4480649f2052943e240"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"3a1b134a595150a998258809b49c95a7bddede73","unresolved":false,"context_lines":[{"line_number":25,"context_line":"  of each Opt as the basis for the output.  This kind of exposes"},{"line_number":26,"context_line":"  the implementation of Opt, but I limit it to the public members"},{"line_number":27,"context_line":"  so maybe that\u0027s okay?"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"bp machine-readable-sample-config"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I236918f0c1da27358aace66914aae5c34afef301"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"dfeb2761_da6de4cc","line":28,"in_reply_to":"dfeb2761_6acb26a5","updated":"2017-04-04 15:06:00.000000000","message":"Actually, sample_defaults is probably fine.  It\u0027s included in the output so it\u0027s available for people to use, and as this is intended for deployment automation it probably isn\u0027t all that important anyway.  sample_default is oriented toward human users.","commit_id":"ef12c3aecd03f4073fb6d4480649f2052943e240"}],"oslo_config/generator.py":[{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        \u0027longer help text for Sphinx documents.\u0027),"},{"line_number":67,"context_line":"    cfg.StrOpt("},{"line_number":68,"context_line":"        \u0027format\u0027,"},{"line_number":69,"context_line":"        help\u003d\u0027Desired format for the output.  ini is the only one which can \u0027"},{"line_number":70,"context_line":"             \u0027be used directly with oslo.config.  json and yaml are intended \u0027"},{"line_number":71,"context_line":"             \u0027for third-party tools that want to write config files based on \u0027"},{"line_number":72,"context_line":"             \u0027the sample config data\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_6223cebe","line":69,"range":{"start_line":69,"start_character":45,"end_line":69,"end_character":46},"updated":"2017-04-19 16:25:33.000000000","message":"https://lifehacker.com/1656109447 :)\n\nSeriously though, these should probably go","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        \u0027longer help text for Sphinx documents.\u0027),"},{"line_number":67,"context_line":"    cfg.StrOpt("},{"line_number":68,"context_line":"        \u0027format\u0027,"},{"line_number":69,"context_line":"        help\u003d\u0027Desired format for the output.  ini is the only one which can \u0027"},{"line_number":70,"context_line":"             \u0027be used directly with oslo.config.  json and yaml are intended \u0027"},{"line_number":71,"context_line":"             \u0027for third-party tools that want to write config files based on \u0027"},{"line_number":72,"context_line":"             \u0027the sample config data\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_c81f6359","line":69,"range":{"start_line":69,"start_character":45,"end_line":69,"end_character":46},"in_reply_to":"7ffa3b31_6223cebe","updated":"2017-04-28 20:50:28.000000000","message":"Interestingly, I did not learn to type on a typewriter, but the people who taught me to type almost certainly did.  It\u0027s not something I\u0027ve ever cared enough about one way or another to try to break the habit. :-)","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":71,"context_line":"             \u0027for third-party tools that want to write config files based on \u0027"},{"line_number":72,"context_line":"             \u0027the sample config data\u0027,"},{"line_number":73,"context_line":"        default\u003d\u0027ini\u0027,"},{"line_number":74,"context_line":"        choices\u003d[\u0027ini\u0027, \u0027json\u0027, \u0027yaml\u0027],"},{"line_number":75,"context_line":"        dest\u003d\u0027format_\u0027),"},{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_82b37a98","line":74,"range":{"start_line":74,"start_character":25,"end_line":74,"end_character":29},"updated":"2017-04-19 16:25:33.000000000","message":"Personally I\u0027d just remove this - PyYAML is in g-r, I couldn\u0027t see why anyone would choose to store JSON over YAML, and the resulting code would be simpler. We could update the spec if that was an issue.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":3153,"name":"Emilien Macchi","email":"emilien@redhat.com","username":"emilienm"},"change_message_id":"fe3859e36d854c61f5e94ac54a225aa0460b7995","unresolved":false,"context_lines":[{"line_number":71,"context_line":"             \u0027for third-party tools that want to write config files based on \u0027"},{"line_number":72,"context_line":"             \u0027the sample config data\u0027,"},{"line_number":73,"context_line":"        default\u003d\u0027ini\u0027,"},{"line_number":74,"context_line":"        choices\u003d[\u0027ini\u0027, \u0027json\u0027, \u0027yaml\u0027],"},{"line_number":75,"context_line":"        dest\u003d\u0027format_\u0027),"},{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_0de63ae9","line":74,"range":{"start_line":74,"start_character":25,"end_line":74,"end_character":29},"in_reply_to":"7ffa3b31_82b37a98","updated":"2017-04-21 12:57:21.000000000","message":"I do agree with Stephen.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":71,"context_line":"             \u0027for third-party tools that want to write config files based on \u0027"},{"line_number":72,"context_line":"             \u0027the sample config data\u0027,"},{"line_number":73,"context_line":"        default\u003d\u0027ini\u0027,"},{"line_number":74,"context_line":"        choices\u003d[\u0027ini\u0027, \u0027json\u0027, \u0027yaml\u0027],"},{"line_number":75,"context_line":"        dest\u003d\u0027format_\u0027),"},{"line_number":76,"context_line":"]"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_5c02b20b","line":74,"range":{"start_line":74,"start_character":25,"end_line":74,"end_character":29},"in_reply_to":"7ffa3b31_82b37a98","updated":"2017-04-28 20:50:28.000000000","message":"People from other deployment tools kept asking for JSON specifically.  I don\u0027t know whether there was a reason for that (lack of YAML support in their tooling, perhaps) or if JSON was just their default for structured data.  Given that the only code we could drop if we didn\u0027t support JSON is the one \u0027if\u0027 at line 598 I thought it was worth just having both.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":520,"context_line":"    entry \u003d {key: value for key, value in opt.__dict__.items()"},{"line_number":521,"context_line":"             if not key.startswith(\u0027_\u0027)}"},{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    entry[\u0027choices\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027choices\u0027)"},{"line_number":524,"context_line":"    entry[\u0027min\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027min\u0027)"},{"line_number":525,"context_line":"    entry[\u0027max\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027max\u0027)"},{"line_number":526,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"},{"line_number":527,"context_line":"    deprecated_opts \u003d []"},{"line_number":528,"context_line":"    for deprecated_opt in entry[\u0027deprecated_opts\u0027]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_1d722f4a","line":525,"range":{"start_line":523,"start_character":0,"end_line":525,"end_character":52},"updated":"2017-04-19 16:25:33.000000000","message":"Does it really make sense to include these even for options that don\u0027t have them, e.g. StrOpt? Perhaps you could key on getattr or something?","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":520,"context_line":"    entry \u003d {key: value for key, value in opt.__dict__.items()"},{"line_number":521,"context_line":"             if not key.startswith(\u0027_\u0027)}"},{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    entry[\u0027choices\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027choices\u0027)"},{"line_number":524,"context_line":"    entry[\u0027min\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027min\u0027)"},{"line_number":525,"context_line":"    entry[\u0027max\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027max\u0027)"},{"line_number":526,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"},{"line_number":527,"context_line":"    deprecated_opts \u003d []"},{"line_number":528,"context_line":"    for deprecated_opt in entry[\u0027deprecated_opts\u0027]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_e831ff5b","line":525,"range":{"start_line":523,"start_character":0,"end_line":525,"end_character":52},"in_reply_to":"7ffa3b31_1d722f4a","updated":"2017-04-28 20:50:28.000000000","message":"Just personal preference.  I like having the structure of the data consistent so you don\u0027t have to check whether the key exists before looking at the value.  I\u0027m open to discussion with the future consumers of this as to which they prefer though.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":551,"context_line":"    \u0027deprecated_options\u0027 contains a dict mapping groups names to a list of"},{"line_number":552,"context_line":"    opts from that group which were deprecated."},{"line_number":553,"context_line":""},{"line_number":554,"context_line":"    \u0027generator_options\u0027 is a dict mapping the options for the sample config"},{"line_number":555,"context_line":"    generator itself to their values."},{"line_number":556,"context_line":""},{"line_number":557,"context_line":"    :param groups: A dict of groups as returned by _get_groups."},{"line_number":558,"context_line":"    :param conf: The ConfigOpts object containing the options for the"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_fd9c23c1","line":555,"range":{"start_line":554,"start_character":4,"end_line":555,"end_character":37},"updated":"2017-04-19 16:25:33.000000000","message":"What\u0027s the value of this information, especially given that many of the config options aren\u0027t even used for this \"mode\" (YAML mode). Who\u0027s the real world user for this?","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":551,"context_line":"    \u0027deprecated_options\u0027 contains a dict mapping groups names to a list of"},{"line_number":552,"context_line":"    opts from that group which were deprecated."},{"line_number":553,"context_line":""},{"line_number":554,"context_line":"    \u0027generator_options\u0027 is a dict mapping the options for the sample config"},{"line_number":555,"context_line":"    generator itself to their values."},{"line_number":556,"context_line":""},{"line_number":557,"context_line":"    :param groups: A dict of groups as returned by _get_groups."},{"line_number":558,"context_line":"    :param conf: The ConfigOpts object containing the options for the"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_88e83be2","line":555,"range":{"start_line":554,"start_character":4,"end_line":555,"end_character":37},"in_reply_to":"7ffa3b31_fd9c23c1","updated":"2017-04-28 20:50:28.000000000","message":"This was suggested on the spec: https://review.openstack.org/#/c/440835/1/specs/pike/machine-readable-sample-config.rst (the comments on line 86)\n\nThe current version is kind of a stub.  I think the use case was more to capture details about what versions of various dependencies were installed when the sample was generated, although knowing what namespaces were specified may also help people figure out why a given option was not included if something is missing.\n\nFleshing out this section seemed like a big enough piece of work that I wanted to save it for a follow-up though.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":561,"context_line":"    output_data \u003d {\u0027options\u0027: {},"},{"line_number":562,"context_line":"                   \u0027deprecated_options\u0027: {},"},{"line_number":563,"context_line":"                   \u0027generator_options\u0027: {}}"},{"line_number":564,"context_line":"    for k, v in groups.items():"},{"line_number":565,"context_line":"        output_data[\u0027options\u0027][k] \u003d {\u0027opts\u0027: [], \u0027help\u0027: None}"},{"line_number":566,"context_line":"        for namespace in v[\u0027namespaces\u0027]:"},{"line_number":567,"context_line":"            for opt in namespace[1]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_5de55708","line":564,"range":{"start_line":564,"start_character":8,"end_line":564,"end_character":13},"updated":"2017-04-19 16:25:33.000000000","message":"\"Report: needs better names\".","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":561,"context_line":"    output_data \u003d {\u0027options\u0027: {},"},{"line_number":562,"context_line":"                   \u0027deprecated_options\u0027: {},"},{"line_number":563,"context_line":"                   \u0027generator_options\u0027: {}}"},{"line_number":564,"context_line":"    for k, v in groups.items():"},{"line_number":565,"context_line":"        output_data[\u0027options\u0027][k] \u003d {\u0027opts\u0027: [], \u0027help\u0027: None}"},{"line_number":566,"context_line":"        for namespace in v[\u0027namespaces\u0027]:"},{"line_number":567,"context_line":"            for opt in namespace[1]:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_5db0b78a","line":564,"range":{"start_line":564,"start_character":8,"end_line":564,"end_character":13},"in_reply_to":"7ffa3b31_5de55708","updated":"2017-04-28 20:50:28.000000000","message":"Yeah, good point.  I actually meant to fix this before I pushed it.  It was even confusing me as I wrote the code. :-)","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":564,"context_line":"    for k, v in groups.items():"},{"line_number":565,"context_line":"        output_data[\u0027options\u0027][k] \u003d {\u0027opts\u0027: [], \u0027help\u0027: None}"},{"line_number":566,"context_line":"        for namespace in v[\u0027namespaces\u0027]:"},{"line_number":567,"context_line":"            for opt in namespace[1]:"},{"line_number":568,"context_line":"                if v[\u0027object\u0027]:"},{"line_number":569,"context_line":"                    output_data[\u0027options\u0027][k][\u0027help\u0027] \u003d v[\u0027object\u0027].help"},{"line_number":570,"context_line":"                entry \u003d _build_entry(opt, k, namespace[0], conf)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_bdda1b48","line":567,"range":{"start_line":567,"start_character":23,"end_line":567,"end_character":35},"updated":"2017-04-19 16:25:33.000000000","message":"This would be better as a named tuple. Wonder if you could convert that or at least add a comment? I\u0027d to go rooting to find out what this contained","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":564,"context_line":"    for k, v in groups.items():"},{"line_number":565,"context_line":"        output_data[\u0027options\u0027][k] \u003d {\u0027opts\u0027: [], \u0027help\u0027: None}"},{"line_number":566,"context_line":"        for namespace in v[\u0027namespaces\u0027]:"},{"line_number":567,"context_line":"            for opt in namespace[1]:"},{"line_number":568,"context_line":"                if v[\u0027object\u0027]:"},{"line_number":569,"context_line":"                    output_data[\u0027options\u0027][k][\u0027help\u0027] \u003d v[\u0027object\u0027].help"},{"line_number":570,"context_line":"                entry \u003d _build_entry(opt, k, namespace[0], conf)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_c881a3fd","line":567,"range":{"start_line":567,"start_character":23,"end_line":567,"end_character":35},"in_reply_to":"7ffa3b31_bdda1b48","updated":"2017-04-28 20:50:28.000000000","message":"This structure is actually coming from the existing code, _get_groups.  We could change it, but it would have an impact on the existing generator too.\n\nI can definitely leave a comment pointing at the _get_groups docstring that describes the structure though.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":571,"context_line":"                output_data[\u0027options\u0027][k][\u0027opts\u0027].append(entry)"},{"line_number":572,"context_line":"                # Need copies of the opts because we modify them"},{"line_number":573,"context_line":"                for deprecated_opt in copy.deepcopy(entry[\u0027deprecated_opts\u0027]):"},{"line_number":574,"context_line":"                    group \u003d deprecated_opt[\u0027group\u0027]"},{"line_number":575,"context_line":"                    deprecated_options \u003d output_data[\u0027deprecated_options\u0027]"},{"line_number":576,"context_line":"                    deprecated_options.setdefault(group, [])"},{"line_number":577,"context_line":"                    deprecated_opt[\u0027replacement_name\u0027] \u003d entry[\u0027name\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_bd3e9b88","line":574,"range":{"start_line":574,"start_character":29,"end_line":574,"end_character":51},"updated":"2017-04-19 16:25:33.000000000","message":"nit: could we do\n\n    group \u003d deprecated_opt.pop(\u0027group\u0027)\n\nand remove line 579 below?","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":571,"context_line":"                output_data[\u0027options\u0027][k][\u0027opts\u0027].append(entry)"},{"line_number":572,"context_line":"                # Need copies of the opts because we modify them"},{"line_number":573,"context_line":"                for deprecated_opt in copy.deepcopy(entry[\u0027deprecated_opts\u0027]):"},{"line_number":574,"context_line":"                    group \u003d deprecated_opt[\u0027group\u0027]"},{"line_number":575,"context_line":"                    deprecated_options \u003d output_data[\u0027deprecated_options\u0027]"},{"line_number":576,"context_line":"                    deprecated_options.setdefault(group, [])"},{"line_number":577,"context_line":"                    deprecated_opt[\u0027replacement_name\u0027] \u003d entry[\u0027name\u0027]"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_687ccf1e","line":574,"range":{"start_line":574,"start_character":29,"end_line":574,"end_character":51},"in_reply_to":"7ffa3b31_bd3e9b88","updated":"2017-04-28 20:50:28.000000000","message":"Looks like it.","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"512647b8e238d6bcd7be9840662c3cf721911ddd","unresolved":false,"context_lines":[{"line_number":575,"context_line":"                    deprecated_options \u003d output_data[\u0027deprecated_options\u0027]"},{"line_number":576,"context_line":"                    deprecated_options.setdefault(group, [])"},{"line_number":577,"context_line":"                    deprecated_opt[\u0027replacement_name\u0027] \u003d entry[\u0027name\u0027]"},{"line_number":578,"context_line":"                    deprecated_opt[\u0027replacement_group\u0027] \u003d k"},{"line_number":579,"context_line":"                    deprecated_opt.pop(\u0027group\u0027)"},{"line_number":580,"context_line":"                    deprecated_options[group].append(deprecated_opt)"},{"line_number":581,"context_line":"    for i in conf:"}],"source_content_type":"text/x-python","patch_set":2,"id":"7ffa3b31_dd6607c2","line":578,"range":{"start_line":578,"start_character":58,"end_line":578,"end_character":59},"updated":"2017-04-19 16:25:33.000000000","message":"this probably warrants a better name above, given how deep we\u0027re using it here","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"fb814c725c3c72fc0d3fcdbb3fb7f7cd477d50b1","unresolved":false,"context_lines":[{"line_number":578,"context_line":"                    deprecated_opt[\u0027replacement_group\u0027] \u003d k"},{"line_number":579,"context_line":"                    deprecated_opt.pop(\u0027group\u0027)"},{"line_number":580,"context_line":"                    deprecated_options[group].append(deprecated_opt)"},{"line_number":581,"context_line":"    for i in conf:"},{"line_number":582,"context_line":"        output_data[\u0027generator_options\u0027][i] \u003d conf[i]"},{"line_number":583,"context_line":"    return output_data"},{"line_number":584,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5ff73747_9385c609","line":581,"updated":"2017-04-28 20:50:28.000000000","message":"This is a totally useless loop...","commit_id":"88829ada72c0c9f7c9446e7ab0f598e92c48b934"},{"author":{"_account_id":1669,"name":"Julien Danjou","display_name":"jd","email":"julien@danjou.info","username":"jdanjou"},"change_message_id":"efff800e6adc60fc7f84e41768ba1fc2c9ff6142","unresolved":false,"context_lines":[{"line_number":520,"context_line":"    entry \u003d {key: value for key, value in opt.__dict__.items()"},{"line_number":521,"context_line":"             if not key.startswith(\u0027_\u0027)}"},{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    entry[\u0027choices\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027choices\u0027)"},{"line_number":524,"context_line":"    entry[\u0027min\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027min\u0027)"},{"line_number":525,"context_line":"    entry[\u0027max\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027max\u0027)"},{"line_number":526,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f044301_35b99bcb","line":523,"updated":"2017-05-08 19:18:14.000000000","message":"do you mean:\ngetattr(entry[\u0027type\u0027], \u0027choices\u0027, None) ?","commit_id":"d9d473daba16af971285cfa94240ae14eb53404e"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"7aeb0cab4b15f06622cc91794bffa78a1d8a36fe","unresolved":false,"context_lines":[{"line_number":520,"context_line":"    entry \u003d {key: value for key, value in opt.__dict__.items()"},{"line_number":521,"context_line":"             if not key.startswith(\u0027_\u0027)}"},{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    entry[\u0027choices\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027choices\u0027)"},{"line_number":524,"context_line":"    entry[\u0027min\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027min\u0027)"},{"line_number":525,"context_line":"    entry[\u0027max\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027max\u0027)"},{"line_number":526,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_ace010fc","line":523,"in_reply_to":"1f013ff3_a57b58bc","updated":"2017-05-26 19:33:13.000000000","message":"Good points, will change the default and the method of retrieving them.\n\nI\u0027m always including the keys so the data structure is consistent across all opts.  I don\u0027t feel that strongly about it one way or another, but I mildly prefer not having to deal with optional keys.  I\u0027m open to discussion if someone disagrees though.","commit_id":"d9d473daba16af971285cfa94240ae14eb53404e"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"390ab333cfd252340490545da739706eea40616e","unresolved":false,"context_lines":[{"line_number":520,"context_line":"    entry \u003d {key: value for key, value in opt.__dict__.items()"},{"line_number":521,"context_line":"             if not key.startswith(\u0027_\u0027)}"},{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    entry[\u0027choices\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027choices\u0027)"},{"line_number":524,"context_line":"    entry[\u0027min\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027min\u0027)"},{"line_number":525,"context_line":"    entry[\u0027max\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027max\u0027)"},{"line_number":526,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f013ff3_a57b58bc","line":523,"in_reply_to":"3f044301_35b99bcb","updated":"2017-05-16 21:51:18.000000000","message":"The default for choices probably shouldn\u0027t be None, since it\u0027s expected to be an iterable. Do all types even want the choice? Should the type object provide a method to give us the \"interesting\" attributes to add to the entry?","commit_id":"d9d473daba16af971285cfa94240ae14eb53404e"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"7aeb0cab4b15f06622cc91794bffa78a1d8a36fe","unresolved":false,"context_lines":[{"line_number":521,"context_line":"             if not key.startswith(\u0027_\u0027)}"},{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    entry[\u0027choices\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027choices\u0027)"},{"line_number":524,"context_line":"    entry[\u0027min\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027min\u0027)"},{"line_number":525,"context_line":"    entry[\u0027max\u0027] \u003d entry[\u0027type\u0027].__dict__.get(\u0027max\u0027)"},{"line_number":526,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"},{"line_number":527,"context_line":"    deprecated_opts \u003d []"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_8c878cb7","line":524,"updated":"2017-05-26 19:33:13.000000000","message":"Although looking again I\u0027m not sure we can give these two defaults other than None.","commit_id":"d9d473daba16af971285cfa94240ae14eb53404e"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"390ab333cfd252340490545da739706eea40616e","unresolved":false,"context_lines":[{"line_number":563,"context_line":"                   \u0027generator_options\u0027: {}}"},{"line_number":564,"context_line":"    # See _get_groups for details on the structure of group_data"},{"line_number":565,"context_line":"    for group_name, group_data in groups.items():"},{"line_number":566,"context_line":"        output_data[\u0027options\u0027][group_name] \u003d {\u0027opts\u0027: [], \u0027help\u0027: None}"},{"line_number":567,"context_line":"        for namespace in group_data[\u0027namespaces\u0027]:"},{"line_number":568,"context_line":"            for opt in namespace[1]:"},{"line_number":569,"context_line":"                if group_data[\u0027object\u0027]:"}],"source_content_type":"text/x-python","patch_set":3,"id":"1f013ff3_453b74ea","line":566,"updated":"2017-05-16 21:51:18.000000000","message":"Should help default to an empty string so it\u0027s always the same type?","commit_id":"d9d473daba16af971285cfa94240ae14eb53404e"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"7aeb0cab4b15f06622cc91794bffa78a1d8a36fe","unresolved":false,"context_lines":[{"line_number":563,"context_line":"                   \u0027generator_options\u0027: {}}"},{"line_number":564,"context_line":"    # See _get_groups for details on the structure of group_data"},{"line_number":565,"context_line":"    for group_name, group_data in groups.items():"},{"line_number":566,"context_line":"        output_data[\u0027options\u0027][group_name] \u003d {\u0027opts\u0027: [], \u0027help\u0027: None}"},{"line_number":567,"context_line":"        for namespace in group_data[\u0027namespaces\u0027]:"},{"line_number":568,"context_line":"            for opt in namespace[1]:"},{"line_number":569,"context_line":"                if group_data[\u0027object\u0027]:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ff0f0b1f_6c1d580e","line":566,"in_reply_to":"1f013ff3_453b74ea","updated":"2017-05-26 19:33:13.000000000","message":"Yeah, that makes sense too.","commit_id":"d9d473daba16af971285cfa94240ae14eb53404e"},{"author":{"_account_id":15334,"name":"Stephen Finucane","display_name":"stephenfin","email":"stephenfin@redhat.com","username":"sfinucan"},"change_message_id":"81e47db8cfabf4dab9189225bf4717a78a94b401","unresolved":false,"context_lines":[{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    # In some types, choices is explicitly set to None.  Force it to [] so it"},{"line_number":524,"context_line":"    # is always an iterable type."},{"line_number":525,"context_line":"    entry[\u0027choices\u0027] \u003d getattr(entry[\u0027type\u0027], \u0027choices\u0027, []) or []"},{"line_number":526,"context_line":"    entry[\u0027min\u0027] \u003d getattr(entry[\u0027type\u0027], \u0027min\u0027, None)"},{"line_number":527,"context_line":"    entry[\u0027max\u0027] \u003d getattr(entry[\u0027type\u0027], \u0027max\u0027, None)"},{"line_number":528,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"df140735_cee1839d","line":525,"range":{"start_line":525,"start_character":60,"end_line":525,"end_character":66},"updated":"2017-06-02 15:29:06.000000000","message":"nit - why\u0027s this here? Can choices return None?","commit_id":"a29c084cb1bde28f31ab120f9d9c60e16e4014c8"},{"author":{"_account_id":6928,"name":"Ben Nemec","email":"openstack@nemebean.com","username":"bnemec"},"change_message_id":"ccbe690c14736a07966d92bb757704d68a9fb88a","unresolved":false,"context_lines":[{"line_number":522,"context_line":"    entry[\u0027namespace\u0027] \u003d namespace"},{"line_number":523,"context_line":"    # In some types, choices is explicitly set to None.  Force it to [] so it"},{"line_number":524,"context_line":"    # is always an iterable type."},{"line_number":525,"context_line":"    entry[\u0027choices\u0027] \u003d getattr(entry[\u0027type\u0027], \u0027choices\u0027, []) or []"},{"line_number":526,"context_line":"    entry[\u0027min\u0027] \u003d getattr(entry[\u0027type\u0027], \u0027min\u0027, None)"},{"line_number":527,"context_line":"    entry[\u0027max\u0027] \u003d getattr(entry[\u0027type\u0027], \u0027max\u0027, None)"},{"line_number":528,"context_line":"    entry[\u0027type\u0027] \u003d _format_type_name(entry[\u0027type\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"df140735_390bab24","line":525,"range":{"start_line":525,"start_character":60,"end_line":525,"end_character":66},"in_reply_to":"df140735_cee1839d","updated":"2017-06-02 15:34:53.000000000","message":"Yes, see the comment on line 523. :-)","commit_id":"a29c084cb1bde28f31ab120f9d9c60e16e4014c8"}]}
