feat: Allow to cancel request when partner is deactivated
Resolves #5231
Description
- modify RequestDestroyService to not return false on validation for deactivated partners
- add condition to not send email when partner is deactivated
List any dependencies that are required for this change. (gems, js libraries, etc.)
Include anything else we should know about. -->
Type of change
- New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Added test for service to chek that in case of deactivated partner action is running WITHOUT sending an email.
Instruction for manual testing are already in the ticket description.
Screenshots
I am keeping it in draft for now because I would like to receive answers for few questions asked under the ticket. :)
When it will be clear I will adjust rest and make it ready.
@zanetagebka The test that is failing appears to be related to your change.
The manual functional test passes, though.