-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compiler warnings related to nullability in Synchronization module (
#497) * refactor: make property required as it makes no sense to be null * refactor: make properties required as the values are always passed through via json object * refactor: update input parameter to match the base method and supress nullability warning with '!' * fix: remove required keywords as it seems to break the tests * refactor: make properties nullable * refactor: make property nullable * Helm Chart: Update Consumer API, Admin UI and Admin CLI (#501) * feat: update adminui * feat: update consumerapi * Helm Chart: Update Consumer API, Admin UI and Admin CLI (#501) * feat: update adminui * feat: update consumerapi * refactor: modify CompareTo so that it complies with standard * refactor: make properties required instead of nullable * ci: trigger pipelines * chore: add nullable enable property group * chore: add nullable enable property group for tests * refactor: make Id required * refactor: make Id required * refactor: suppress possible null reference warning * refactor: make RootFolder required * refactor: make nullable * refactor: make SyncRunId nullable * refactor: remove redundant null expression * refactor: remove ? since setupOptions is never null * chore: fix comment typo * chore: fix typo in test name * refactor: make SyncRun nullable * refactor: mappingHints is never null * refactor: remove null check since id is not null * refactor: make ConverterMappingHints nullable * refactor: make Modifications nad Id required * refactor: make SyncRun required * refactor: make properties required * refactor: declare as nullable * refactor: expression is always false * refactor: make BlobStorageOptions nullable * refactor: null suppression * refactor: remove null check * refactor: make properties required * refactor: fix multiple nullability issues * refactor: remove _payload null check * refactor: assign null! to DbContext properties * refactor: add throw new ArgumentNullException * refactor: make properties required * refactor: make ErrorCode nullable * refactor: make nullable * refactor: make nullable type * refactor: remove null conditionall operator * chore: suppress nullability warning as null is never returned * refactor: update interface return type * refactor: suppress null warnings as the object is instantiated as empty but the properties are then immediately set * refactor: make properties required to match SyncRun class * refactor: make fields nullable * refactor: suppress nullability warnings as fields are never null (they are marked as nullable since they are filled outside of ctor) refactor: remove null check in case of events as it is never null * refactor: remove null check in case of events as it is never null * refactor: make fields nullable * refactor: suppress nullability warnings (field is effectively never null though it is null after leaving ctor) * refactor: suppress warning with a comment as no other solution is offered * refactor: make property required * refactor: make properties required * refactor: make properties nullable * refactor: make fields nullable and suppress nullability warnings * refactor: remove conditional access and unreachable code * chore: initialize properties with null! instead of using null suppression on usage * chore: initialize properties with null! in ef core constructors * fix: make EncryptedPayload and PayloadCategory optional * test: fix compiler error * chore: add words to resharper dicitionary * chore: cleanup code * chore: make properties of ExternalEventResult required * chore: fix nullability warnings --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Timo Notheisen <65653426+tnotheis@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Hunor Tot-Bagi <hunortotbagi@gmail.com> Co-authored-by: Timo Notheisen <timo.notheisen@js-soft.com>
- Loading branch information
1 parent
e616965
commit 60b66b3
Showing
59 changed files
with
306 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
BuildingBlocks/src/BuildingBlocks.Infrastructure/EventBus/BasicBusOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
namespace Backbone.BuildingBlocks.Infrastructure.EventBus; | ||
public class BasicBusOptions | ||
{ | ||
#pragma warning disable CS8618 | ||
public string SubscriptionClientName { get; set; } | ||
public HandlerRetryBehavior HandlerRetryBehavior { get; set; } | ||
#pragma warning restore CS8618 | ||
public string SubscriptionClientName { get; set; } = null!; | ||
public HandlerRetryBehavior HandlerRetryBehavior { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
public class BlobOptions | ||
{ | ||
public string RootFolder { get; set; } | ||
public string? RootFolder { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.