From ad9ce83190e4ece26c45c2c2e68d50b85f568851 Mon Sep 17 00:00:00 2001 From: VILLAN3LL3 Date: Thu, 29 Feb 2024 17:35:40 +0100 Subject: [PATCH 01/17] allow kyrillic characters for texts --- .../_General/Extensions/RuleBuilderExtensions.cs | 8 ++++---- .../ValidationTests/ProjectCreateDtoValidatorTests.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs b/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs index fc276123a..55645695d 100644 --- a/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs +++ b/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs @@ -87,7 +87,7 @@ public static IRuleBuilderOptions PersonName(this IRuleBuilder PlaceName(this IRuleBuilder RestrictedFreeText(this IRuleBui { return ruleBuilder .MaximumLength(maximumLength) - .Matches(@"^[a-zA-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒß'\-.\s0-9\/(),$€#*%&„“"":;?!@\+]*$") + .Matches(@"^[a-zA-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒß\u0410-\u044F'\-.\s0-9\/(),$€#*%&„“"":;?!@\+]*$") .WithMessage("Invalid character supplied. Please use only alphanumeric and whitespace characters or one of the following: '-./(),$€#*%&„“\":;?!@+"); } @@ -111,7 +111,7 @@ public static IRuleBuilderOptions FreeText(this IRuleBuilder command.Title, "Valid title"); + _validator.ShouldNotHaveValidationErrorForExact(command => command.Title, title); } [Test] From 72e461c1e6ba18d2e0d8af77806da39214d496fc Mon Sep 17 00:00:00 2001 From: VILLAN3LL3 Date: Thu, 29 Feb 2024 18:26:44 +0100 Subject: [PATCH 02/17] Extended regex to support Ukrainian cyrillic, too --- .../_General/Extensions/RuleBuilderExtensions.cs | 8 ++++---- .../ValidationTests/ProjectCreateDtoValidatorTests.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs b/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs index 55645695d..96c606724 100644 --- a/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs +++ b/Orso.Arpa.Application/_General/Extensions/RuleBuilderExtensions.cs @@ -87,7 +87,7 @@ public static IRuleBuilderOptions PersonName(this IRuleBuilder PlaceName(this IRuleBuilder RestrictedFreeText(this IRuleBui { return ruleBuilder .MaximumLength(maximumLength) - .Matches(@"^[a-zA-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒß\u0410-\u044F'\-.\s0-9\/(),$€#*%&„“"":;?!@\+]*$") + .Matches(@"^[a-zA-ZáàâäãåçéèêëíìîïñóòôöõúùûüýÿæœÁÀÂÄÃÅÇÉÈÊËÍÌÎÏÑÓÒÔÖÕÚÙÛÜÝŸÆŒß\p{IsCyrillic}'\-.\s0-9\/(),$€#*%&„“"":;?!@\+]*$") .WithMessage("Invalid character supplied. Please use only alphanumeric and whitespace characters or one of the following: '-./(),$€#*%&„“\":;?!@+"); } @@ -111,7 +111,7 @@ public static IRuleBuilderOptions FreeText(this IRuleBuilder command.Title, title); } From 54118c0667d7eba75e75604657374cb48a353f38 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:01:57 +0100 Subject: [PATCH 03/17] Update dependency NUnit to v4.1.0 (#897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [NUnit](https://nunit.org/) ([source](https://togithub.com/nunit/nunit)) | `4.0.1` -> `4.1.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/NUnit/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/NUnit/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/NUnit/4.0.1/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/NUnit/4.0.1/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [nunit](https://nunit.org/) ([source](https://togithub.com/nunit/nunit)) | `4.0.1` -> `4.1.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/nunit/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/nunit/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/nunit/4.0.1/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/nunit/4.0.1/4.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
nunit/nunit (NUnit) ### [`v4.1.0`](https://togithub.com/nunit/nunit/releases/tag/4.1.0): NUnit 4.1.0 See [release notes](https://docs.nunit.org/articles/nunit/release-notes/framework.html#nunit-41---february-23-2024)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj | 2 +- .../Orso.Arpa.Application.Tests.csproj | 2 +- Tests/Orso.Arpa.Domain.Tests/Orso.Arpa.Domain.Tests.csproj | 2 +- .../Orso.Arpa.Infrastructure.Tests.csproj | 2 +- Tests/Orso.Arpa.Mail.Tests/Orso.Arpa.Mail.Tests.csproj | 2 +- Tests/Orso.Arpa.Misc.Tests/Orso.Arpa.Misc.Tests.csproj | 2 +- .../Orso.Arpa.Persistence.Tests.csproj | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj b/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj index bac5ee468..e13a4cb11 100644 --- a/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj +++ b/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/Tests/Orso.Arpa.Application.Tests/Orso.Arpa.Application.Tests.csproj b/Tests/Orso.Arpa.Application.Tests/Orso.Arpa.Application.Tests.csproj index ebbeaad6e..de6c4e5e8 100644 --- a/Tests/Orso.Arpa.Application.Tests/Orso.Arpa.Application.Tests.csproj +++ b/Tests/Orso.Arpa.Application.Tests/Orso.Arpa.Application.Tests.csproj @@ -8,7 +8,7 @@ - + diff --git a/Tests/Orso.Arpa.Domain.Tests/Orso.Arpa.Domain.Tests.csproj b/Tests/Orso.Arpa.Domain.Tests/Orso.Arpa.Domain.Tests.csproj index 7f55bae65..10742439f 100644 --- a/Tests/Orso.Arpa.Domain.Tests/Orso.Arpa.Domain.Tests.csproj +++ b/Tests/Orso.Arpa.Domain.Tests/Orso.Arpa.Domain.Tests.csproj @@ -40,7 +40,7 @@ - + diff --git a/Tests/Orso.Arpa.Infrastructure.Tests/Orso.Arpa.Infrastructure.Tests.csproj b/Tests/Orso.Arpa.Infrastructure.Tests/Orso.Arpa.Infrastructure.Tests.csproj index 19e471d84..11439f912 100644 --- a/Tests/Orso.Arpa.Infrastructure.Tests/Orso.Arpa.Infrastructure.Tests.csproj +++ b/Tests/Orso.Arpa.Infrastructure.Tests/Orso.Arpa.Infrastructure.Tests.csproj @@ -8,7 +8,7 @@ - + diff --git a/Tests/Orso.Arpa.Mail.Tests/Orso.Arpa.Mail.Tests.csproj b/Tests/Orso.Arpa.Mail.Tests/Orso.Arpa.Mail.Tests.csproj index be770e50a..c60a959cb 100644 --- a/Tests/Orso.Arpa.Mail.Tests/Orso.Arpa.Mail.Tests.csproj +++ b/Tests/Orso.Arpa.Mail.Tests/Orso.Arpa.Mail.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/Tests/Orso.Arpa.Misc.Tests/Orso.Arpa.Misc.Tests.csproj b/Tests/Orso.Arpa.Misc.Tests/Orso.Arpa.Misc.Tests.csproj index 593bec17f..2c8b4fd05 100644 --- a/Tests/Orso.Arpa.Misc.Tests/Orso.Arpa.Misc.Tests.csproj +++ b/Tests/Orso.Arpa.Misc.Tests/Orso.Arpa.Misc.Tests.csproj @@ -10,7 +10,7 @@ - + diff --git a/Tests/Orso.Arpa.Persistence.Tests/Orso.Arpa.Persistence.Tests.csproj b/Tests/Orso.Arpa.Persistence.Tests/Orso.Arpa.Persistence.Tests.csproj index 9ca524c6e..cc5aa899d 100644 --- a/Tests/Orso.Arpa.Persistence.Tests/Orso.Arpa.Persistence.Tests.csproj +++ b/Tests/Orso.Arpa.Persistence.Tests/Orso.Arpa.Persistence.Tests.csproj @@ -7,7 +7,7 @@ - + From 1f2ed4a766773f2698891c149a5db8e571afde72 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:10:58 +0000 Subject: [PATCH 04/17] Update dependency System.IdentityModel.Tokens.Jwt to v7.4.0 (#899) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [System.IdentityModel.Tokens.Jwt](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) | `7.3.1` -> `7.4.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/System.IdentityModel.Tokens.Jwt/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/System.IdentityModel.Tokens.Jwt/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/System.IdentityModel.Tokens.Jwt/7.3.1/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/System.IdentityModel.Tokens.Jwt/7.3.1/7.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet (System.IdentityModel.Tokens.Jwt) ### [`v7.4.0`](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/HEAD/CHANGELOG.md#740) \====== ##### New Features: - Introduced an injection point for external metadata management and adjusted the issuer Last Known Good (LKG) to maintain the state within the issuer validator. See PR [#​2480](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2480). - Made an internal virtual method public, enabling users to provide signature providers. See PR [#​2497](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2497). ##### Performance Improvements: - Added a new JsonWebToken constructor that accepts Memory for improved performance, along with enhancements to existing constructors. More information can be found in issue [#​2487](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/2487) and in PR [#​2458](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2458). ##### Fundamentals: - Resolved the issue of duplicated log messages in the source code and made IDX10506 log message more specific. For more details, refer to PR [#​2481](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2481). - Enhanced Json serialization by ensuring the complete object is always read. This improvement can be found in PR [#​2491](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2491). ##### Engineering Excellence: - Streamlined the build and release process by replacing the dependency on updateAssemblyInfo.ps1 with the Version property. Check out the details in PR [#​2494](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2494). - Excluded the packing of Benchmark and TestApp projects for a more efficient process. Details available in PR [#​2496](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2496).
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj index 7c0dbe03f..68bfd4433 100644 --- a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj +++ b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj @@ -16,7 +16,7 @@ - + From 2a32cd0f7e120a1721594ae184219c8a7955de95 Mon Sep 17 00:00:00 2001 From: VILLAN3LL3 Date: Sat, 2 Mar 2024 08:13:58 +0100 Subject: [PATCH 05/17] Added dev-cert hint to readme --- README.MD | 1 + 1 file changed, 1 insertion(+) diff --git a/README.MD b/README.MD index ffda0a3e1..20ae774e2 100644 --- a/README.MD +++ b/README.MD @@ -77,6 +77,7 @@ Rebuilding the API on source updates. - Set the smtp configuration via [dotnet user-secrets](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets) (see appsettings.Development.json EmailConfiguration) - Run the project with the command `dotnet run --project Orso.Arpa.Api` - Open the Swagger UI on `https://localhost:5001` +- Calling the local backend via the frontend may lead to certificate errors. In this case, run `dotnet dev-certs https` and `dotnet dev-certs https --trust` ## Login The initial database contains a single user with an admin role. You can login using the following credentials: From 1ae1d48d8f871c12315cc90dcd309cafdf85f178 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:54:48 +0000 Subject: [PATCH 06/17] Update dependency MailKit to v4.4.0 (#901) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [MailKit](http://www.mimekit.net/) ([source](https://togithub.com/jstedfast/MailKit)) | `4.3.0` -> `4.4.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/MailKit/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/MailKit/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/MailKit/4.3.0/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/MailKit/4.3.0/4.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
jstedfast/MailKit (MailKit) ### [`v4.4.0`](https://togithub.com/jstedfast/MailKit/blob/HEAD/ReleaseNotes.md#MailKit-440-2024-03-02) [Compare Source](https://togithub.com/jstedfast/MailKit/compare/4.3.0...4.4.0) - Added net8.0 targets - Split more sync/async logic to reduce allocations made by async state machines when calling the synchronous public APIs instead of the async APIs. (issue [#​1335](https://togithub.com/jstedfast/MailKit/issues/1335)) - Fixed logic for formatting IMAP FETCH HEADER.FIELDS.NOT corner case that was exposed by newly added unit tests. - Fixed SmtpClient to disconnect during Authenticate/Async on socket errors. - Fixed SmtpClient's re-EHLO logic to disconnect on errors. - Added workaround for Zoho IMAP servers returning MODSEQ -1. (issue [#​1686](https://togithub.com/jstedfast/MailKit/issues/1686)) - Added workaround for some IMAP servers that use () instead of NIL for an unset Content-Location header in the BODYSTRUCTURE response. (issue [#​1700](https://togithub.com/jstedfast/MailKit/issues/1700)) - Fixed an issue in the Socket.ConnectAsync logic that could result in unhandled exceptions on the async thread if the ConnectAsync was cancelled. (issue [#​1703](https://togithub.com/jstedfast/MailKit/issues/1703)) - Added work-around for Yandex IMAP GetBodyPart() response not including content. (issue [#​1708](https://togithub.com/jstedfast/MailKit/issues/1708))
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Mail/Orso.Arpa.Mail.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orso.Arpa.Mail/Orso.Arpa.Mail.csproj b/Orso.Arpa.Mail/Orso.Arpa.Mail.csproj index 8aea56faa..79e5b101b 100644 --- a/Orso.Arpa.Mail/Orso.Arpa.Mail.csproj +++ b/Orso.Arpa.Mail/Orso.Arpa.Mail.csproj @@ -5,7 +5,7 @@ - + From 49bdf4c0bff743ecb187190bf782c08a1309ceb4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 00:31:08 +0000 Subject: [PATCH 07/17] Update dependency Bogus to v35.4.1 (#900) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [Bogus](https://togithub.com/bchavez/Bogus) | `35.4.0` -> `35.4.1` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Bogus/35.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Bogus/35.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Bogus/35.4.0/35.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Bogus/35.4.0/35.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
bchavez/Bogus (Bogus) ### [`v35.4.1`](https://togithub.com/bchavez/Bogus/blob/HEAD/HISTORY.md#v3541) Release Date: 2024-03-02 - PR 529: XML Docs: Add inclusive / exclusive number ranges documentation for Randomizer. Thanks [@​Mitchman215](https://togithub.com/Mitchman215)! - PR 535: Fix gender-digit for Swedish Personnummer. Thanks [@​LarsBergqvist](https://togithub.com/LarsBergqvist)!
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj b/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj index 9a4416435..85cf6fb81 100644 --- a/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj +++ b/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj @@ -5,7 +5,7 @@ - + From eca9271216dca971f48896d89d9216c9c724fff9 Mon Sep 17 00:00:00 2001 From: mmaag-orso <160509691+mmaag-orso@users.noreply.github.com> Date: Thu, 7 Mar 2024 18:22:27 +0100 Subject: [PATCH 08/17] fixing testrunner in ci pipeline crashes with error 134 (#902) This changes introduced to the docker-compose.yml file ment to prefent the api crashing with error 134 on the github testrunner. Co-authored-by: Maximilian Jakob Maag --- docker-compose.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e27d2d917..e681f2c0f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: - POSTGRES_DB=orso-arpa ports: - 5432:5432 + api: build: context: . @@ -19,8 +20,13 @@ services: # Enable volume mapping to watch for changes and rebuild inside of the container. #volumes: #- ./:/home/app + container_name: api + hostname: api ports: - 5000:5000 + - "10000:10000" + - "10001:10001" + - "10002:10002" environment: - ASPNETCORE_ENVIRONMENT=Development - ConnectionStrings__PostgreSQLConnection=host=postgres;database=orso-arpa;User Id=postgres;Password=postgres; @@ -30,7 +36,7 @@ services: depends_on: - postgres - mail - - azurite + mail: image: mailhog/mailhog environment: @@ -41,15 +47,12 @@ services: ports: - 1025:1025 - 8025:8025 + azurite: image: mcr.microsoft.com/azure-storage/azurite container_name: "azurite" - hostname: azurite restart: always - ports: - - "10000:10000" - - "10001:10001" - - "10002:10002" + network_mode: service:api command: "azurite --blobHost 0.0.0.0 --blobPort 10000 --queueHost 0.0.0.0 --queuePort 10001" # Docker for Mac requires a mounted volume because filesystem mounts are not supported. # https://github.com/microsoft/mssql-docker/issues/12 From dabd193ecc1dd35c10b595ca321054c22de51e4c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:28:01 +0000 Subject: [PATCH 09/17] Update dependency SixLabors.ImageSharp.Web to v3.1.1 (#903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [SixLabors.ImageSharp.Web](https://togithub.com/SixLabors/ImageSharp.Web) | `3.1.0` -> `3.1.1` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/SixLabors.ImageSharp.Web/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/SixLabors.ImageSharp.Web/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/SixLabors.ImageSharp.Web/3.1.0/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/SixLabors.ImageSharp.Web/3.1.0/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
SixLabors/ImageSharp.Web (SixLabors.ImageSharp.Web) ### [`v3.1.1`](https://togithub.com/SixLabors/ImageSharp.Web/releases/tag/v3.1.1) #### What's Changed - Bump actions/setup-dotnet from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/346](https://togithub.com/SixLabors/ImageSharp.Web/pull/346) - Cache folder configuration for Azure and AWS Image Caches (Lombiq Technologies: OCORE-136) by [@​Piedone](https://togithub.com/Piedone) in [https://github.com/SixLabors/ImageSharp.Web/pull/353](https://togithub.com/SixLabors/ImageSharp.Web/pull/353) - Bump actions/cache from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/355](https://togithub.com/SixLabors/ImageSharp.Web/pull/355) - Bump NuGet/setup-nuget from 1 to 2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/356](https://togithub.com/SixLabors/ImageSharp.Web/pull/356) - Bump SixLabors.ImageSharp from 3.1.0 to 3.1.3 in /src/ImageSharp.Web by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/358](https://togithub.com/SixLabors/ImageSharp.Web/pull/358) - Bump codecov/codecov-action from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/357](https://togithub.com/SixLabors/ImageSharp.Web/pull/357) #### New Contributors - [@​Piedone](https://togithub.com/Piedone) made their first contribution in [https://github.com/SixLabors/ImageSharp.Web/pull/353](https://togithub.com/SixLabors/ImageSharp.Web/pull/353) **Full Changelog**: https://github.com/SixLabors/ImageSharp.Web/compare/v3.1.0...v3.1.1
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Api/Orso.Arpa.Api.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orso.Arpa.Api/Orso.Arpa.Api.csproj b/Orso.Arpa.Api/Orso.Arpa.Api.csproj index aa49c90de..16d513757 100644 --- a/Orso.Arpa.Api/Orso.Arpa.Api.csproj +++ b/Orso.Arpa.Api/Orso.Arpa.Api.csproj @@ -38,7 +38,7 @@ - + From 184ab9f8204ed1f1bd6b9d5cdcc516913e8de01f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:22:03 +0000 Subject: [PATCH 10/17] Update dependency SixLabors.ImageSharp.Web.Providers.Azure to v3.1.1 (#904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [SixLabors.ImageSharp.Web.Providers.Azure](https://togithub.com/SixLabors/ImageSharp.Web) | `3.1.0` -> `3.1.1` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/SixLabors.ImageSharp.Web.Providers.Azure/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/SixLabors.ImageSharp.Web.Providers.Azure/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/SixLabors.ImageSharp.Web.Providers.Azure/3.1.0/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/SixLabors.ImageSharp.Web.Providers.Azure/3.1.0/3.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
SixLabors/ImageSharp.Web (SixLabors.ImageSharp.Web.Providers.Azure) ### [`v3.1.1`](https://togithub.com/SixLabors/ImageSharp.Web/releases/tag/v3.1.1) #### What's Changed - Bump actions/setup-dotnet from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/346](https://togithub.com/SixLabors/ImageSharp.Web/pull/346) - Cache folder configuration for Azure and AWS Image Caches (Lombiq Technologies: OCORE-136) by [@​Piedone](https://togithub.com/Piedone) in [https://github.com/SixLabors/ImageSharp.Web/pull/353](https://togithub.com/SixLabors/ImageSharp.Web/pull/353) - Bump actions/cache from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/355](https://togithub.com/SixLabors/ImageSharp.Web/pull/355) - Bump NuGet/setup-nuget from 1 to 2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/356](https://togithub.com/SixLabors/ImageSharp.Web/pull/356) - Bump SixLabors.ImageSharp from 3.1.0 to 3.1.3 in /src/ImageSharp.Web by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/358](https://togithub.com/SixLabors/ImageSharp.Web/pull/358) - Bump codecov/codecov-action from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/SixLabors/ImageSharp.Web/pull/357](https://togithub.com/SixLabors/ImageSharp.Web/pull/357) #### New Contributors - [@​Piedone](https://togithub.com/Piedone) made their first contribution in [https://github.com/SixLabors/ImageSharp.Web/pull/353](https://togithub.com/SixLabors/ImageSharp.Web/pull/353) **Full Changelog**: https://github.com/SixLabors/ImageSharp.Web/compare/v3.1.0...v3.1.1
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Api/Orso.Arpa.Api.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orso.Arpa.Api/Orso.Arpa.Api.csproj b/Orso.Arpa.Api/Orso.Arpa.Api.csproj index 16d513757..d0eb5416c 100644 --- a/Orso.Arpa.Api/Orso.Arpa.Api.csproj +++ b/Orso.Arpa.Api/Orso.Arpa.Api.csproj @@ -39,7 +39,7 @@ - +
From e66da65d5c27d77f03ca41da6c44a8518a97ee8b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:22:44 +0000 Subject: [PATCH 11/17] Update dependency MockQueryable.NSubstitute to v7.0.1 (#905) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [MockQueryable.NSubstitute](https://togithub.com/romantitov/MockQueryable) | `7.0.0` -> `7.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/MockQueryable.NSubstitute/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/MockQueryable.NSubstitute/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/MockQueryable.NSubstitute/7.0.0/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/MockQueryable.NSubstitute/7.0.0/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
romantitov/MockQueryable (MockQueryable.NSubstitute) ### [`v7.0.1`](https://togithub.com/romantitov/MockQueryable/releases/tag/v7.0.1): v7.0.1 [#​74](https://togithub.com/romantitov/MockQueryable/issues/74) Fix ToListAsync() for mocked DbSet by using lazy-creation of AsyncEnumerator - Thanks [@​fischero19](https://togithub.com/fischero19) [#​75](https://togithub.com/romantitov/MockQueryable/issues/75) Added method for build DbSet from IEnumerable. - Thanks [@​sq735](https://togithub.com/sq735)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj b/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj index 85cf6fb81..7affde1d3 100644 --- a/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj +++ b/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj @@ -7,7 +7,7 @@ - + From 73b0ce227d09821f77b7ebe469e127b389e4cbf9 Mon Sep 17 00:00:00 2001 From: VILLAN3LL3 Date: Thu, 14 Mar 2024 19:41:57 +0100 Subject: [PATCH 12/17] fixed sonar issue "Use a comparison to 'default(T)' instead or add a constraint to 'T' so that it can't be a value type" --- Orso.Arpa.Misc/Extensions/EnumberableExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Orso.Arpa.Misc/Extensions/EnumberableExtensions.cs b/Orso.Arpa.Misc/Extensions/EnumberableExtensions.cs index 277046f95..e8c7b58f1 100644 --- a/Orso.Arpa.Misc/Extensions/EnumberableExtensions.cs +++ b/Orso.Arpa.Misc/Extensions/EnumberableExtensions.cs @@ -47,11 +47,11 @@ public static bool AreAllSame(this IEnumerable enumerable) while (enumerator.MoveNext()) { - if (toCompare == null && enumerator.Current != null) + if (Equals(toCompare, default) && !Equals(enumerator.Current, default)) { return false; } - if (toCompare != null && !toCompare.Equals(enumerator.Current)) + if (!Equals(toCompare, default) && !toCompare.Equals(enumerator.Current)) { return false; } From 041ded4dc4707e95720de477cf180abcbfcc907e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:55:50 +0000 Subject: [PATCH 13/17] Update dependency Bogus to v35.5.0 (#906) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [Bogus](https://togithub.com/bchavez/Bogus) | `35.4.1` -> `35.5.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Bogus/35.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Bogus/35.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Bogus/35.4.1/35.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Bogus/35.4.1/35.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
bchavez/Bogus (Bogus) ### [`v35.5.0`](https://togithub.com/bchavez/Bogus/blob/HEAD/HISTORY.md#v3550) Release Date: 2024-03-09 - PR 500: Allows locally set time references for Date calculations instead of global statics. See Faker\[T].UseDateTimeReference(), Faker.DateTimeReference, and DataSets.Date.LocalSystemClock. Thanks [@​garcipat](https://togithub.com/garcipat)!
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj b/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj index 7affde1d3..9271eb476 100644 --- a/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj +++ b/Tests/Orso.Arpa.Tests.Shared/Orso.Arpa.Tests.Shared.csproj @@ -5,7 +5,7 @@ - + From 3a3a90b1c30e493eade490bb1f1bc70a467021f1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:24:28 +0000 Subject: [PATCH 14/17] Update dotnet monorepo (#908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [Microsoft.AspNetCore.Authentication.JwtBearer](https://asp.net/) ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Authentication.JwtBearer/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.AspNetCore.Authorization](https://asp.net/) ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Authorization/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Authorization/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Authorization/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Authorization/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.AspNetCore.Identity.EntityFrameworkCore](https://asp.net/) ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Identity.EntityFrameworkCore/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Identity.EntityFrameworkCore/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Identity.EntityFrameworkCore/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Identity.EntityFrameworkCore/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.AspNetCore.Mvc.Testing](https://asp.net/) ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.Mvc.Testing/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.Mvc.Testing/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.Mvc.Testing/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.Mvc.Testing/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.AspNetCore.TestHost](https://asp.net/) ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.TestHost/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.AspNetCore.TestHost/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.AspNetCore.TestHost/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.TestHost/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.EntityFrameworkCore](https://docs.microsoft.com/ef/core/) ([source](https://togithub.com/dotnet/efcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.EntityFrameworkCore.Design](https://docs.microsoft.com/ef/core/) ([source](https://togithub.com/dotnet/efcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore.Design/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore.Design/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore.Design/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore.Design/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.EntityFrameworkCore.Proxies](https://docs.microsoft.com/ef/core/) ([source](https://togithub.com/dotnet/efcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.EntityFrameworkCore.Proxies/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.EntityFrameworkCore.Proxies/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.EntityFrameworkCore.Proxies/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.EntityFrameworkCore.Proxies/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore](https://asp.net/) ([source](https://togithub.com/dotnet/aspnetcore)) | `8.0.2` -> `8.0.3` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore/8.0.2/8.0.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.Extensions.Logging.Abstractions](https://dot.net/) ([source](https://togithub.com/dotnet/runtime)) | `8.0.0` -> `8.0.1` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.Extensions.Logging.Abstractions/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.Extensions.Logging.Abstractions/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.Extensions.Logging.Abstractions/8.0.0/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.Extensions.Logging.Abstractions/8.0.0/8.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [Microsoft.VisualStudio.Web.CodeGeneration.Design](https://togithub.com/dotnet/Scaffolding) | `8.0.1` -> `8.0.2` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.VisualStudio.Web.CodeGeneration.Design/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Microsoft.VisualStudio.Web.CodeGeneration.Design/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Microsoft.VisualStudio.Web.CodeGeneration.Design/8.0.1/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.VisualStudio.Web.CodeGeneration.Design/8.0.1/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
dotnet/aspnetcore (Microsoft.AspNetCore.Authentication.JwtBearer) ### [`v8.0.3`](https://togithub.com/dotnet/aspnetcore/compare/v8.0.2...v8.0.3)
dotnet/efcore (Microsoft.EntityFrameworkCore) ### [`v8.0.3`](https://togithub.com/dotnet/efcore/releases/tag/v8.0.3): .NET 8.0.3 [Release](https://togithub.com/dotnet/core/releases/tag/v8.0.3)
dotnet/runtime (Microsoft.Extensions.Logging.Abstractions) ### [`v8.0.1`](https://togithub.com/dotnet/runtime/releases/tag/v8.0.1): .NET 8.0.1 [Release](https://togithub.com/dotnet/core/releases/tag/v8.0.1)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Api/Orso.Arpa.Api.csproj | 8 ++++---- Orso.Arpa.Domain/Orso.Arpa.Domain.csproj | 2 +- Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj | 2 +- Orso.Arpa.Misc/Orso.Arpa.Misc.csproj | 2 +- Orso.Arpa.Persistence/Orso.Arpa.Persistence.csproj | 4 ++-- Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Orso.Arpa.Api/Orso.Arpa.Api.csproj b/Orso.Arpa.Api/Orso.Arpa.Api.csproj index d0eb5416c..e82019353 100644 --- a/Orso.Arpa.Api/Orso.Arpa.Api.csproj +++ b/Orso.Arpa.Api/Orso.Arpa.Api.csproj @@ -28,13 +28,13 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + diff --git a/Orso.Arpa.Domain/Orso.Arpa.Domain.csproj b/Orso.Arpa.Domain/Orso.Arpa.Domain.csproj index 9dbd572f0..83d417e98 100644 --- a/Orso.Arpa.Domain/Orso.Arpa.Domain.csproj +++ b/Orso.Arpa.Domain/Orso.Arpa.Domain.csproj @@ -16,7 +16,7 @@ - +
diff --git a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj index 68bfd4433..4901c2850 100644 --- a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj +++ b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj @@ -15,7 +15,7 @@ - + diff --git a/Orso.Arpa.Misc/Orso.Arpa.Misc.csproj b/Orso.Arpa.Misc/Orso.Arpa.Misc.csproj index 0a2cba994..153982783 100644 --- a/Orso.Arpa.Misc/Orso.Arpa.Misc.csproj +++ b/Orso.Arpa.Misc/Orso.Arpa.Misc.csproj @@ -5,7 +5,7 @@ - + \ No newline at end of file diff --git a/Orso.Arpa.Persistence/Orso.Arpa.Persistence.csproj b/Orso.Arpa.Persistence/Orso.Arpa.Persistence.csproj index d2559ce69..ecc8eddaa 100644 --- a/Orso.Arpa.Persistence/Orso.Arpa.Persistence.csproj +++ b/Orso.Arpa.Persistence/Orso.Arpa.Persistence.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj b/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj index e13a4cb11..9f895bf07 100644 --- a/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj +++ b/Tests/Orso.Arpa.Api.Tests/Orso.Arpa.Api.Tests.csproj @@ -7,8 +7,8 @@ - - + + From 732cda73a8ffd3ef78550e57f19e4cdf77b50d21 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:23:04 +0000 Subject: [PATCH 15/17] Update dependency System.IdentityModel.Tokens.Jwt to v7.4.1 (#909) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [System.IdentityModel.Tokens.Jwt](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) | `7.4.0` -> `7.4.1` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/System.IdentityModel.Tokens.Jwt/7.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/System.IdentityModel.Tokens.Jwt/7.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/System.IdentityModel.Tokens.Jwt/7.4.0/7.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/System.IdentityModel.Tokens.Jwt/7.4.0/7.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet (System.IdentityModel.Tokens.Jwt) ### [`v7.4.1`](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/HEAD/CHANGELOG.md#741) \====== ##### Bug Fixes: - `SamlSecurityTokenHandler` and `Saml2SecurityTokenHandler` now can fetch configuration when validating SAML issuer and signature. See PR [#​2412](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2412) - `JsonWebToken.ReadToken` now correctly checks Dot3 index in JWE. See PR [#​2501](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2501) ##### Engineering Excellence: - Remove reference to `Microsoft.IdentityModel.Logging` in `Microsoft.IdentityModel.Protocols`, which already depends on it via `Microsoft.IdentityModel.Tokens`. See PR [#​2508](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2508) - Adjust uppercase json serialization tests to fix an unreliable test method, add consistency to naming. See PR [#​2512](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2512) - Disable the 'restore' and 'build' steps of 'build and pack' in `build.sh`, improving speed. See PR [#​2521](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2521)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj index 4901c2850..994dde7cb 100644 --- a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj +++ b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj @@ -16,7 +16,7 @@ - + From c6921038b5b072af609be8a8753d0c881cdd3415 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 30 Mar 2024 01:27:37 +0000 Subject: [PATCH 16/17] Update dependency System.IdentityModel.Tokens.Jwt to v7.5.0 (#910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [System.IdentityModel.Tokens.Jwt](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet) | `7.4.1` -> `7.5.0` | [![age](https://developer.mend.io/api/mc/badges/age/nuget/System.IdentityModel.Tokens.Jwt/7.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/System.IdentityModel.Tokens.Jwt/7.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/System.IdentityModel.Tokens.Jwt/7.4.1/7.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/System.IdentityModel.Tokens.Jwt/7.4.1/7.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet (System.IdentityModel.Tokens.Jwt) ### [`v7.5.0`](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/HEAD/CHANGELOG.md#750) \===== ##### New features - Supports the 1.1 version of the Microsoft Entra ID Endpoint [#​2503](https://togithub.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2503)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/orso-co/Orso.Arpa.Api). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj index 994dde7cb..510b5c613 100644 --- a/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj +++ b/Orso.Arpa.Infrastructure/Orso.Arpa.Infrastructure.csproj @@ -16,7 +16,7 @@ - + From 44c3b243fe2e9f85c110103b5432ff24dbf9e8a1 Mon Sep 17 00:00:00 2001 From: VILLAN3LL3 <39371377+VILLAN3LL3@users.noreply.github.com> Date: Sat, 6 Apr 2024 18:15:42 +0200 Subject: [PATCH 17/17] Bugfix/arpa-1000 error empty recipient list (#911) --- .../SendAppointmentChangedNotification.cs | 13 ++++++++++--- .../AppointmentDomain/Model/Appointment.cs | 2 +- .../UserDomain/Commands/ConfirmEmail.cs | 2 +- .../AppointmentChangedByStaffTemplate.cs | 2 ++ .../Heml/Appointment_Changed_By_Staff.heml | 16 ++++++++++------ .../Html/Appointment_Changed_By_Staff.html | 16 ++++++++++------ 6 files changed, 34 insertions(+), 17 deletions(-) diff --git a/Orso.Arpa.Domain/AppointmentDomain/Commands/SendAppointmentChangedNotification.cs b/Orso.Arpa.Domain/AppointmentDomain/Commands/SendAppointmentChangedNotification.cs index 336f908bf..46b07a7d5 100644 --- a/Orso.Arpa.Domain/AppointmentDomain/Commands/SendAppointmentChangedNotification.cs +++ b/Orso.Arpa.Domain/AppointmentDomain/Commands/SendAppointmentChangedNotification.cs @@ -4,6 +4,7 @@ using System.Threading; using System.Threading.Tasks; using FluentValidation; +using FluentValidation.Results; using MediatR; using Microsoft.EntityFrameworkCore; using Orso.Arpa.Domain.AppointmentDomain.Model; @@ -45,7 +46,7 @@ public Validator(IArpaContext arpaContext) return; } }); - + RuleFor(x => x.ForceSending) .CustomAsync(async (appointmentId, context, cancellation) => { @@ -80,6 +81,10 @@ public async Task Handle(Command request, CancellationToken cancellationTo .Select(a => a.Id) .ToListAsync(cancellationToken); + if(personIds.Count == 0) { + throw new ValidationException([new ValidationFailure(nameof(request.AppointmentId), "No persons are eligible for this appointment. Cannot send email to empty recipient list.")]); + } + List persons = await _arpaContext.Persons .AsQueryable() .Where(p => personIds.Contains(p.Id)) @@ -98,7 +103,9 @@ public async Task Handle(Command request, CancellationToken cancellationTo DateAndTime = $"{appointment.StartTime.ToGermanDateTimeString()} - {appointment.EndTime.ToGermanTimeString()}", PublicDetails = appointment.PublicDetails ?? "- ohne -", Venue = appointment.Venue?.ToString() ?? "- ohne -", - ArpaUrl = _jwtConfiguration.Audience + ArpaUrl = _jwtConfiguration.Audience, + Status = appointment.Status.ToString(), + Sections = string.Join(", ", appointment.SectionAppointments.Select(sa => sa.Section.ToString())) }; await _emailSender.SendTemplatedEmailAsync(template, persons @@ -109,4 +116,4 @@ await _emailSender.SendTemplatedEmailAsync(template, persons } } } -} \ No newline at end of file +} diff --git a/Orso.Arpa.Domain/AppointmentDomain/Model/Appointment.cs b/Orso.Arpa.Domain/AppointmentDomain/Model/Appointment.cs index a7a8b23f0..f7818fcd1 100644 --- a/Orso.Arpa.Domain/AppointmentDomain/Model/Appointment.cs +++ b/Orso.Arpa.Domain/AppointmentDomain/Model/Appointment.cs @@ -112,7 +112,7 @@ internal void ClearVenue() public override string ToString() { - return CategoryId.HasValue ? $"{Category.ToString().ToUpperInvariant()}: {Name}" : Name; + return CategoryId.HasValue ? $"{Name} ({Category.ToString().ToUpperInvariant()})" : Name; } } } diff --git a/Orso.Arpa.Domain/UserDomain/Commands/ConfirmEmail.cs b/Orso.Arpa.Domain/UserDomain/Commands/ConfirmEmail.cs index 373f6372b..30d7d84da 100644 --- a/Orso.Arpa.Domain/UserDomain/Commands/ConfirmEmail.cs +++ b/Orso.Arpa.Domain/UserDomain/Commands/ConfirmEmail.cs @@ -47,7 +47,7 @@ public async Task Handle(Command request, CancellationToken cancellationTo if (await _userManager.IsEmailConfirmedAsync(user)) { - throw new ValidationException(new[] { new ValidationFailure(nameof(request.Email), "The email address is already confirmed") }); + throw new ValidationException([new ValidationFailure(nameof(request.Email), "The email address is already confirmed")]); } IdentityResult confirmEmailResult = await _userManager.ConfirmEmailAsync(user, request.Token); diff --git a/Orso.Arpa.Mail/Templates/AppointmentChangedByStaffTemplate.cs b/Orso.Arpa.Mail/Templates/AppointmentChangedByStaffTemplate.cs index 84d14c5cc..99264fea1 100644 --- a/Orso.Arpa.Mail/Templates/AppointmentChangedByStaffTemplate.cs +++ b/Orso.Arpa.Mail/Templates/AppointmentChangedByStaffTemplate.cs @@ -8,5 +8,7 @@ public class AppointmentChangedByStaffTemplate : BaseTemplate public string PublicDetails { get; set; } public string Venue { get; set; } public string ArpaUrl { get; set; } + public string Sections { get; set; } + public string Status { get; set; } } } diff --git a/Orso.Arpa.Mail/Templates/Heml/Appointment_Changed_By_Staff.heml b/Orso.Arpa.Mail/Templates/Heml/Appointment_Changed_By_Staff.heml index 9214dc219..770b1f19f 100644 --- a/Orso.Arpa.Mail/Templates/Heml/Appointment_Changed_By_Staff.heml +++ b/Orso.Arpa.Mail/Templates/Heml/Appointment_Changed_By_Staff.heml @@ -47,18 +47,21 @@

Hallo,

-

wir möchten dich über eine Terminaktualisierung in ARPA informieren.

-

Die neuen Daten lauten nun wie folgt:

+

In ARPA wurde dieser Termin aktualisiert:

-

Name:

-

Zeitpunkt:

+

Zielgruppe:

+

Termin:

+

Status:

+

Bezeichnung:

Ort:

Details:

-

{{AppointmentName}}

+

{{Sections}}

{{DateAndTime}}

+

{{Status}}

+

{{AppointmentName}}

{{Venue}}

{{PublicDetails}}

@@ -66,7 +69,8 @@
-

Für weitere Informationen und um ggf. deinen Teilnahmestatus anzupassen, +

Bitte beachte, dass eine Aktualisierung manchmal auch nur den Bereich “Details” betrifft.

+

Für weitere Informationen und um ggf. deinen Teilnahmestatus anzupassen, logge dich in ARPA ein.

diff --git a/Orso.Arpa.Mail/Templates/Html/Appointment_Changed_By_Staff.html b/Orso.Arpa.Mail/Templates/Html/Appointment_Changed_By_Staff.html index 59a4f98fe..fc2e7188c 100644 --- a/Orso.Arpa.Mail/Templates/Html/Appointment_Changed_By_Staff.html +++ b/Orso.Arpa.Mail/Templates/Html/Appointment_Changed_By_Staff.html @@ -120,20 +120,23 @@

Hallo,

-

wir möchten dich über eine Terminaktualisierung in ARPA informieren.

-

Die neuen Daten lauten nun wie folgt:

+

In ARPA wurde dieser Termin aktualisiert:

@@ -153,6 +156,7 @@ @@ -189,6 +193,6 @@
+
                                                           
\ No newline at end of file