)]}'
{"specs/train/approved/count-quota-usage-from-placement.rst":[{"author":{"_account_id":5754,"name":"Alex Xu","email":"hejie.xu@intel.com","username":"xuhj"},"change_message_id":"84cf68da33290618ddc3332ed9dfd16c3ef0c308","unresolved":false,"context_lines":[{"line_number":207,"context_line":"operator has not yet run the data migration). We will need a way to detect that"},{"line_number":208,"context_line":"the migration has not yet been run in order to fall back on the legacy counting"},{"line_number":209,"context_line":"method. We could have a check such as ``if exists(InstanceMapping.id) where"},{"line_number":210,"context_line":"project_id\u003d\u003cproject id\u003e and user_id\u003dNone``, then fall back on the legacy"},{"line_number":211,"context_line":"counting method to query cell databases. We should cache the results of the"},{"line_number":212,"context_line":"each migration completeness check per ``project_id`` so we avoid needlessly"},{"line_number":213,"context_line":"checking a ``project_id`` that has already been migrated every time quota is"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9fb8cfa7_dc343fe1","line":210,"updated":"2019-06-03 08:11:58.000000000","message":"A little more complex than this, by the line 1092 to 1097 https://review.opendev.org/#/c/638073/31/nova/quota.py","commit_id":"bf4d8af2623a250c039570338615eee016f9e90f"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"a43101b33be6af41bffcc554db2f0b1c21e4c6d3","unresolved":false,"context_lines":[{"line_number":207,"context_line":"operator has not yet run the data migration). We will need a way to detect that"},{"line_number":208,"context_line":"the migration has not yet been run in order to fall back on the legacy counting"},{"line_number":209,"context_line":"method. We could have a check such as ``if exists(InstanceMapping.id) where"},{"line_number":210,"context_line":"project_id\u003d\u003cproject id\u003e and user_id\u003dNone``, then fall back on the legacy"},{"line_number":211,"context_line":"counting method to query cell databases. We should cache the results of the"},{"line_number":212,"context_line":"each migration completeness check per ``project_id`` so we avoid needlessly"},{"line_number":213,"context_line":"checking a ``project_id`` that has already been migrated every time quota is"}],"source_content_type":"text/x-rst","patch_set":1,"id":"9fb8cfa7_031fca6c","line":210,"in_reply_to":"9fb8cfa7_dc343fe1","updated":"2019-06-03 22:00:04.000000000","message":"True, this part was meant to be a pseudocode and I should have mentioned it explicitly.","commit_id":"bf4d8af2623a250c039570338615eee016f9e90f"}]}
