Skip to content
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

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from

Conversation

jounaidr
Copy link

@jounaidr jounaidr commented Feb 14, 2022

resolves #306 merge after (#282 or a similar test case)

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
@jounaidr jounaidr requested a review from a team as a code owner February 14, 2022 16:48
@jounaidr
Copy link
Author

jounaidr commented Feb 14, 2022

Example test email:
image

@tofu-rocketry
Copy link
Member

Example test email:
Uploading Screenshot_20220214-164425.jpg…

Did you post the comment before the upload had finished?

@jounaidr
Copy link
Author

jounaidr commented Feb 14, 2022

Did you post the comment before the upload had finished?

Ahh I didn't realise it didn't upload, ill try again, thanks!

@gregcorbett gregcorbett added this to the 5.10.0 milestone Feb 15, 2022
lib/Gocdb_Services/NotificationService.php Outdated Show resolved Hide resolved
lib/Gocdb_Services/NotificationService.php Outdated Show resolved Hide resolved
@@ -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());
Copy link
Member

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?

@gregcorbett gregcorbett self-assigned this Apr 28, 2022
@gregcorbett gregcorbett modified the milestones: 5.10.0, November 2022 Jul 4, 2022
@gregcorbett gregcorbett modified the milestones: November 2022, June 2023 Nov 2, 2022
@gregcorbett
Copy link
Member

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.

@gregcorbett gregcorbett modified the milestones: May 2023, September 2023 Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If no other user can approve a role request, email the GOCDB admins
4 participants