)]}'
{"id":"openstack%2Fopenstacksdk~711314","triplet_id":"openstack%2Fopenstacksdk~stable%2Fstein~I8bb6f46f66249aeae0649c8f6596f9269e3518a5","project":"openstack/openstacksdk","branch":"stable/stein","topic":"bug/1779882-stable/stein","hashtags":[],"change_id":"I8bb6f46f66249aeae0649c8f6596f9269e3518a5","subject":"Add \"name\" filter in \"list\" call when retrieving a single register","status":"MERGED","created":"2020-03-04 19:33:47.000000000","updated":"2020-03-09 16:38:16.000000000","submitted":"2020-03-09 16:35:53.000000000","submitter":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"711314-1583771753887-c6fdaf72","meta_rev_id":"b0013a7a9774aeeafdabd582168b5469a85332cc","_number":711314,"virtual_id_number":711314,"owner":{"_account_id":16011,"name":"James Denton","email":"james.denton@outlook.com","username":"busterswt"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},{"value":0,"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},{"tag":"autogenerated:zuul:gate","value":2,"date":"2020-03-09 16:35:53.000000000","post_submit":true,"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":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"recommended":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"all":[{"value":1,"date":"2020-03-09 15:27:03.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},{"value":2,"date":"2020-03-09 14:49:31.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},{"value":0,"_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":"","value":1,"default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"all":[{"value":0,"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},{"value":1,"date":"2020-03-09 14:49:31.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},{"value":0,"_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},"Allow-Post-Review":{"all":[{"value":0,"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},{"value":0,"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{" 0":"Abstain","+1":"Approved for Zuul Post Review Pipeline"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2020-03-09 14:49:31.000000000","updated_by":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"reviewer":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"state":"REVIEWER"},{"updated":"2020-03-09 15:27:03.000000000","updated_by":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"reviewer":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"state":"REVIEWER"},{"updated":"2020-03-09 16:35:53.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":"f372e24e144b3f948c0aaa7d822eb8d99af1a52d","author":{"_account_id":16011,"name":"James Denton","email":"james.denton@outlook.com","username":"busterswt"},"date":"2020-03-04 19:33:47.000000000","message":"Patch Set 1: Cherry Picked from branch master.","accounts_in_message":[],"_revision_number":1},{"id":"467d619b97aed4dfe522c67a3b0d662f5fa5c18a","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2020-03-04 20:59:45.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- openstack-tox-lower-constraints https://zuul.opendev.org/t/openstack/build/6249f67e140d4136b824d30441a09c86 : SUCCESS in 4m 00s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/282b2747b54c4f3687c5fd2c55639d2a : SUCCESS in 3m 28s\n- openstack-tox-py27 https://zuul.opendev.org/t/openstack/build/1cb0f4b79fbf455d83958d4c8e25cd9f : SUCCESS in 3m 42s\n- openstack-tox-py36 https://zuul.opendev.org/t/openstack/build/cf8ee1fbac58472abbbd8d0a1651e3d9 : SUCCESS in 5m 19s\n- openstacksdk-functional-devstack-tips https://zuul.opendev.org/t/openstack/build/da33fdd1387940cfb2c72b0a1579eefa : SUCCESS in 53m 09s\n- openstacksdk-functional-devstack-tips-python2 https://zuul.opendev.org/t/openstack/build/1f2256dfb5c143a692d9ddf2292422f2 : SUCCESS in 1h 05m 33s\n- openstacksdk-tox-py36-tips https://zuul.opendev.org/t/openstack/build/748698ee3e5042dda341689c8345a58c : SUCCESS in 5m 15s\n- os-client-config-tox-py27-tips https://zuul.opendev.org/t/openstack/build/de20339f02a14ddc9cb7c02b26179fba : SUCCESS in 4m 46s\n- os-client-config-tox-py37-tips https://zuul.opendev.org/t/openstack/build/c7cef3f6410c486cbf3138dc263a159a : SUCCESS in 5m 20s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/4c5b98e22a4a4c3e9494097eaf834022 : SUCCESS in 5m 30s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/26b01e6e8cce48d38d3c3d94c2bd248a : SUCCESS in 4m 38s\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/833b4b8eb05245a3a2440de25eac7f11 : SUCCESS in 55m 05s\n- openstacksdk-functional-devstack-networking https://zuul.opendev.org/t/openstack/build/a03de63a6642486f9e0b73d513e32195 : SUCCESS in 1h 19m 01s\n- openstacksdk-functional-devstack-senlin https://zuul.opendev.org/t/openstack/build/f7ce899de90544a5adb6d3473cf24c07 : SUCCESS in 51m 58s\n- openstacksdk-functional-devstack-magnum https://zuul.opendev.org/t/openstack/build/3c533bfa36f7447a9f3a150aeff5eeaf : SUCCESS in 1h 00m 39s (non-voting)\n- openstacksdk-functional-devstack-masakari https://zuul.opendev.org/t/openstack/build/27dc79826b064a5eace8006e418e927d : SUCCESS in 28m 28s (non-voting)\n- openstacksdk-functional-devstack-ironic https://zuul.opendev.org/t/openstack/build/eb98b7fbde2b49339fc18195196064af : SUCCESS in 31m 20s (non-voting)\n- openstacksdk-functional-devstack-python2 https://zuul.opendev.org/t/openstack/build/9b7b8b33de354d8e9867a62f52ccd658 : SUCCESS in 56m 00s\n- osc-functional-devstack-tips https://zuul.opendev.org/t/openstack/build/b0a1be42cb64419fb32318ba25bd2c2d : SUCCESS in 59m 20s (non-voting)\n- nodepool-functional-openstack-src https://zuul.opendev.org/t/openstack/build/6c817319a9124493a038f4df3b1b02af : SUCCESS in 33m 55s\n- bifrost-integration-tinyipa-ubuntu-xenial https://zuul.opendev.org/t/openstack/build/5027d604dd4d41fbab6d2d62b3ecbbb7 : SUCCESS in 20m 07s\n- metalsmith-integration-openstacksdk-src https://zuul.opendev.org/t/openstack/build/1eb1b24c9d0c4efeb1b06142ee5a2549 : SUCCESS in 48m 22s (non-voting)","accounts_in_message":[],"_revision_number":1},{"id":"8354d7ef7d387738ee46374f3cb4a613ef19daf0","author":{"_account_id":2,"name":"Monty Taylor","email":"mordred@inaugust.com","username":"mordred"},"date":"2020-03-09 14:49:31.000000000","message":"Patch Set 1: Code-Review+2 Workflow+1","accounts_in_message":[],"_revision_number":1},{"id":"4811af43999c9d2f9b0d3051be027a0fd61e48be","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2020-03-09 14:49:45.000000000","message":"Patch Set 1: -Verified\n\nStarting gate jobs.","accounts_in_message":[],"_revision_number":1},{"id":"324d5ba0afb128c0984a29c49332fec09f209199","author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"date":"2020-03-09 15:27:03.000000000","message":"Patch Set 1: Code-Review+1\n\nGood to see this feature backported.","accounts_in_message":[],"_revision_number":1},{"id":"cde68bd21d71ba26f44421df764633ee947b10b4","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2020-03-09 16:35:53.000000000","message":"Patch Set 1: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- openstack-tox-lower-constraints https://zuul.opendev.org/t/openstack/build/222a45718c31479bb3341d4c2b2e16c4 : SUCCESS in 4m 13s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/8f2a859dd7f14aec936f07ad19828de8 : SUCCESS in 5m 12s\n- openstack-tox-py27 https://zuul.opendev.org/t/openstack/build/ad3b74c1ce43426ab2e2cfa18d7225c8 : SUCCESS in 4m 12s\n- openstack-tox-py36 https://zuul.opendev.org/t/openstack/build/270ed284468642ffaa6ab7dc8ad60267 : SUCCESS in 5m 45s\n- openstacksdk-functional-devstack-tips https://zuul.opendev.org/t/openstack/build/141872f645954d448e4f6095156de73d : SUCCESS in 1h 15m 05s\n- openstacksdk-functional-devstack-tips-python2 https://zuul.opendev.org/t/openstack/build/89b20ad3aec64bc5a940a97a7a5e37a1 : SUCCESS in 1h 03m 14s\n- openstacksdk-tox-py36-tips https://zuul.opendev.org/t/openstack/build/f00c44e695a8444dacf574aae63321dc : SUCCESS in 4m 37s\n- os-client-config-tox-py27-tips https://zuul.opendev.org/t/openstack/build/8c731edcfa2e4304946e50b8ac489f16 : SUCCESS in 4m 39s\n- os-client-config-tox-py37-tips https://zuul.opendev.org/t/openstack/build/f37e51aff2924f4fa8f49b11c47a7e2a : SUCCESS in 5m 18s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/fef57c3cbed44a31bc870fb5ed23be4d : SUCCESS in 5m 18s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/eccc33854b324427932c49fa6d7f97a7 : SUCCESS in 6m 01s\n- openstacksdk-functional-devstack https://zuul.opendev.org/t/openstack/build/2d35e1410c334b9bb2babfb0fea8f2dd : SUCCESS in 1h 09m 26s\n- openstacksdk-functional-devstack-python2 https://zuul.opendev.org/t/openstack/build/83d2db40740247e9875c20ed5ce34323 : SUCCESS in 1h 20m 33s\n- openstacksdk-functional-devstack-networking https://zuul.opendev.org/t/openstack/build/a401a4805e3641e6ab660ffb000086c8 : SUCCESS in 1h 35m 01s\n- openstacksdk-functional-devstack-senlin https://zuul.opendev.org/t/openstack/build/3533e163892b4fc1bf8bcaa9d23b9dd4 : SUCCESS in 50m 31s\n- nodepool-functional-openstack-src https://zuul.opendev.org/t/openstack/build/e78c5c649036400e84f6d52fec354d6a : SUCCESS in 32m 03s\n- bifrost-integration-tinyipa-ubuntu-xenial https://zuul.opendev.org/t/openstack/build/57d738a9446b4a189d09c3eaba026603 : SUCCESS in 20m 57s","accounts_in_message":[],"_revision_number":1},{"id":"469002f14dc276548ce2a5ba2c1dfd8b2be39927","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2020-03-09 16:35:53.000000000","message":"Change has been successfully merged by Zuul","accounts_in_message":[],"_revision_number":1},{"id":"5a37f414e22e312d137c86d10c357edac856cabb","tag":"autogenerated:zuul:promote","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2020-03-09 16:38:16.000000000","message":"Patch Set 1:\n\nBuild succeeded (promote pipeline).\n\n- promote-openstack-tox-docs https://zuul.opendev.org/t/openstack/build/9d37917deee54537bf459e6f4cad9b50 : SUCCESS in 1m 44s\n- promote-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/dcf9eb04788b41e4b2ac0976da70f77d : SUCCESS in 1m 59s","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"6d4eac8425f04c68e8de86b724fd7e15c21909e8","revisions":{"6d4eac8425f04c68e8de86b724fd7e15c21909e8":{"kind":"REWORK","_number":1,"created":"2020-03-04 19:33:47.000000000","uploader":{"_account_id":16011,"name":"James Denton","email":"james.denton@outlook.com","username":"busterswt"},"ref":"refs/changes/14/711314/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstacksdk","ref":"refs/changes/14/711314/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstacksdk refs/changes/14/711314/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstacksdk refs/changes/14/711314/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstacksdk refs/changes/14/711314/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstacksdk refs/changes/14/711314/1"}}},"commit":{"parents":[{"commit":"bca8af6992770803346d20e91e8e838386485fb7","subject":"Merge \"Keep connection backrefs with weakref.proxy\" into stable/stein","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstacksdk/commit/bca8af6992770803346d20e91e8e838386485fb7"}]}],"author":{"name":"Rodolfo Alonso Hernandez","email":"ralonsoh@redhat.com","date":"2019-04-12 15:24:22.000000000","tz":0},"committer":{"name":"James Denton","email":"james.denton@outlook.com","date":"2020-03-04 19:33:47.000000000","tz":0},"subject":"Add \"name\" filter in \"list\" call when retrieving a single register","message":"Add \"name\" filter in \"list\" call when retrieving a single register\n\nResource.find() function accepts both the ID or the name of a register.\nFirst tries to retrieve the register by calling the server API using\nthe identifier given. By default, all OpenStack API will accept the ID\nof the register (which is unique). If this call fails, the function\nretrieves the list of all registers in the table.\n\nThis last call is very inefficient if the number of elements is high.\nThe bug description documents the time needed to retrieve a list of\n1000 ports.\n\nInstead of this, this patch uses the filtering options available in the\nservers APIs. This filter will be applied in the database call and the\nnumber of registers returned will be limited to only those ones\nmatching the \"name\" field.\n\nIn case the API doesn\u0027t support this filtering parameter, a\n\"InvalidResourceQuery\" will be risen and the function will retrieve\nagain the list of registers in the database without filtering by \"name\".\n\nChange-Id: I8bb6f46f66249aeae0649c8f6596f9269e3518a5\nRelated-Bug: #1779882\n(cherry picked from commit 790fefbccdc6d8bc7d39ab11051776a17fdebaec)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstacksdk/commit/6d4eac8425f04c68e8de86b724fd7e15c21909e8"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstacksdk/commit/6d4eac8425f04c68e8de86b724fd7e15c21909e8"}]},"branch":"refs/heads/stable/stein"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
