Attached is the patch to reduce the cognitive complexity for validate_request function in roles module from 258 to 15. I've also added a few more test scenarios in the roles RE-SQL test cases to make sure the changes are tested.
Attached is the patch to reduce the cognitive complexity for validate_request function in roles module from 258 to 15. I've also added a few more test scenarios in the roles RE-SQL test cases to make sure the changes are tested.