Skip to content

Conversation

@giovanninocco
Copy link
Member

Deploment v6.4.0

giovanninocco and others added 13 commits October 23, 2024 18:16
Updated multiple packages to their latest versions:
- MassTransit.RabbitMQ to 8.3.0
- Swashbuckle.AspNetCore to 6.9.0
- System.Text.Json to 8.0.5
- SmartFormat.NET to 3.5.1
- Azure.Identity to 1.13.0
- System.Linq.Dynamic.Core to 1.4.6

Removed MongoDB.Driver.Core.Extensions.OpenTelemetry package.

Added MongoDB.Driver.Core.Extensions.DiagnosticSources source and GuidSerializer with GuidRepresentation.CSharpLegacy.

Refactored IMongoRepository.cs, EndpointsBuilder.cs, and Extensions.cs for nullable context, method signatures, and formatting.

Fixed a typo in JsonParser.cs exception message.

Adjusted IRequestHandler and RequestDispatcher interfaces and classes for readability and formatting.

Added WebApiOptions configuration in Extensions.cs.

Improved formatting and readability across multiple files.
Refactored AzureInitializer for readability and removed unused code.
Updated MongoDB.Driver to version 2.30.0 in Genocs.Persistence.MongoDb.csproj.
Reformatted commented-out code in MongoDatabaseProvider.
- Entity class now inherits from Entity<Guid> instead of IEntity
- Updated Id property in Entity<TPrimaryKey> to use nullable reference type
- Refactored Equals method in Entity<TPrimaryKey> for null checks and type comparison
- Id property in Equals method uses null-forgiving operator
- IAggregateRoot now inherits from IAggregateRoot<Guid> instead of IEntity
Replaced IIdentifiable with IEntity across the codebase. Updated IEntity to include IsTransient method. Modified type parameters and interface inheritance for consistency. Updated MongoDB repository implementations to align with IEntity. Added comments and documentation for clarity. Changed using directives to reflect new namespace for IEntity.
Renamed properties to standardize naming conventions:
- `CreationTime` to `CreatedAt`
- `LastModificationTime` to `LastUpdate`
- `LastModifierUserId` to `UpdatedBy`
- `DeleterUserId` to `DeletedBy`
- `DeletionTime` to `DeletedAt`
- `LastModifierUser` to `UpdatedByUser`
- `DeleterUser` to `DeletedByUser`

Changed `CreatorUserId` to non-nullable.

Updated `EntityAuditingHelper` and `EntityExtensions` for new names.

Refactored `RepositoryBase` to use null-coalescing operator.

Reformatted `AutoRepositoryTypesAttribute` for readability.

Updated comments and documentation for clarity.
- Updated `BaseAggregate` to initialize `Id` and `CreatedAt`.
- Refactored `Order` and `User` classes to inherit from `BaseAggregate`.
- Made `CreatedAt` property read-only in `IHasCreationTime`.
- Removed `class` constraint in `RepositoryBase`.
- Added comments and reformatted methods in `SystemTextJsonHttpClientSerializer`, `IMessageToLogTemplateMapper`, and `SeqOptions`.
- Updated `HandlerLogTemplate` to use nullable `string?`.
- Replaced `IMongoRepository` with `IMongoDbBaseRepository` in various classes.
- Removed `IMongoDbEntity` interface and several `MongoDbRepository` classes.
- Introduced `IMongoDbBaseRepository`, `MongoDbBaseRepository`, `IMongoDbEntity`, and `MongoDbRepository` classes.
- Updated multiple files to reflect repository structure changes.
- Updated `using` directives in `MongoDbController.cs`, `SubmitOrderConsumer.cs`, and `Program.cs` to use `Genocs.Persistence.MongoDb.Domain.Repositories`.
- Modified `MongoDbRepository<TEntity>` to inherit from `MongoDbBaseRepositoryOfType<TEntity, ObjectId>`.
- Removed `MongoDbRepositoryBaseOfEntityAndKey.cs` and moved its content to `MongoDbBaseRepositoryOfType.cs`.
- Moved `IMongoDbRepository<TEntity>` to `Genocs.Persistence.MongoDb.Domain.Repositories` and updated its content.
- Improved comment format in `IMongoDbSeeder.cs`.
- Created `MongoDbBaseRepositoryOfType.cs` with the implementation of the repository base class for MongoDB.
Refactored the `Delete` method in `MongoDbBaseRepository.cs` to use `ArgumentNullException.ThrowIfNull(predicate)` for null checks, improving code readability and conciseness. Updated the `Get` method in `MongoDbBaseRepositoryOfType.cs` to use a conditional expression for throwing `EntityNotFoundException` when the entity is null, simplifying the logic.
Updated the following package versions:
- `MassTransit.RabbitMQ` from `8.3.0` to `8.3.1` in `Genocs.Core.Demo.WebApi.csproj` and `Genocs.Core.Demo.Worker.csproj`
- `Scrutor` from `5.0.1` to `5.0.2` in `Genocs.Core.csproj`
- `System.Linq.Dynamic.Core` from `1.4.6` to `1.4.8` in `Genocs.QueryBuilder.UnitTests.csproj`
- `Azure.Identity` from `1.13.0` to `1.13.1` in `Genocs.Secrets.AzureKeyVault.csproj`
Updated project version to 6.3.0 across multiple files and projects.
Enhanced `Directory.Build.props` with new properties and item groups.
Upgraded .NET SDK version in `global.json` to 8.0.10.
Improved `JwtOptions` class with default values and documentation.
Refactored `BaseAggregate`, `Order`, and `User` classes.
Changed primary key types to `Guid` and updated property names.
Removed `IsTransient` method from `IIdentifiable` interface.
Updated project references to version 6.3.0.
Enhanced `ServiceCollectionExtensions` for RabbitMQ configuration.
Added JWT configuration in `Program.cs` and `appsettings.json`.
Improved documentation and formatting in various files.
Removed support for `netstandard2.1` in `Genocs.Core.csproj`.
Updated multiple project files to reference `Genocs.Core` version 6.3.0.
Refactored repository interfaces and classes for consistency.
Removed unnecessary files from packaging process.
Removed references to `Genocs.Secrets.AzureKeyVault` and `Genocs.WebApi` from `Genocs.Core.Demo.WebApi.csproj`. Added `using System.Linq.Expressions` to `IMongoDbBaseRepository.cs` to support advanced querying.
@giovanninocco giovanninocco merged commit cea45d4 into main Nov 10, 2024
1 check passed
@giovanninocco giovanninocco deleted the ver_600 branch November 29, 2024 14:35
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