)]}'
{"id":"openstack%2Fcloudkitty~990112","triplet_id":"openstack%2Fcloudkitty~master~I4b6f3ff22bd8cf3926f3c55cd17ca855a97e276b","project":"openstack/cloudkitty","branch":"master","hashtags":[],"change_id":"I4b6f3ff22bd8cf3926f3c55cd17ca855a97e276b","subject":"Fix 500 error when creating scope with active\u003dFalse","status":"NEW","created":"2026-05-26 13:50:03.000000000","updated":"2026-05-26 15:07:11.000000000","submit_type":"MERGE_IF_NECESSARY","mergeable":true,"submittable":false,"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"2f373e130b4230d3325704d9fc6640052beec588","_number":990112,"virtual_id_number":990112,"owner":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"actions":{},"labels":{"Verified":{"recommended":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:zuul:check","value":1,"date":"2026-05-26 15:07:11.000000000","permitted_voting_range":{"min":-2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","value":1,"default_value":0,"optional":true},"Code-Review":{"all":[{"value":0,"permitted_voting_range":{"min":-1,"max":1},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"all":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Review-Priority":{"all":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{"-1":"Branch Freeze"," 0":"No Priority","+1":"Important Change","+2":"Gate Blocker Fix / Urgent Change"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-05-26 15:07:11.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"aa5f39bdbda699820bd898417cf65fdd74b7ba8b","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"date":"2026-05-26 13:50:03.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"2f373e130b4230d3325704d9fc6640052beec588","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-05-26 15:07:11.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/14cdaeb21c764cc090af6bb3f83a5acb\n\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/984df4c8e922493b83b13054dcacdc00 : SUCCESS in 10m 04s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/3ff6f7fa4c5d49f4bc57ed269b62139b : SUCCESS in 2m 01s\n- openstack-tox-py311 https://zuul.opendev.org/t/openstack/build/7f31352107e945119e49685b88ebddd2 : SUCCESS in 2m 36s\n- openstack-tox-py313 https://zuul.opendev.org/t/openstack/build/825d91f45cfa4e98bfaf032341108ac3 : SUCCESS in 2m 15s\n- openstack-tox-py314 https://zuul.opendev.org/t/openstack/build/0552092394ac4ac49b8bbe2ce656b981 : SUCCESS in 3m 52s (non-voting)\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/4a8b7912ed104e7180c02ba2be35d772 : SUCCESS in 3m 38s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/2b87fc7a37734a55b5d79effaab063cf : SUCCESS in 2m 28s\n- cloudkitty-tempest-full-v2-storage-influxdb https://zuul.opendev.org/t/openstack/build/ef067ef935c245afaabd61fbd62263bb : SUCCESS in 35m 33s\n- cloudkitty-tempest-full-v2-storage-influxdb-v2 https://zuul.opendev.org/t/openstack/build/da1b2c0b266444e8bf0f07fc8302cde3 : SUCCESS in 33m 27s\n- cloudkitty-tempest-full-v2-storage-elasticsearch https://zuul.opendev.org/t/openstack/build/7b646213a5ee4e7db073ec9cb1e16221 : SUCCESS in 33m 29s\n- cloudkitty-tempest-full-v2-storage-opensearch https://zuul.opendev.org/t/openstack/build/8645c0c2f6bd46e395012d36d450788f : SUCCESS in 36m 33s\n- cloudkitty-tempest-full-v1-storage-sqlalchemy https://zuul.opendev.org/t/openstack/build/2de6583c2f844f86941334f63f317fc3 : SUCCESS in 20m 48s\n- cloudkitty-tempest-full-v2-storage-loki https://zuul.opendev.org/t/openstack/build/ab9f7cbde4f04ae6a534784744fb97f3 : SUCCESS in 14m 02s\n- cloudkitty-tempest-full-ipv6-only https://zuul.opendev.org/t/openstack/build/8293c5796a1747e1af1bff11070687b0 : SUCCESS in 21m 30s\n- cloudkitty-tempest-full-v2-fetcher-collector-prometheus https://zuul.opendev.org/t/openstack/build/1389df3ca60b4a679baa17908e7340d0 : SUCCESS in 35m 23s\n- cloudkitty-tempest-full-v2-collector-aetos https://zuul.opendev.org/t/openstack/build/051b3909a3124204944148e034f9c207 : SUCCESS in 26m 53s\n- cloudkitty-tox-bandit https://zuul.opendev.org/t/openstack/build/f9eabbe8bd144707b11f49bb5e063a63 : FAILURE in 2m 19s (non-voting)\n- cloudkitty-grenade-job https://zuul.opendev.org/t/openstack/build/98b837d7c2a94cf2a7b80b2c7dfc59e3 : SUCCESS in 1h 11m 29s","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"4cb28f1983754da4732a625acdee6f735e0d1336","revisions":{"4cb28f1983754da4732a625acdee6f735e0d1336":{"kind":"REWORK","_number":1,"created":"2026-05-26 13:50:03.000000000","uploader":{"_account_id":32968,"name":"Juan Larriba","email":"jlarriba@redhat.com","username":"jlarriba"},"ref":"refs/changes/12/990112/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/cloudkitty","ref":"refs/changes/12/990112/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/cloudkitty refs/changes/12/990112/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/cloudkitty refs/changes/12/990112/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/cloudkitty refs/changes/12/990112/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/cloudkitty refs/changes/12/990112/1"}}},"commit":{"parents":[{"commit":"a3a9f1174e9a9a225865111242199363e45ec109","subject":"Merge \"doc: Update Ubuntu package information\"","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/cloudkitty/commit/a3a9f1174e9a9a225865111242199363e45ec109"}]}],"author":{"name":"Juan Larriba","email":"jlarriba@redhat.com","date":"2026-05-26 13:49:07.000000000","tz":120},"committer":{"name":"Juan Larriba","email":"jlarriba@redhat.com","date":"2026-05-26 13:49:45.000000000","tz":120},"subject":"Fix 500 error when creating scope with active\u003dFalse","message":"Fix 500 error when creating scope with active\u003dFalse\n\nThe POST /v2/scope endpoint returns a 500 Internal Server Error\nwhen creating a scope with active set to false. After inserting\nthe scope into the database, the handler calls get_all() to read\nit back for the response. However, get_all() defaults to filtering\nby active\u003d1, so the just-created inactive scope is not found,\ncausing an IndexError on the empty result list.\n\nPass active\u003dNone to the get_all() call after creation so that it\nretrieves the scope regardless of its active status.\n\nAssisted-By: Claude Opus 4.6\nChange-Id: I4b6f3ff22bd8cf3926f3c55cd17ca855a97e276b\nSigned-off-by: Juan Larriba \u003cjlarriba@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/cloudkitty/commit/4cb28f1983754da4732a625acdee6f735e0d1336"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/cloudkitty/commit/4cb28f1983754da4732a625acdee6f735e0d1336"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"OK","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY"},{"label":"Workflow","status":"MAY"},{"label":"Review-Priority","status":"MAY"}]}],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Verified\u003dMAX","label:Verified\u003dMIN"],"atom_explanations":{"label:Verified\u003dMAX":"","label:Verified\u003dMIN":""}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Code-Review\u003dMAX","label:Code-Review\u003dMIN"],"atom_explanations":{"label:Code-Review\u003dMAX":"","label:Code-Review\u003dMIN":""}}},{"name":"Review-Priority","description":"Review priority","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"-label:Review-Priority\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":[],"failing_atoms":["label:Review-Priority\u003dMIN"],"atom_explanations":{"label:Review-Priority\u003dMIN":""}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"UNSATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":false,"status":"FAIL","passing_atoms":[],"failing_atoms":["label:Workflow\u003dMAX","label:Workflow\u003dMIN"],"atom_explanations":{"label:Workflow\u003dMAX":"","label:Workflow\u003dMIN":""}}}]}
