)]}'
{"id":"openstack%2Fwatcher~954120","triplet_id":"openstack%2Fwatcher~master~I82a5e4a7a51726b3a89257c84a75157fbfcb82eb","project":"openstack/watcher","branch":"master","topic":"bug/2115968","attention_set":{},"removed_from_attention_set":{"30002":{"account":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},"last_update":"2025-07-08 19:08:59.000000000","reason":"\u003cGERRIT_ACCOUNT_30002\u003e replied on the change","reason_account":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"}},"12393":{"account":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"last_update":"2025-07-08 19:31:11.000000000","reason":"Change was submitted"}},"hashtags":[],"change_id":"I82a5e4a7a51726b3a89257c84a75157fbfcb82eb","subject":"Drop Code related to OperationNotPermitted exception","status":"MERGED","created":"2025-07-04 12:46:42.000000000","updated":"2025-07-09 10:18:21.000000000","submitted":"2025-07-08 19:31:11.000000000","submitter":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"total_comment_count":4,"unresolved_comment_count":1,"has_review_started":true,"submission_id":"954120-bug/2115968","meta_rev_id":"e298247383ac949b4f12f62ab80483b2d694afea","_number":954120,"virtual_id_number":954120,"owner":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},{"value":0,"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},{"value":0,"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},{"tag":"autogenerated:zuul:gate","value":2,"date":"2025-07-08 19:31: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":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},"all":[{"value":2,"date":"2025-07-08 19:08:59.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},{"value":2,"date":"2025-07-08 12:01:14.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},{"value":1,"date":"2025-07-04 17:10:24.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},{"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":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},"all":[{"value":1,"date":"2025-07-08 19:08:59.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},{"value":0,"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},{"value":0,"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},{"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},"Review-Priority":{"all":[{"value":0,"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},{"value":0,"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},{"value":0,"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}],"values":{" 0":"Standard Change","+1":"Important Change","+2":"High Priority Change"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2025-07-04 15:10:05.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"},{"updated":"2025-07-04 17:10:24.000000000","updated_by":{"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},"reviewer":{"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},"state":"REVIEWER"},{"updated":"2025-07-08 12:01:14.000000000","updated_by":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"reviewer":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"state":"REVIEWER"},{"updated":"2025-07-08 12:01:51.000000000","updated_by":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"reviewer":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},"state":"REVIEWER"}],"messages":[{"id":"7ffb973a30cd66fbcefefc3e8393a58addb1cdc1","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"date":"2025-07-04 12:46:42.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"408db98295871b84458b62d2e7755f8e2cf8a4cb","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"date":"2025-07-04 14:01:31.000000000","message":"Uploaded patch set 2.","accounts_in_message":[],"_revision_number":2},{"id":"479bf842f88ef76b674e6b6a6ee72903d5d33613","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2025-07-04 15:10:05.000000000","message":"Patch Set 2: Verified-1\n\nBuild failed (check pipeline).  For information on how to proceed, see\nhttps://docs.opendev.org/opendev/infra-manual/latest/developers.html#automated-testing\nand https://docs.openstack.org/project-team-guide/testing.html#how-to-handle-test-failures\n\nhttps://zuul.opendev.org/t/openstack/buildset/005a4f8e0944448489ecccc5c6852a3a\n\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/cce688ffed294732bf749e434ef89324 : SUCCESS in 6m 13s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/14283680396a43068fba6c9ff9316d59 : SUCCESS in 2m 29s\n- openstack-tox-py310 https://zuul.opendev.org/t/openstack/build/fa6a062234074798a7df84a5f0a7c58a : SUCCESS in 3m 09s\n- openstack-tox-py312 https://zuul.opendev.org/t/openstack/build/526089cf71a9421cb43ddcaa7a59b366 : SUCCESS in 5m 18s\n- openstack-tox-py313 https://zuul.opendev.org/t/openstack/build/f6f060fa82f8419f90a03e3a10a25200 : SUCCESS in 8m 20s (non-voting)\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/cde304e1a0b040db8f7286362c555a85 : SUCCESS in 8m 23s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/85ec179c7d174dbcb02c98bce93cc6f4 : SUCCESS in 3m 22s\n- watcher-tempest-functional https://zuul.opendev.org/t/openstack/build/c396eacda20b4571ac562437a2d16391 : SUCCESS in 30m 40s\n- watcher-grenade https://zuul.opendev.org/t/openstack/build/c3f0a37448f24e8cbc17876640b0285f : SUCCESS in 44m 15s\n- watcher-tempest-strategies https://zuul.opendev.org/t/openstack/build/acc056c9ebb84cd8b37cf496c38dd96b : SUCCESS in 1h 03m 05s\n- watcher-tempest-actuator https://zuul.opendev.org/t/openstack/build/7eeac796b6054154847229e5040d55fb : SUCCESS in 50m 24s\n- python-watcherclient-functional https://zuul.opendev.org/t/openstack/build/146af025cd324cc9ba11695e21a8b50e : SUCCESS in 38m 08s\n- watcher-tempest-functional-ipv6-only https://zuul.opendev.org/t/openstack/build/2fad367f6e9c4b82999d4cafeaa522ba : SUCCESS in 30m 59s\n- watcher-prometheus-integration https://zuul.opendev.org/t/openstack/build/d928c74abaca4ff7ada52f4a3f7b9c3c : FAILURE in 1h 03m 14s","accounts_in_message":[],"_revision_number":2},{"id":"e610edf0bdacf29e68e11993fa5d94feb766ce9f","author":{"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},"date":"2025-07-04 17:10:24.000000000","message":"Patch Set 2: Code-Review+1\n\nBuild succeeded (check pipeline).\nhttps://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/3f9e6ee252fa4938893fc3ea46cfbc4b\n\n- openstack-meta-content-provider-master https://softwarefactory-project.io/zuul/t/rdoproject.org/build/9cbfc6ebbd9b4b149be3711cb77f9ab3 : SUCCESS in 3h 07m 28s\n- watcher-operator-validation-master https://softwarefactory-project.io/zuul/t/rdoproject.org/build/06805a7b3e944b9aa1c3caef462a8e86 : SUCCESS in 2h 12m 46s (non-voting)","accounts_in_message":[],"_revision_number":2},{"id":"321894c751e00f3c5544e16ecfeba4df5b739d57","author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"date":"2025-07-07 05:56:57.000000000","message":"Patch Set 2:\n\n(1 comment)","accounts_in_message":[],"_revision_number":2},{"id":"0d1229204c784140a768f41fa09c3dc7f1f82a97","author":{"_account_id":26471,"name":"Software Factory CI","email":"softwarefactory-operations-team@redhat.com","username":"sf-project-io"},"date":"2025-07-07 07:03:22.000000000","message":"Patch Set 2:\n\nBuild succeeded (check pipeline).\nhttps://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/950608da818a402f97f9f7ddbe1caa4a\n\n- openstack-meta-content-provider-master https://softwarefactory-project.io/zuul/t/rdoproject.org/build/57d08927f748485a9838f7989eefe9a8 : SUCCESS in 1h 04m 59s\n- watcher-operator-validation-master https://softwarefactory-project.io/zuul/t/rdoproject.org/build/8e5b68349f7d456aadc2a473aebffe99 : FAILURE in 18m 24s (non-voting)","accounts_in_message":[],"_revision_number":2},{"id":"6e02276b264dbd3f35f416268e7ccf48645f365c","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2025-07-07 07:12:25.000000000","message":"Patch Set 2: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/49ffb43059614d4598099b6db1261663\n\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/60a7ac3a3ca64959914e09201b73acd7 : SUCCESS in 3m 15s\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/ec5b20895f3048b888e75b4f81de4703 : SUCCESS in 5m 01s\n- openstack-tox-py310 https://zuul.opendev.org/t/openstack/build/b3e911ee06914b1e863f82262ba6116b : SUCCESS in 4m 40s\n- openstack-tox-py312 https://zuul.opendev.org/t/openstack/build/bc44d4b1f9f04b2ab276e20d4b35903a : SUCCESS in 5m 57s\n- openstack-tox-py313 https://zuul.opendev.org/t/openstack/build/796bce9e8b584a31a143b5d229d946bb : SUCCESS in 7m 43s (non-voting)\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/1869564d4294421d976904e1b228b410 : SUCCESS in 9m 11s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/6828c5f56d1e465d89aee08f4a9f89ee : SUCCESS in 4m 04s\n- watcher-tempest-functional https://zuul.opendev.org/t/openstack/build/7ecfdf8b31924ba8a2c630b2b07d9d97 : SUCCESS in 28m 50s\n- watcher-grenade https://zuul.opendev.org/t/openstack/build/d4bb06d422444a078252f55dfa50cb54 : SUCCESS in 33m 57s\n- watcher-tempest-strategies https://zuul.opendev.org/t/openstack/build/3b3fc9563d91408da12bf5bcfdaace65 : SUCCESS in 54m 45s\n- watcher-tempest-actuator https://zuul.opendev.org/t/openstack/build/8795d87dcaf442abb60fed9d91fd3351 : SUCCESS in 36m 38s\n- python-watcherclient-functional https://zuul.opendev.org/t/openstack/build/292cb2971da14013af0b8115297311b9 : SUCCESS in 19m 18s\n- watcher-tempest-functional-ipv6-only https://zuul.opendev.org/t/openstack/build/8d90ecdb582a470892ae3b24f699c5d4 : SUCCESS in 23m 17s\n- watcher-prometheus-integration https://zuul.opendev.org/t/openstack/build/bdfedaf2e24f427fa6ddb036014bc9ea : SUCCESS in 1h 13m 00s","accounts_in_message":[],"_revision_number":2},{"id":"ae8a5096be7979817e9820ab1b1879b7b6ca7018","author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"date":"2025-07-08 12:01:14.000000000","message":"Patch Set 2: Code-Review+2","accounts_in_message":[],"_revision_number":2},{"id":"897a84c10d4c73305f31be4242ac7b7c38a3547b","author":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"},"date":"2025-07-08 19:08:59.000000000","message":"Patch Set 2: Code-Review+2 Workflow+1\n\n(2 comments)","accounts_in_message":[],"_revision_number":2},{"id":"3b975ae3d28e9d8057ec68a8d4693bc645ef8eb7","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2025-07-08 19:09:20.000000000","message":"Patch Set 2: -Verified\n\nStarting gate jobs.","accounts_in_message":[],"_revision_number":2},{"id":"7c9cd94009294da1feb7b7051774fe4749d4cfa5","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2025-07-08 19:31:11.000000000","message":"Patch Set 2: Verified+2\n\nBuild succeeded (gate pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/23ca8906447d4375b64d9fb4394cd2fa\n\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/935ce380ea7b41c09b6b457829772299 : SUCCESS in 2m 52s\n- openstack-tox-py310 https://zuul.opendev.org/t/openstack/build/4fd73974329b4be781a37153586151be : SUCCESS in 4m 21s\n- openstack-tox-py312 https://zuul.opendev.org/t/openstack/build/56aaf9bd98e64ea09125471bd0703b53 : SUCCESS in 3m 43s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/99076d8aa59848bc8b4c1cf27a724f91 : SUCCESS in 7m 29s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/5892167329584d4cb295503aee4db13f : SUCCESS in 2m 40s\n- watcher-tempest-functional https://zuul.opendev.org/t/openstack/build/c03d397be3574959a4a636641a2d9800 : SUCCESS in 21m 23s\n- watcher-tempest-functional-ipv6-only https://zuul.opendev.org/t/openstack/build/aadfe8be5b35402e950c9c5022fdb812 : SUCCESS in 13m 33s","accounts_in_message":[],"_revision_number":2},{"id":"2ce0cf1a763bb37facaf2afe15b909a5d5f593bd","tag":"autogenerated:gerrit:merged","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2025-07-08 19:31:11.000000000","message":"Change has been successfully merged","accounts_in_message":[],"_revision_number":2},{"id":"d1ea7bb2f224e818f0dde581854f90a33dcaab27","tag":"autogenerated:zuul:promote","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2025-07-08 19:32:04.000000000","message":"Patch Set 2:\n\nBuild succeeded (promote pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/433dd215025c4c18977c87d68cccccca\n\n- promote-openstack-tox-docs https://zuul.opendev.org/t/openstack/build/9a77823f14d440a1a473bdc653c3d203 : SUCCESS in 43s\n- promote-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/0d987870a0fb4e6db446ebbe57f63bd5 : SUCCESS in 45s","accounts_in_message":[],"_revision_number":2},{"id":"e298247383ac949b4f12f62ab80483b2d694afea","author":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"date":"2025-07-09 10:18:21.000000000","message":"Patch Set 2:\n\n(1 comment)","accounts_in_message":[],"_revision_number":2}],"current_revision_number":2,"current_revision":"e3b813e27edac4cad573c0a1788cb60d41d9e535","revisions":{"11d4b9dbfcf484c41ff3926ade708d0fe57a3d4c":{"kind":"REWORK","_number":1,"created":"2025-07-04 12:46:42.000000000","uploader":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"ref":"refs/changes/20/954120/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/watcher","ref":"refs/changes/20/954120/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/watcher refs/changes/20/954120/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/watcher refs/changes/20/954120/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/watcher refs/changes/20/954120/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/watcher refs/changes/20/954120/1"}}},"commit":{"parents":[{"commit":"c0a5abe29c2f54314b170e1c198d2a377af6be46","subject":"Drops forbidden patch/delete/post action apis","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/watcher/commit/c0a5abe29c2f54314b170e1c198d2a377af6be46"}]}],"author":{"name":"Chandan Kumar (raukadah)","email":"chkumar@redhat.com","date":"2025-07-04 12:27:30.000000000","tz":330},"committer":{"name":"Chandan Kumar (raukadah)","email":"chkumar@redhat.com","date":"2025-07-04 12:46:10.000000000","tz":330},"subject":"Drop Code related to OperationNotPermitted exception","message":"Drop Code related to OperationNotPermitted exception\n\nThe following exception was added in initial import of watcher\ncode base[1].\n\nIn each of the controller REST APIs, it was called with a flag\nstating request was coming from top level resources apis.\n\nBut this exception and code was not used anywhere in the\nrest api. It seems to be a dead code. So, it needs to be\ncleaned up.\n\nNote: In audit_template, under patchapi, this exception\nwas used for not removal goal from audit template.\n\nSince this cr drops this exception, It replace the same\nwith NotAuthorized exception keeping status code same.\n\nLinks:\n[1]. https://github.com/openstack/watcher/commit/d14e057da15e1b6636c8a277bfc397a926e01569#diff-6d510a275605e20ba8b435157062da2b749265a88a3cfd6d90abb7e8e5feac2aR235\n\nCloses-Bug: #2115968\n\nChange-Id: I82a5e4a7a51726b3a89257c84a75157fbfcb82eb\nSigned-off-by: Chandan Kumar (raukadah) \u003cchkumar@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/watcher/commit/11d4b9dbfcf484c41ff3926ade708d0fe57a3d4c"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/watcher/commit/11d4b9dbfcf484c41ff3926ade708d0fe57a3d4c"}]},"branch":"refs/heads/master"},"e3b813e27edac4cad573c0a1788cb60d41d9e535":{"kind":"REWORK","_number":2,"created":"2025-07-04 14:01:31.000000000","uploader":{"_account_id":12393,"name":"chandan kumar","display_name":"Chandan Kumar","email":"chkumar@redhat.com","username":"chkumar246"},"ref":"refs/changes/20/954120/2","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/watcher","ref":"refs/changes/20/954120/2","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/watcher refs/changes/20/954120/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/watcher refs/changes/20/954120/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/watcher refs/changes/20/954120/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/watcher refs/changes/20/954120/2"}}},"commit":{"parents":[{"commit":"c0a5abe29c2f54314b170e1c198d2a377af6be46","subject":"Drops forbidden patch/delete/post action apis","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/watcher/commit/c0a5abe29c2f54314b170e1c198d2a377af6be46"}]}],"author":{"name":"Chandan Kumar (raukadah)","email":"chkumar@redhat.com","date":"2025-07-04 12:27:30.000000000","tz":330},"committer":{"name":"Chandan Kumar (raukadah)","email":"chkumar@redhat.com","date":"2025-07-04 13:37:13.000000000","tz":330},"subject":"Drop Code related to OperationNotPermitted exception","message":"Drop Code related to OperationNotPermitted exception\n\nThe following exception was added in initial import of watcher\ncode base[1].\n\nIn each of the controller REST APIs, it was called with a flag\nstating request was coming from top level resources apis.\n\nBut this exception and code was not used anywhere in the\nrest api. It seems to be a dead code. So, it needs to be\ncleaned up.\n\nNote: In audit_template, under patchapi, this exception\nwas used for not removal goal from audit template.\n\nSince this cr drops this exception, It replace the same\nwith NotAuthorized exception keeping status code same.\n\nLinks:\n[1]. https://github.com/openstack/watcher/commit/d14e057da15e1b6636c8a277bfc397a926e01569#diff-6d510a275605e20ba8b435157062da2b749265a88a3cfd6d90abb7e8e5feac2aR235\n\nCloses-Bug: #2115968\n\nChange-Id: I82a5e4a7a51726b3a89257c84a75157fbfcb82eb\nSigned-off-by: Chandan Kumar (raukadah) \u003cchkumar@redhat.com\u003e\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/watcher/commit/e3b813e27edac4cad573c0a1788cb60d41d9e535"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/watcher/commit/e3b813e27edac4cad573c0a1788cb60d41d9e535"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY","applied_by":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"}},{"label":"Workflow","status":"MAY","applied_by":{"_account_id":30002,"name":"Douglas Viroel","email":"viroel@gmail.com","username":"dviroel"}}]}],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX"],"failing_atoms":["label:Verified\u003dMIN"],"atom_explanations":{}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX"],"failing_atoms":["label:Code-Review\u003dMIN"],"atom_explanations":{}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Workflow\u003dMAX"],"failing_atoms":["label:Workflow\u003dMIN"],"atom_explanations":{}}}]}
