)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"c416035eaaf604e8ca1a9d3d429a7d0e671ab6ba","unresolved":false,"context_lines":[{"line_number":10,"context_line":"more verbose in what it is doing. Each time it is run, it will show you"},{"line_number":11,"context_line":"all the migrations that need running and how many records remain for"},{"line_number":12,"context_line":"each. Basically, you run this until you see all zeroes."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Change-Id: I572bf2eb560698766d741bd2fd78c8b1067335d0"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"da36d5c6_6f5d0a48","line":13,"updated":"2017-02-28 04:21:35.000000000","message":"Could you please provide an example of how the output is changed in the commit message?\n\nThanks!","commit_id":"20e5d340f435d61f74c9149a110316789de4b95b"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"f971833d5f7a5f20336c1158d0256c4f4dc9bf50","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Sample output of $cinder-manage db online_data_migrations"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":17,"context_line":"|                  Migration            | Total Needed | Completed |"},{"line_number":18,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":19,"context_line":"|    aggregate_online_data_migration    |      0       |     0     |"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ffe62b97_f3184c76","line":16,"updated":"2017-03-24 06:18:44.000000000","message":"Could you please update this example:)","commit_id":"009427352b8586394819a16d86c06ff71d58d591"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"6372e7b2b3f731282df8a67a9de9e6fd3ab9f87a","unresolved":false,"context_lines":[{"line_number":16,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":17,"context_line":"|                  Migration            | Total Needed | Completed |"},{"line_number":18,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":19,"context_line":"|    aggregate_online_data_migration    |      0       |     0     |"},{"line_number":20,"context_line":"| delete_build_with_no_instance_uuid    |      0       |     0     |"},{"line_number":21,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ffe62b97_8724080f","line":19,"range":{"start_line":19,"start_character":5,"end_line":19,"end_character":36},"updated":"2017-03-24 13:51:09.000000000","message":"Oh, by the way those names are Nova-specific, can we change them to something generic? migration_foo, migration_bar seems okay to me.","commit_id":"009427352b8586394819a16d86c06ff71d58d591"},{"author":{"_account_id":20140,"name":"Karthik Prabhu Vinod","email":"karthik.prabhu.vinod@intel.com","username":"kprabhuv"},"change_message_id":"29c0ac0df986dd03d3034531336199003dffeae1","unresolved":false,"context_lines":[{"line_number":16,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":17,"context_line":"|                  Migration            | Total Needed | Completed |"},{"line_number":18,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":19,"context_line":"|    aggregate_online_data_migration    |      0       |     0     |"},{"line_number":20,"context_line":"| delete_build_with_no_instance_uuid    |      0       |     0     |"},{"line_number":21,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ffe62b97_8fcbf651","line":19,"range":{"start_line":19,"start_character":5,"end_line":19,"end_character":36},"in_reply_to":"ffe62b97_528ec078","updated":"2017-03-24 17:19:52.000000000","message":"Thanks guys. Done.","commit_id":"009427352b8586394819a16d86c06ff71d58d591"},{"author":{"_account_id":23083,"name":"TommyLike","email":"tommylikehu@gmail.com","username":"TommyLike"},"change_message_id":"2290c87c73dc9666445edb955e98066dc56fd7d6","unresolved":false,"context_lines":[{"line_number":16,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":17,"context_line":"|                  Migration            | Total Needed | Completed |"},{"line_number":18,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":19,"context_line":"|    aggregate_online_data_migration    |      0       |     0     |"},{"line_number":20,"context_line":"| delete_build_with_no_instance_uuid    |      0       |     0     |"},{"line_number":21,"context_line":"+---------------------------------------+--------------+-----------+"},{"line_number":22,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"ffe62b97_528ec078","line":19,"range":{"start_line":19,"start_character":5,"end_line":19,"end_character":36},"in_reply_to":"ffe62b97_8724080f","updated":"2017-03-24 14:03:43.000000000","message":"it would be great you could also change the columns, we have more columns now.","commit_id":"009427352b8586394819a16d86c06ff71d58d591"}],"cinder/cmd/manage.py":[{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"75078b691de19ab87941be7cd025e4c59edc4a6b","unresolved":false,"context_lines":[{"line_number":298,"context_line":"                break"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        t \u003d prettytable.PrettyTable([_(\u0027Migration\u0027),"},{"line_number":301,"context_line":"                                     _(\u0027Total Needed\u0027),"},{"line_number":302,"context_line":"                                     _(\u0027Completed\u0027)])"},{"line_number":303,"context_line":"        for name in sorted(migration_info.keys()):"},{"line_number":304,"context_line":"            info \u003d migration_info[name]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a1ced50_37cb8074","line":301,"range":{"start_line":301,"start_character":46,"end_line":301,"end_character":52},"updated":"2017-03-16 17:38:40.000000000","message":"Total Needed doesn\u0027t make sense to me here?  Total what?  Think we need a different name.  Shouldn\u0027t this actually be Remaining Records and Completed Records ?  Should probably get other\u0027s thoughts.","commit_id":"b55b9f2cb9f14ec598ae6424df26ea588d92a441"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"be2b46a650bbd02bc14b5da64702693ddeffb93b","unresolved":false,"context_lines":[{"line_number":298,"context_line":"                break"},{"line_number":299,"context_line":""},{"line_number":300,"context_line":"        t \u003d prettytable.PrettyTable([_(\u0027Migration\u0027),"},{"line_number":301,"context_line":"                                     _(\u0027Total Needed\u0027),"},{"line_number":302,"context_line":"                                     _(\u0027Completed\u0027)])"},{"line_number":303,"context_line":"        for name in sorted(migration_info.keys()):"},{"line_number":304,"context_line":"            info \u003d migration_info[name]"}],"source_content_type":"text/x-python","patch_set":3,"id":"1a1ced50_7e419fa8","line":301,"range":{"start_line":301,"start_character":46,"end_line":301,"end_character":52},"in_reply_to":"1a1ced50_37cb8074","updated":"2017-03-22 08:04:24.000000000","message":"+1, I agree with Jay here. Maybe something like \"Found\" and \"Migrated\"? We could introduce another column that subtracts these values and says \"Remaining\".","commit_id":"b55b9f2cb9f14ec598ae6424df26ea588d92a441"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"1ecf7b93bb641da96a45275ba4eb3c1f62f012af","unresolved":false,"context_lines":[{"line_number":255,"context_line":"                found \u003d done \u003d 0"},{"line_number":256,"context_line":""},{"line_number":257,"context_line":"            name \u003d migration_meth.__name__"},{"line_number":258,"context_line":"            remaining \u003d found - done"},{"line_number":259,"context_line":"            if found:"},{"line_number":260,"context_line":"                print(_(\u0027%(found)i rows matched query %(meth)s, %(done)i \u0027"},{"line_number":261,"context_line":"                        \u0027migrated, %(remaining)i remaining\u0027) % {\u0027found\u0027: found,"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_47d720ef","line":258,"range":{"start_line":258,"start_character":12,"end_line":258,"end_character":36},"updated":"2017-03-24 13:49:56.000000000","message":"I would prefer to calculate this on the upper level, when presenting the data. No need to do this on level that is actually doing the data migrations.","commit_id":"009427352b8586394819a16d86c06ff71d58d591"},{"author":{"_account_id":11600,"name":"Michał Dulko","email":"michal.dulko@gmail.com","username":"dulek"},"change_message_id":"1ecf7b93bb641da96a45275ba4eb3c1f62f012af","unresolved":false,"context_lines":[{"line_number":307,"context_line":"                                     _(\u0027Remaining\u0027)])"},{"line_number":308,"context_line":"        for name in sorted(migration_info.keys()):"},{"line_number":309,"context_line":"            info \u003d migration_info[name]"},{"line_number":310,"context_line":"            t.add_row([name, info[0], info[1], info[2]])"},{"line_number":311,"context_line":"        print(t)"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":"        sys.exit(1 if ran else 0)"}],"source_content_type":"text/x-python","patch_set":4,"id":"ffe62b97_c704507e","line":310,"range":{"start_line":310,"start_character":47,"end_line":310,"end_character":54},"updated":"2017-03-24 13:49:56.000000000","message":"I mean - here.","commit_id":"009427352b8586394819a16d86c06ff71d58d591"}]}
