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

Low rate email to admin #6

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Low rate email to admin #6

merged 1 commit into from
Nov 29, 2023

Conversation

lukaszgarstecki
Copy link
Member

No description provided.

Copy link

github-actions bot commented Nov 28, 2023

Test Results

3 files  ±0  3 suites  ±0   18s ⏱️ +3s
8 tests ±0  8 ✔️ ±0  0 💤 ±0  0 ±0 
9 runs  ±0  9 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit dd87fb8. ± Comparison against base commit a31dd76.

♻️ This comment has been updated with latest results.

@@ -62,6 +71,8 @@ public Task ExecuteAsync(HttpContext context, SubmitAppRating command)
)
);

publishEndpoint.Publish(new RateSubmitted<TUserId>(userId, command.Rating));
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be awaited?

Copy link
Member Author

Choose a reason for hiding this comment

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

My bad. You're right. It should. will fix

Copy link
Member

Choose a reason for hiding this comment

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

This is why having Async suffix is useful, one does not need to remember if every single method out there returns an awaitable or not 🙈

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't Roslyn catch this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I believe I configured something incorrectly. Will fix

backend/src/LeanCode.AppRating/CQRS/SubmitAppRatingCH.cs Outdated Show resolved Hide resolved
string LowRatingEmailSubjectKey,
string FromEmail,
string[] ToEmails,
string[] BccEmails
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this will ever be non-empty. :D

}
}

public class AppRatingConsumerDefinition<TConsumer> : ConsumerDefinition<TConsumer>
Copy link
Member

Choose a reason for hiding this comment

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

I wonder, on one hand, we allow configuring too much (e.g. BCC, or default locale/culture), on the other, we set some things in stone and disallow any changes (consumer configuration). Where is the "ideal" line between ease of use and usability when it comes to configuring things?

@lukaszgarstecki lukaszgarstecki merged commit a1d3f0e into main Nov 29, 2023
3 checks passed
@lukaszgarstecki lukaszgarstecki deleted the feature/low-rate-email branch November 29, 2023 11:53
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