We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
WebHookFailureNotifier.IsNotifiedOnWindowTimeAsync() doesn't work correct with SQLite storage because of .ToLower() call inside query:
private async Task<bool> IsNotifiedOnWindowTimeAsync(string livenessName, bool restore) { #pragma warning disable RCS1155 // Use StringComparison when comparing strings. var lastNotification = await _db.Failures .Where(lf => lf.HealthCheckName.ToLower() == livenessName.ToLower()) .OrderByDescending(lf => lf.LastNotified) .Take(1) .SingleOrDefaultAsync(); #pragma warning restore RCS1155 // Use StringComparison when comparing strings. return lastNotification != null && lastNotification.IsUpAndRunning == restore && (DateTime.UtcNow - lastNotification.LastNotified).TotalSeconds < _settings.MinimumSecondsBetweenFailureNotifications; }
WebHookFailureNotifier.IsNotifiedOnWindowTimeAsync works correct
"related" issue in ef core repo: dotnet/efcore#27378
The text was updated successfully, but these errors were encountered:
my proposing solution: https://sqlite.org/forum/forumpost/d2f7daf09ea920e9
Sorry, something went wrong.
PR is welcome.
No branches or pull requests
What happened:
WebHookFailureNotifier.IsNotifiedOnWindowTimeAsync() doesn't work correct with SQLite storage because of .ToLower() call inside query:
What you expected to happen:
WebHookFailureNotifier.IsNotifiedOnWindowTimeAsync works correct
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
"related" issue in ef core repo: dotnet/efcore#27378
The text was updated successfully, but these errors were encountered: