Skip to content

PS-148 notification email#41

Merged
MysticFragilist merged 21 commits intomainfrom
ftr/ps-148-notification-email
Apr 12, 2024
Merged

PS-148 notification email#41
MysticFragilist merged 21 commits intomainfrom
ftr/ps-148-notification-email

Conversation

@MysticFragilist
Copy link
Copy Markdown
Contributor

@MysticFragilist MysticFragilist commented Apr 8, 2024

image

Comment thread core/Controllers/SubscriptionController.cs Outdated
Comment thread core/Controllers/SubscriptionController.cs Outdated
Comment thread core/Data/Entities/Notification.cs Outdated
Comment thread core/Misc/SchedulerSetup.cs
Comment thread core/Services/NotificationService.cs Outdated
Comment thread core/Services/NotificationService.cs Outdated
Comment thread core/Services/SubscriptionService.cs Outdated
Comment thread emails/Services/Abstractions/IEmailService.cs Outdated
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
Copy Markdown
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
Copy Markdown
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>
Comment thread core/Services/NotificationService.cs Outdated
Comment thread core/Services/NotificationService.cs Outdated
Comment thread core/Services/SubscriptionService.cs Outdated
Comment thread emails/Services/Abstractions/IEmailService.cs Outdated
Comment thread emails/Services/EmailService.cs Outdated
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

@sonarqubecloud
Copy link
Copy Markdown

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
Copy Markdown

@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
@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