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

PS-148 notification email #41

Merged
merged 21 commits into from
Apr 12, 2024
Merged

Conversation

MysticFragilist
Copy link
Contributor

@MysticFragilist MysticFragilist commented Apr 8, 2024

image

core/Controllers/SubscriptionController.cs Outdated Show resolved Hide resolved
core/Controllers/SubscriptionController.cs Outdated Show resolved Hide resolved
core/Data/Entities/Notification.cs Outdated Show resolved Hide resolved
core/Misc/SchedulerSetup.cs Show resolved Hide resolved
core/Services/NotificationService.cs Outdated Show resolved Hide resolved
core/Services/NotificationService.cs Outdated Show resolved Hide resolved
core/Services/SubscriptionService.cs Outdated Show resolved Hide resolved
emails/Services/Abstractions/IEmailService.cs Outdated Show resolved Hide resolved
var notifService = (serviceScope.ServiceProvider?.GetService<INotificationService>()) ?? throw new SchedulerException("Cannot instantiate NotificationService from the AspNet Core IOC.");

var emailsCount = await notifService.SendNewsForRemainingPublication();
await Console.Out.WriteLineAsync($"[NotificationByEmailJob] {emailsCount} emails were sent out");
Copy link
Contributor

Choose a reason for hiding this comment

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

Ça c'est tu nécessaire? 😮

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ouii pour logger des info! Mais tu me fais penser que c'est mieux de use le logger provided

MysticFragilist and others added 6 commits April 10, 2024 14:42
Co-authored-by: Camille Brulotte <37625944+camillebrulotte@users.noreply.github.com>
Co-authored-by: Camille Brulotte <37625944+camillebrulotte@users.noreply.github.com>
Co-authored-by: Camille Brulotte <37625944+camillebrulotte@users.noreply.github.com>
Co-authored-by: Camille Brulotte <37625944+camillebrulotte@users.noreply.github.com>
Co-authored-by: Camille Brulotte <37625944+camillebrulotte@users.noreply.github.com>
Co-authored-by: Camille Brulotte <37625944+camillebrulotte@users.noreply.github.com>
core/Services/NotificationService.cs Outdated Show resolved Hide resolved
core/Services/NotificationService.cs Outdated Show resolved Hide resolved
core/Services/SubscriptionService.cs Outdated Show resolved Hide resolved
emails/Services/Abstractions/IEmailService.cs Outdated Show resolved Hide resolved
emails/Services/EmailService.cs Outdated Show resolved Hide resolved
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

Copy link

Quality Gate Passed Quality Gate passed

Issues
35 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

@Udito3 Udito3 left a comment

Choose a reason for hiding this comment

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

LGTM

@MysticFragilist MysticFragilist merged commit 4ea095d into main Apr 12, 2024
3 checks passed
@MysticFragilist MysticFragilist deleted the ftr/ps-148-notification-email branch April 12, 2024 13:27
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.

4 participants