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

Task tool_emailutils\task\update_suppression_list should gracefully fail #53 #54

Merged

Conversation

waleedhassan5
Copy link
Contributor

@waleedhassan5 waleedhassan5 commented Oct 22, 2024

Fixed an Issue #53 raised about the aws suppression list update so that it doesn't throw any exceptions if it's not enabled and doesn't cause any noise.

@waleedhassan5 waleedhassan5 marked this pull request as draft October 22, 2024 07:27
@waleedhassan5 waleedhassan5 marked this pull request as ready for review October 22, 2024 07:28
Copy link
Contributor

@marxjohnson marxjohnson left a comment

Choose a reason for hiding this comment

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

Hi Waleed,
Generally this looks like a good solution. Having it disabled by default will prevent errors where it is not being used, and having a debugging message when the configuration is not correct will help diagnose why the task is not working if it is enabled but fails.

Just a few small comments to tidy up.

classes/task/update_suppression_list.php Outdated Show resolved Hide resolved
tests/suppressionlist_test.php Show resolved Hide resolved
@waleedhassan5 waleedhassan5 force-pushed the aws_suppression_list branch 3 times, most recently from d0a702f to 62876a8 Compare October 22, 2024 08:51
@brendanheywood
Copy link
Contributor

@waleedhassan5 Can you always please cross link the issue number in the commit AND in the pull request description so that github does all its nice magic linking.

https://docs.github.com/en/[email protected]/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls#issues-and-pull-requests

@waleedhassan5 waleedhassan5 changed the title Task tool_emailutils\task\update_suppression_list should gracefully fail Task tool_emailutils\task\update_suppression_list should gracefully fail #53 Oct 23, 2024
@waleedhassan5
Copy link
Contributor Author

@waleedhassan5 Can you always please cross link the issue number in the commit AND in the pull request description so that github does all its nice magic linking.

https://docs.github.com/en/[email protected]/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls#issues-and-pull-requests

Sure sorry about that.

…ail catalyst#53

Fixed an Issue raised about the aws suppression list update so that
it doesn't throw any exceptions if it's not enabled and doesn't cause
any noise.
Copy link
Contributor

@marxjohnson marxjohnson left a comment

Choose a reason for hiding this comment

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

Ok, this looks good now. No noise unless the feature is enabled, and it will output a message but still succeed if the task is enabled but credentials aren't configured correctly.

@marxjohnson marxjohnson merged commit 89e5991 into catalyst:MOODLE_39_STABLE Oct 24, 2024
26 checks passed
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.

3 participants