)]}'
{"specs/rocky/approved/introduce-database-migrations.rst":[{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy \u003chttps://www.sqlalchemy.org/\u003e`_ or"},{"line_number":14,"context_line":"`Alembic \u003chttp://www.alembic.io/\u003e` to provide migration scripts that update the"},{"line_number":15,"context_line":"service\u0027s database schema if it changes and migrate data as required."},{"line_number":16,"context_line":"Currently, Monasca does not follow this pattern. Instead it provides simple SQL"},{"line_number":17,"context_line":"scripts for PostgreSQL or MySQL databases that are only useful for initializing"},{"line_number":18,"context_line":"a database schema. For any subsequent changes required by updated code"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_311e7670","line":15,"range":{"start_line":15,"start_character":44,"end_line":15,"end_character":51},"updated":"2018-03-12 15:01:33.000000000","message":"migrate - migrates","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy \u003chttps://www.sqlalchemy.org/\u003e`_ or"},{"line_number":14,"context_line":"`Alembic \u003chttp://www.alembic.io/\u003e` to provide migration scripts that update the"},{"line_number":15,"context_line":"service\u0027s database schema if it changes and migrate data as required."},{"line_number":16,"context_line":"Currently, Monasca does not follow this pattern. Instead it provides simple SQL"},{"line_number":17,"context_line":"scripts for PostgreSQL or MySQL databases that are only useful for initializing"},{"line_number":18,"context_line":"a database schema. For any subsequent changes required by updated code"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_574f3f33","line":15,"range":{"start_line":15,"start_character":44,"end_line":15,"end_character":51},"in_reply_to":"df7087c5_311e7670","updated":"2018-03-13 10:38:27.000000000","message":"\"scripts that update [...] and migrate data\". It\u0027s a bit far apart, though. Tried to clarify this a bit now :-)","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy \u003chttps://www.sqlalchemy.org/\u003e`_ or"},{"line_number":14,"context_line":"`Alembic \u003chttp://www.alembic.io/\u003e` to provide migration scripts that update the"},{"line_number":15,"context_line":"service\u0027s database schema if it changes and migrate data as required."},{"line_number":16,"context_line":"Currently, Monasca does not follow this pattern. Instead it provides simple SQL"},{"line_number":17,"context_line":"scripts for PostgreSQL or MySQL databases that are only useful for initializing"},{"line_number":18,"context_line":"a database schema. For any subsequent changes required by updated code"},{"line_number":19,"context_line":"operators are on their own, i.e. they need to apply these manually to keep"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_f40c6c3c","line":16,"range":{"start_line":16,"start_character":52,"end_line":16,"end_character":53},"updated":"2018-03-12 15:01:33.000000000","message":"Instead, it provides ...","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy \u003chttps://www.sqlalchemy.org/\u003e`_ or"},{"line_number":14,"context_line":"`Alembic \u003chttp://www.alembic.io/\u003e` to provide migration scripts that update the"},{"line_number":15,"context_line":"service\u0027s database schema if it changes and migrate data as required."},{"line_number":16,"context_line":"Currently, Monasca does not follow this pattern. Instead it provides simple SQL"},{"line_number":17,"context_line":"scripts for PostgreSQL or MySQL databases that are only useful for initializing"},{"line_number":18,"context_line":"a database schema. For any subsequent changes required by updated code"},{"line_number":19,"context_line":"operators are on their own, i.e. they need to apply these manually to keep"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_176787bf","line":16,"range":{"start_line":16,"start_character":52,"end_line":16,"end_character":53},"in_reply_to":"df7087c5_f40c6c3c","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Besides operators, the lack of database migration infrastructure is a"},{"line_number":50,"context_line":"significant obstacle to Monasca developers as well: it turns any data model"},{"line_number":51,"context_line":"change into a breaking change due to the schema update that requires. Thus the"},{"line_number":52,"context_line":"current state of affairs prevents new features that requires database"},{"line_number":53,"context_line":"changes or renders them extremely unpopular at the very least."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Use Cases"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_347ae487","line":52,"range":{"start_line":52,"start_character":52,"end_line":52,"end_character":60},"updated":"2018-03-12 15:01:33.000000000","message":"requires-\u003e require","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":49,"context_line":"Besides operators, the lack of database migration infrastructure is a"},{"line_number":50,"context_line":"significant obstacle to Monasca developers as well: it turns any data model"},{"line_number":51,"context_line":"change into a breaking change due to the schema update that requires. Thus the"},{"line_number":52,"context_line":"current state of affairs prevents new features that requires database"},{"line_number":53,"context_line":"changes or renders them extremely unpopular at the very least."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Use Cases"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_b757bbca","line":52,"range":{"start_line":52,"start_character":52,"end_line":52,"end_character":60},"in_reply_to":"df7087c5_347ae487","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"This change is long overdue and best practice throughout OpenStack. That being"},{"line_number":93,"context_line":"said, it would be possible to considerably reduce its scope by not supporting"},{"line_number":94,"context_line":"the transition from the legacy SQL script created database schema to the"},{"line_number":95,"context_line":"migration based approach."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"It would also be possible to use plain SQLAlchemy rather than Alembic to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_34d66451","line":94,"range":{"start_line":94,"start_character":50,"end_line":94,"end_character":58},"updated":"2018-03-12 15:01:33.000000000","message":"created a database schema","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":91,"context_line":""},{"line_number":92,"context_line":"This change is long overdue and best practice throughout OpenStack. That being"},{"line_number":93,"context_line":"said, it would be possible to considerably reduce its scope by not supporting"},{"line_number":94,"context_line":"the transition from the legacy SQL script created database schema to the"},{"line_number":95,"context_line":"migration based approach."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"It would also be possible to use plain SQLAlchemy rather than Alembic to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_376bab85","line":94,"range":{"start_line":94,"start_character":50,"end_line":94,"end_character":58},"in_reply_to":"df7087c5_34d66451","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":102,"context_line":"Data model impact"},{"line_number":103,"context_line":"-----------------"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"There will be no impact to the data model itself. There will only be changes to"},{"line_number":106,"context_line":"how the data model is synchronized to the database\u0027s run time schema."},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_b446f420","line":105,"range":{"start_line":105,"start_character":17,"end_line":105,"end_character":30},"updated":"2018-03-12 15:01:33.000000000","message":"impact on the ...","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":102,"context_line":"Data model impact"},{"line_number":103,"context_line":"-----------------"},{"line_number":104,"context_line":""},{"line_number":105,"context_line":"There will be no impact to the data model itself. There will only be changes to"},{"line_number":106,"context_line":"how the data model is synchronized to the database\u0027s run time schema."},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"REST API impact"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_b70c9bec","line":105,"range":{"start_line":105,"start_character":17,"end_line":105,"end_character":30},"in_reply_to":"df7087c5_b446f420","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":113,"context_line":"Security impact"},{"line_number":114,"context_line":"---------------"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"The only slightly security related aspect to this change is providing the"},{"line_number":117,"context_line":"database migration command line tools with access credentials for the data"},{"line_number":118,"context_line":"base. The accepted best practice for this is running it as root on the machine"},{"line_number":119,"context_line":"where the API service (in our case `monasca-api`) is also running and retrieve"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_f4122c09","line":116,"range":{"start_line":116,"start_character":35,"end_line":116,"end_character":49},"updated":"2018-03-12 15:01:33.000000000","message":"aspect of this ...","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":113,"context_line":"Security impact"},{"line_number":114,"context_line":"---------------"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"The only slightly security related aspect to this change is providing the"},{"line_number":117,"context_line":"database migration command line tools with access credentials for the data"},{"line_number":118,"context_line":"base. The accepted best practice for this is running it as root on the machine"},{"line_number":119,"context_line":"where the API service (in our case `monasca-api`) is also running and retrieve"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_f72f733c","line":116,"range":{"start_line":116,"start_character":35,"end_line":116,"end_character":49},"in_reply_to":"df7087c5_f4122c09","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":119,"context_line":"where the API service (in our case `monasca-api`) is also running and retrieve"},{"line_number":120,"context_line":"these credentials from the API service\u0027s configuration."},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"Other end user impact"},{"line_number":123,"context_line":"---------------------"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"N/A"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_34c0a450","line":122,"range":{"start_line":122,"start_character":0,"end_line":122,"end_character":21},"updated":"2018-03-12 15:01:33.000000000","message":"\"Other end user impacts\" or \"Another end user impact\"","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":119,"context_line":"where the API service (in our case `monasca-api`) is also running and retrieve"},{"line_number":120,"context_line":"these credentials from the API service\u0027s configuration."},{"line_number":121,"context_line":""},{"line_number":122,"context_line":"Other end user impact"},{"line_number":123,"context_line":"---------------------"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"N/A"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_1735478f","line":122,"range":{"start_line":122,"start_character":0,"end_line":122,"end_character":21},"in_reply_to":"df7087c5_34c0a450","updated":"2018-03-13 10:38:27.000000000","message":"Hmm, we should also change our template then (got that from there).","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"N/A"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Other deployer impact"},{"line_number":133,"context_line":"---------------------"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Configuration management that uses the legacy SQL scripts must be changed to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_54caf86c","line":132,"range":{"start_line":132,"start_character":0,"end_line":132,"end_character":21},"updated":"2018-03-12 15:01:33.000000000","message":"\"Other deployer impacts\" or \"Another deployer impact\"","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":129,"context_line":""},{"line_number":130,"context_line":"N/A"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"Other deployer impact"},{"line_number":133,"context_line":"---------------------"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Configuration management that uses the legacy SQL scripts must be changed to"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_97e5d70b","line":132,"range":{"start_line":132,"start_character":0,"end_line":132,"end_character":21},"in_reply_to":"df7087c5_54caf86c","updated":"2018-03-13 10:38:27.000000000","message":"Same here, that heading is from the template.","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":133,"context_line":"---------------------"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Configuration management that uses the legacy SQL scripts must be changed to"},{"line_number":136,"context_line":"use the new migration tools. Among other things the Monasca devstack plugin"},{"line_number":137,"context_line":"must be modified to use them. Users updating to a Monasca version with this"},{"line_number":138,"context_line":"feature"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_549f585e","line":136,"range":{"start_line":136,"start_character":41,"end_line":136,"end_character":59},"updated":"2018-03-12 15:01:33.000000000","message":"things, the Monasca","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":133,"context_line":"---------------------"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Configuration management that uses the legacy SQL scripts must be changed to"},{"line_number":136,"context_line":"use the new migration tools. Among other things the Monasca devstack plugin"},{"line_number":137,"context_line":"must be modified to use them. Users updating to a Monasca version with this"},{"line_number":138,"context_line":"feature"},{"line_number":139,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_37c72b67","line":136,"range":{"start_line":136,"start_character":41,"end_line":136,"end_character":59},"in_reply_to":"df7087c5_549f585e","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":173,"context_line":"at an early stage during Devstack setup as follows: "},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"},{"line_number":176,"context_line":"   the data base and converted to a \"migratable\" database by running the"},{"line_number":177,"context_line":"   conversion operation on the database. After each iteration the database is"},{"line_number":178,"context_line":"   dropped to prepare for the next revision."},{"line_number":179,"context_line":"2) As a final step, the initial migration for a blank database is performed and"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_f4ea2caa","line":176,"range":{"start_line":176,"start_character":7,"end_line":176,"end_character":16},"updated":"2018-03-12 15:01:33.000000000","message":"database","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":173,"context_line":"at an early stage during Devstack setup as follows: "},{"line_number":174,"context_line":""},{"line_number":175,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"},{"line_number":176,"context_line":"   the data base and converted to a \"migratable\" database by running the"},{"line_number":177,"context_line":"   conversion operation on the database. After each iteration the database is"},{"line_number":178,"context_line":"   dropped to prepare for the next revision."},{"line_number":179,"context_line":"2) As a final step, the initial migration for a blank database is performed and"}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_3775eb32","line":176,"range":{"start_line":176,"start_character":7,"end_line":176,"end_character":16},"in_reply_to":"df7087c5_f4ea2caa","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26733,"name":"Amir Mofakhar","email":"amir@mofakhar.info","username":"amofakhar"},"change_message_id":"b813791f58e64856465c03828d463c1ddf468fe9","unresolved":false,"context_lines":[{"line_number":174,"context_line":""},{"line_number":175,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"},{"line_number":176,"context_line":"   the data base and converted to a \"migratable\" database by running the"},{"line_number":177,"context_line":"   conversion operation on the database. After each iteration the database is"},{"line_number":178,"context_line":"   dropped to prepare for the next revision."},{"line_number":179,"context_line":"2) As a final step, the initial migration for a blank database is performed and"},{"line_number":180,"context_line":"   Devstack proceeds normally."}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_d4e7e8e3","line":177,"range":{"start_line":177,"start_character":41,"end_line":177,"end_character":61},"updated":"2018-03-12 15:01:33.000000000","message":"after each iteration, the database","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"a9478c5d63d8b4b3350ef240c1af7f6a39e44212","unresolved":false,"context_lines":[{"line_number":174,"context_line":""},{"line_number":175,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"},{"line_number":176,"context_line":"   the data base and converted to a \"migratable\" database by running the"},{"line_number":177,"context_line":"   conversion operation on the database. After each iteration the database is"},{"line_number":178,"context_line":"   dropped to prepare for the next revision."},{"line_number":179,"context_line":"2) As a final step, the initial migration for a blank database is performed and"},{"line_number":180,"context_line":"   Devstack proceeds normally."}],"source_content_type":"text/x-rst","patch_set":1,"id":"df7087c5_977cf71f","line":177,"range":{"start_line":177,"start_character":41,"end_line":177,"end_character":61},"in_reply_to":"df7087c5_d4e7e8e3","updated":"2018-03-13 10:38:27.000000000","message":"Done","commit_id":"b6a7fe36b5ca89e84927c6a209f51155e0914812"},{"author":{"_account_id":26702,"name":"Nicolas Seyvet","email":"nseyvet@op5.com","username":"nseyvet"},"change_message_id":"a0c30fb04933750b3ec33d668cbee6a72a9cf43e","unresolved":false,"context_lines":[{"line_number":90,"context_line":"------------"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"This change is long overdue and best practice throughout OpenStack. That being"},{"line_number":93,"context_line":"said, it would be possible to considerably reduce its scope by not supporting"},{"line_number":94,"context_line":"the transition from the legacy SQL script created a database schema to the"},{"line_number":95,"context_line":"migration based approach."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"It would also be possible to use plain SQLAlchemy rather than Alembic to"},{"line_number":98,"context_line":"implement migrations, but OpenStack appears to have standardized on Alembic by"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df7087c5_7117ea46","line":95,"range":{"start_line":93,"start_character":50,"end_line":95,"end_character":25},"updated":"2018-03-13 13:55:15.000000000","message":"This part of the sentence is missing words.  That part makes no sense.","commit_id":"44d8c1c1c88eed52565371fdb02aef8d1063d990"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"dd67a90911ec567944b7bce21ce8239cbed2542f","unresolved":false,"context_lines":[{"line_number":90,"context_line":"------------"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"This change is long overdue and best practice throughout OpenStack. That being"},{"line_number":93,"context_line":"said, it would be possible to considerably reduce its scope by not supporting"},{"line_number":94,"context_line":"the transition from the legacy SQL script created a database schema to the"},{"line_number":95,"context_line":"migration based approach."},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"It would also be possible to use plain SQLAlchemy rather than Alembic to"},{"line_number":98,"context_line":"implement migrations, but OpenStack appears to have standardized on Alembic by"}],"source_content_type":"text/x-rst","patch_set":2,"id":"df7087c5_ac11a554","line":95,"range":{"start_line":93,"start_character":50,"end_line":95,"end_character":25},"in_reply_to":"df7087c5_7117ea46","updated":"2018-03-13 14:18:01.000000000","message":"Ehgh, messy indeed. I broke that up into multiple sentences that should make a lot more sense now.","commit_id":"44d8c1c1c88eed52565371fdb02aef8d1063d990"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://storyboard.openstack.org/#!/story/2001654"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy \u003chttps://www.sqlalchemy.org/\u003e`_ or"},{"line_number":14,"context_line":"`Alembic \u003chttp://www.alembic.io/\u003e` to provide migration scripts that (a) update"},{"line_number":15,"context_line":"the service\u0027s database schema if it changes and (b) migrate data as required."},{"line_number":16,"context_line":"Currently, Monasca does not follow this pattern. Instead, it provides simple SQL"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_0417a047","line":13,"range":{"start_line":13,"start_character":29,"end_line":13,"end_character":69},"updated":"2018-03-20 14:13:17.000000000","message":"Have you meant SQLAlchemy Migrate \u003chttps://sqlalchemy-migrate.readthedocs.io/en/latest/\u003e?","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://storyboard.openstack.org/#!/story/2001654"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy \u003chttps://www.sqlalchemy.org/\u003e`_ or"},{"line_number":14,"context_line":"`Alembic \u003chttp://www.alembic.io/\u003e` to provide migration scripts that (a) update"},{"line_number":15,"context_line":"the service\u0027s database schema if it changes and (b) migrate data as required."},{"line_number":16,"context_line":"Currently, Monasca does not follow this pattern. Instead, it provides simple SQL"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_ad277e64","line":13,"range":{"start_line":13,"start_character":29,"end_line":13,"end_character":69},"in_reply_to":"df7087c5_0417a047","updated":"2018-03-22 09:23:50.000000000","message":"Indeed I have. Thanks!","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":33,"context_line":"The group most affected by this is operators, who are faced with several"},{"line_number":34,"context_line":"unattractive choices when a code change requires a database schema change:"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"1) They can drop their whole monasca database and recreate it from scratch with"},{"line_number":37,"context_line":"   the updated SQL script. That way they will lose all of their alarm"},{"line_number":38,"context_line":"   definitions along with notification settings, their complete alarm history,"},{"line_number":39,"context_line":"   and some metrics metadata."}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_61d0ceca","line":36,"range":{"start_line":36,"start_character":29,"end_line":36,"end_character":36},"updated":"2018-03-20 14:13:17.000000000","message":"Monasca","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":33,"context_line":"The group most affected by this is operators, who are faced with several"},{"line_number":34,"context_line":"unattractive choices when a code change requires a database schema change:"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"1) They can drop their whole monasca database and recreate it from scratch with"},{"line_number":37,"context_line":"   the updated SQL script. That way they will lose all of their alarm"},{"line_number":38,"context_line":"   definitions along with notification settings, their complete alarm history,"},{"line_number":39,"context_line":"   and some metrics metadata."}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_6d21664d","line":36,"range":{"start_line":36,"start_character":29,"end_line":36,"end_character":36},"in_reply_to":"df7087c5_61d0ceca","updated":"2018-03-22 09:23:50.000000000","message":"Done","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":76,"context_line":"2) A database migration command line tool with multiple base revisions to"},{"line_number":77,"context_line":"   cover the following scenarios:"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     (a) An uninitialized database"},{"line_number":80,"context_line":"     (b) A schema state resulting from any of the existing SQL script"},{"line_number":81,"context_line":"         revisions."},{"line_number":82,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_a4d1145a","line":79,"range":{"start_line":79,"start_character":5,"end_line":79,"end_character":8},"updated":"2018-03-20 14:13:17.000000000","message":"Please use `#.` for all enumerated lists [1].\n\n[1] https://docs.openstack.org/doc-contrib-guide/rst-conv/lists.html","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":76,"context_line":"2) A database migration command line tool with multiple base revisions to"},{"line_number":77,"context_line":"   cover the following scenarios:"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"     (a) An uninitialized database"},{"line_number":80,"context_line":"     (b) A schema state resulting from any of the existing SQL script"},{"line_number":81,"context_line":"         revisions."},{"line_number":82,"context_line":""}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_ed8ed625","line":79,"range":{"start_line":79,"start_character":5,"end_line":79,"end_character":8},"in_reply_to":"df7087c5_a4d1145a","updated":"2018-03-22 09:23:50.000000000","message":"Done","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":95,"context_line":"would be forced to drop the database and recreate it using migrations. If"},{"line_number":96,"context_line":"possible we should not impose this on operators."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"It would also be possible to use plain SQLAlchemy rather than Alembic to"},{"line_number":99,"context_line":"implement migrations, but OpenStack appears to have standardized on Alembic by"},{"line_number":100,"context_line":"now (see https://wiki.openstack.org/wiki/OpenStack_and_SQLAlchemy for a"},{"line_number":101,"context_line":"discussion of why that happened)."}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_c46208ae","line":98,"range":{"start_line":98,"start_character":33,"end_line":98,"end_character":49},"updated":"2018-03-20 14:13:17.000000000","message":"SQLAlchemy Migrate","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":95,"context_line":"would be forced to drop the database and recreate it using migrations. If"},{"line_number":96,"context_line":"possible we should not impose this on operators."},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"It would also be possible to use plain SQLAlchemy rather than Alembic to"},{"line_number":99,"context_line":"implement migrations, but OpenStack appears to have standardized on Alembic by"},{"line_number":100,"context_line":"now (see https://wiki.openstack.org/wiki/OpenStack_and_SQLAlchemy for a"},{"line_number":101,"context_line":"discussion of why that happened)."}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_6da2c69c","line":98,"range":{"start_line":98,"start_character":33,"end_line":98,"end_character":49},"in_reply_to":"df7087c5_c46208ae","updated":"2018-03-22 09:23:50.000000000","message":"Done","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"Configuration management that uses the legacy SQL scripts must be changed to"},{"line_number":137,"context_line":"use the new migration tools. Among other things, the Monasca devstack plugin"},{"line_number":138,"context_line":"must be modified to use them. Users updating to a Monasca version with this"},{"line_number":139,"context_line":"feature"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Developer impact"},{"line_number":142,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_2421844e","line":139,"range":{"start_line":138,"start_character":30,"end_line":139,"end_character":7},"updated":"2018-03-20 14:13:17.000000000","message":"Something seems to miss here.","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"Configuration management that uses the legacy SQL scripts must be changed to"},{"line_number":137,"context_line":"use the new migration tools. Among other things, the Monasca devstack plugin"},{"line_number":138,"context_line":"must be modified to use them. Users updating to a Monasca version with this"},{"line_number":139,"context_line":"feature"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"Developer impact"},{"line_number":142,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_4d990277","line":139,"range":{"start_line":138,"start_character":30,"end_line":139,"end_character":7},"in_reply_to":"df7087c5_2421844e","updated":"2018-03-22 09:23:50.000000000","message":"Indeed. Completed now.","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":141,"context_line":"Developer impact"},{"line_number":142,"context_line":"----------------"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Discuss things that will affect other developers working on Monasca."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_c4be88d3","line":144,"range":{"start_line":144,"start_character":0,"end_line":144,"end_character":68},"updated":"2018-03-20 14:13:17.000000000","message":"What will be developer impact?","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":141,"context_line":"Developer impact"},{"line_number":142,"context_line":"----------------"},{"line_number":143,"context_line":""},{"line_number":144,"context_line":"Discuss things that will affect other developers working on Monasca."},{"line_number":145,"context_line":""},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"Implementation"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_cd867214","line":144,"range":{"start_line":144,"start_character":0,"end_line":144,"end_character":68},"in_reply_to":"df7087c5_c4be88d3","updated":"2018-03-22 09:23:50.000000000","message":"Oh, I overlooked this section, sorry! Filled in now.","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"5487f3be7ecf4e42a5cb84cfc0f342f869f64949","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"----------"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"* Add command line tool(s) and migrations to monasca-api (`monasca-common`"},{"line_number":159,"context_line":"  would be possible, too but `monasca-api` already has the database"},{"line_number":160,"context_line":"  configuration infrastructure in place)."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"Dependencies"},{"line_number":163,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_c4a3e8b0","line":160,"range":{"start_line":158,"start_character":0,"end_line":160,"end_character":41},"updated":"2018-03-20 14:13:17.000000000","message":"The list is not complete yet, is it?","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":155,"context_line":""},{"line_number":156,"context_line":"----------"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"* Add command line tool(s) and migrations to monasca-api (`monasca-common`"},{"line_number":159,"context_line":"  would be possible, too but `monasca-api` already has the database"},{"line_number":160,"context_line":"  configuration infrastructure in place)."},{"line_number":161,"context_line":""},{"line_number":162,"context_line":"Dependencies"},{"line_number":163,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":3,"id":"df7087c5_cde992b7","line":160,"range":{"start_line":158,"start_character":0,"end_line":160,"end_character":41},"in_reply_to":"df7087c5_c4a3e8b0","updated":"2018-03-22 09:23:50.000000000","message":"It is complete but I crammed everything into a single bullet point which kind of defeats the purpose of having a list in the first place...\n\nFixed now.","commit_id":"ab24ab1a0c307a5b0a47f6d97013e04f8155ba4c"},{"author":{"_account_id":14123,"name":"Stefano Canepa","email":"sc@linux.it","username":"sc"},"change_message_id":"aec17cf2f8dec71f658ea81482a2f450dd0f89b1","unresolved":false,"context_lines":[{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"In a nutshell, the database schema used for holding various alarm, notification"},{"line_number":29,"context_line":"and metric metadata is not updateable. This is due to the source of truth for"},{"line_number":30,"context_line":"the schema being a simple SQL script that is only useful for schema"},{"line_number":31,"context_line":"initialization on a blank database."},{"line_number":32,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_0f4a4c54","line":29,"updated":"2018-03-20 22:06:18.000000000","message":"notification, and ....","commit_id":"cfa50266615361dd475bcf80bc1168310ee72ab5"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":26,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"In a nutshell, the database schema used for holding various alarm, notification"},{"line_number":29,"context_line":"and metric metadata is not updateable. This is due to the source of truth for"},{"line_number":30,"context_line":"the schema being a simple SQL script that is only useful for schema"},{"line_number":31,"context_line":"initialization on a blank database."},{"line_number":32,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_6d6c0636","line":29,"in_reply_to":"df7087c5_0f4a4c54","updated":"2018-03-22 09:23:50.000000000","message":"Done","commit_id":"cfa50266615361dd475bcf80bc1168310ee72ab5"},{"author":{"_account_id":14123,"name":"Stefano Canepa","email":"sc@linux.it","username":"sc"},"change_message_id":"aec17cf2f8dec71f658ea81482a2f450dd0f89b1","unresolved":false,"context_lines":[{"line_number":170,"context_line":"Any meaningful testing can only take place in a full Monasca deployment with an"},{"line_number":171,"context_line":"actual database to test against. In particular, testing attention should focus"},{"line_number":172,"context_line":"on testing this with all revisions of the legacy SQL scripts in"},{"line_number":173,"context_line":"`devstack/files/schema/mon_{mysql,postgresql}.sql`. This testing can take place"},{"line_number":174,"context_line":"at an early stage during Devstack setup as follows:"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_4f97e491","line":173,"updated":"2018-03-20 22:06:18.000000000","message":"I think we can drop postgresql as per its deprecation in OpenStack","commit_id":"cfa50266615361dd475bcf80bc1168310ee72ab5"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"6492abf47cd8fa8a8a5e98cfbb410556271790fc","unresolved":false,"context_lines":[{"line_number":170,"context_line":"Any meaningful testing can only take place in a full Monasca deployment with an"},{"line_number":171,"context_line":"actual database to test against. In particular, testing attention should focus"},{"line_number":172,"context_line":"on testing this with all revisions of the legacy SQL scripts in"},{"line_number":173,"context_line":"`devstack/files/schema/mon_{mysql,postgresql}.sql`. This testing can take place"},{"line_number":174,"context_line":"at an early stage during Devstack setup as follows:"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_c7018fb1","line":173,"in_reply_to":"df7087c5_4f97e491","updated":"2018-03-21 10:46:53.000000000","message":"Yes, I wouldn\u0027t impose the requirement of testing this with PostgreSQL scripts.","commit_id":"cfa50266615361dd475bcf80bc1168310ee72ab5"},{"author":{"_account_id":12542,"name":"Johannes Grassler","email":"jgr-launchpad@btw23.de","username":"jgrassler"},"change_message_id":"fd7d8d332d6e8328669b6ae945669dd017f4d663","unresolved":false,"context_lines":[{"line_number":170,"context_line":"Any meaningful testing can only take place in a full Monasca deployment with an"},{"line_number":171,"context_line":"actual database to test against. In particular, testing attention should focus"},{"line_number":172,"context_line":"on testing this with all revisions of the legacy SQL scripts in"},{"line_number":173,"context_line":"`devstack/files/schema/mon_{mysql,postgresql}.sql`. This testing can take place"},{"line_number":174,"context_line":"at an early stage during Devstack setup as follows:"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_8dd5dab9","line":173,"in_reply_to":"df7087c5_67b8c3e4","updated":"2018-03-22 09:23:50.000000000","message":"I added an explicit remark on testing with the MySQL flavoured script being sufficient and removed the mon_postgresql.sql filename now.","commit_id":"cfa50266615361dd475bcf80bc1168310ee72ab5"},{"author":{"_account_id":14123,"name":"Stefano Canepa","email":"sc@linux.it","username":"sc"},"change_message_id":"ce5d505c7543d60bf7d2d17c25074d3a1abed827","unresolved":false,"context_lines":[{"line_number":170,"context_line":"Any meaningful testing can only take place in a full Monasca deployment with an"},{"line_number":171,"context_line":"actual database to test against. In particular, testing attention should focus"},{"line_number":172,"context_line":"on testing this with all revisions of the legacy SQL scripts in"},{"line_number":173,"context_line":"`devstack/files/schema/mon_{mysql,postgresql}.sql`. This testing can take place"},{"line_number":174,"context_line":"at an early stage during Devstack setup as follows:"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"1) Each SQL script revision is checked out from the git repository, applied to"}],"source_content_type":"text/x-rst","patch_set":5,"id":"df7087c5_67b8c3e4","line":173,"in_reply_to":"df7087c5_c7018fb1","updated":"2018-03-21 11:04:25.000000000","message":"OK. so we can leave postgresSQL here for now.","commit_id":"cfa50266615361dd475bcf80bc1168310ee72ab5"},{"author":{"_account_id":16222,"name":"witek","email":"witold.bedyk@suse.com","username":"witek"},"change_message_id":"bccb00b58b2b51d42a67cf4cd5f0f009bac9eee6","unresolved":false,"context_lines":[{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Most OpenStack services use `SQLAlchemy Migrate"},{"line_number":14,"context_line":"\u003chttps://sqlalchemy-migrate.readthedocs.io/en/latest/\u003e`_ or `Alembic"},{"line_number":15,"context_line":"\u003chttp://www.alembic.io/\u003e` to provide migration scripts that (a) update the"},{"line_number":16,"context_line":"service\u0027s database schema if it changes and (b) migrate data as required."},{"line_number":17,"context_line":"Currently, Monasca does not follow this pattern. Instead, it provides simple"},{"line_number":18,"context_line":"SQL scripts for PostgreSQL or MySQL databases that are only useful for"}],"source_content_type":"text/x-rst","patch_set":8,"id":"df7087c5_b8581531","line":15,"range":{"start_line":15,"start_character":25,"end_line":15,"end_character":26},"updated":"2018-03-28 14:55:01.000000000","message":"_ missing to render as link.","commit_id":"60e6675540a2ab7bc74d3fa8ec3ef4ec0a5f10c0"}]}
