)]}'
{"ironic/db/sqlalchemy/api.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"facfae3aafc9a2ea1f4b8c1a0ac6fb79427a807d","unresolved":false,"context_lines":[{"line_number":1852,"context_line":"            # NOTE(mgoddard): In python 3, dicts are not orderable so cannot be"},{"line_number":1853,"context_line":"            # used as a sort key. Serialise the step arguments to a JSON string"},{"line_number":1854,"context_line":"            # for comparison. Taken from https://stackoverflow.com/a/22003440."},{"line_number":1855,"context_line":"            sortable_args \u003d json.dumps(step.args, sort_keys\u003dTrue)"},{"line_number":1856,"context_line":"            return step.interface, step.step, sortable_args, step.priority"},{"line_number":1857,"context_line":""},{"line_number":1858,"context_line":"        # List all existing steps for the template."}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_e6b531ee","line":1855,"updated":"2019-02-28 14:38:54.000000000","message":"maybe\n\n sortable_args \u003d sorted(step.args.items(), key\u003dlambda tpl: tpl[0])\n\n? Using JSON seems a bit of an overkill.","commit_id":"e989a21f06dab5421b02b49d69b9f24779154d9c"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"0c6a2a53cbbf6dd3a44aea956d434cc935b002dc","unresolved":false,"context_lines":[{"line_number":1852,"context_line":"            # NOTE(mgoddard): In python 3, dicts are not orderable so cannot be"},{"line_number":1853,"context_line":"            # used as a sort key. Serialise the step arguments to a JSON string"},{"line_number":1854,"context_line":"            # for comparison. Taken from https://stackoverflow.com/a/22003440."},{"line_number":1855,"context_line":"            sortable_args \u003d json.dumps(step.args, sort_keys\u003dTrue)"},{"line_number":1856,"context_line":"            return step.interface, step.step, sortable_args, step.priority"},{"line_number":1857,"context_line":""},{"line_number":1858,"context_line":"        # List all existing steps for the template."}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_2109e3db","line":1855,"in_reply_to":"9fdfeff1_c6958d33","updated":"2019-02-28 15:03:24.000000000","message":"Oh my, do we have nested dicts there? Well, I guess we may..","commit_id":"e989a21f06dab5421b02b49d69b9f24779154d9c"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"ef3278b36a34d99babc37102cc051880fd3c469d","unresolved":false,"context_lines":[{"line_number":1852,"context_line":"            # NOTE(mgoddard): In python 3, dicts are not orderable so cannot be"},{"line_number":1853,"context_line":"            # used as a sort key. Serialise the step arguments to a JSON string"},{"line_number":1854,"context_line":"            # for comparison. Taken from https://stackoverflow.com/a/22003440."},{"line_number":1855,"context_line":"            sortable_args \u003d json.dumps(step.args, sort_keys\u003dTrue)"},{"line_number":1856,"context_line":"            return step.interface, step.step, sortable_args, step.priority"},{"line_number":1857,"context_line":""},{"line_number":1858,"context_line":"        # List all existing steps for the template."}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_c6958d33","line":1855,"in_reply_to":"9fdfeff1_e6b531ee","updated":"2019-02-28 14:41:22.000000000","message":"What about nested dicts?","commit_id":"e989a21f06dab5421b02b49d69b9f24779154d9c"}],"ironic/tests/unit/db/test_deploy_templates.py":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6311d33414d446a238b800236ca902b54e3603f9","unresolved":false,"context_lines":[{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def test_update_steps_replace_args(self):"},{"line_number":104,"context_line":"        step \u003d self.template.steps[0]"},{"line_number":105,"context_line":"        step[\u0027args\u0027] \u003d {\u0027foo\u0027: \u0027bar\u0027}"},{"line_number":106,"context_line":"        values \u003d {\u0027steps\u0027: [step]}"},{"line_number":107,"context_line":"        template \u003d self.dbapi.update_deploy_template(self.template.id, values)"},{"line_number":108,"context_line":"        self.assertEqual(1, len(template.steps))"}],"source_content_type":"text/x-python","patch_set":1,"id":"9fdfeff1_338934c9","line":105,"updated":"2019-02-28 16:32:06.000000000","message":"i suppose you could have added a dict as the value, to show the true power of json-ifying it :D","commit_id":"e989a21f06dab5421b02b49d69b9f24779154d9c"}]}
