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

[IDP-1221] Optionally send external-groups sync-errors notification email #375

Merged
merged 17 commits into from
Oct 2, 2024

Conversation

forevermatt
Copy link
Contributor

@forevermatt forevermatt commented Sep 30, 2024

IDP-1221 Send error notification email for external-groups sync errors


Added

  • Optionally send external-groups sync-errors notification email (see local.env.dist for the environment variable name)

Changed (non-breaking)

  • Enable the Emailer to send to an arbitrary email address

Fixed

  • Update dependencies

Feature PR Checklist

  • Documentation (README, local.env.dist, api.raml, etc.)
  • Tests created or updated
  • Run make composershow
  • Run make psr2

@forevermatt forevermatt requested a review from a team as a code owner September 30, 2024 20:19
@forevermatt forevermatt requested review from briskt, mtompset, jason-jackson and hobbitronics and removed request for a team September 30, 2024 20:19
@briskt
Copy link
Contributor

briskt commented Sep 30, 2024

I'm not opposed to a breaking change, but would like to consider other things to include in the next major version. If this is a time-sensitive change, it might be good to do it in a non-breaking way and then circle back with the improved code.

@forevermatt
Copy link
Contributor Author

I'm not opposed to a breaking change, but would like to consider other things to include in the next major version. If this is a time-sensitive change, it might be good to do it in a non-breaking way and then circle back with the improved code.

Good point. Changing the authenticate call to no longer update the user's last-login date/time will probably also be a breaking change, so it may be best to hold off on this minimum-version update until that is ready to release (and then perhaps raise our minimum version all the way to the oldest still-supported version of PHP).

I'll look at adjusting this code back down to be compatible with PHP 7.4

Copy link

sonarcloud bot commented Oct 1, 2024

@forevermatt
Copy link
Contributor Author

I'm not opposed to a breaking change, but would like to consider other things to include in the next major version. If this is a time-sensitive change, it might be good to do it in a non-breaking way and then circle back with the improved code.

Okay, I've lowered the minimum PHP version for ID Broker back to 7.4, to avoid the breaking change in this PR.

@briskt
Copy link
Contributor

briskt commented Oct 2, 2024

Changing the authenticate call to no longer update the user's last-login date/time will probably also be a breaking change

My perspective would be that this is a bug fix, so it wouldn't be a breaking change. But it's a bit subjective.

<?= yHtml::ul($errors) ?>

<?php
if (empty($googleSheetUrl)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it impossible for googleSheetUrl to be empty? It would at least have this much: 'https://docs.google.com/spreadsheets/d/'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, good catch. I'll try to fix that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitted follow-up PR to fix that:
#376

@forevermatt forevermatt merged commit 3391eae into develop Oct 2, 2024
3 checks passed
@forevermatt forevermatt deleted the feature/IDP-1221-sync-errors-notification-email branch October 2, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants