-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue 306 - If no other user can approve a role request, email the GOCDB admins #331
base: dev
Are you sure you want to change the base?
Conversation
add method sendGocdbAdminsEmail to NotificationService.php to send a gocdb admin specific role approval email, and also call function in main roleRequest method if there are no approving users.
Cleanup for PR and change email to GOCDB admin list
Ahh I didn't realise it didn't upload, ill try again, thanks! |
@@ -70,6 +70,8 @@ public function roleRequest ($roleRequested, $requestingUser, $entity) { | |||
} | |||
$projectIds = array_unique ( $projectIds ); | |||
} | |||
// Also send email to GOCDB Admins | |||
$this->sendGocdbAdminsEmail($roleRequested, $requestingUser, $entity->getName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By putting this here, does that mean if an NGI role is requested and no one at the NGI level can approve, do the GOCDB admins get an email regardless of whether there is someone at the project level who can approve the request?
This probably needs a test suite/case, similar to #282 - but automated. |
resolves #306 merge after (#282 or a similar test case)