Repository navigation
v0.12.0
#46
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Release Notes
Lots and lots of updates to this release with things I've been wanting to add and more lessons learned as I continue to dogfood things.
Some of the major items in here:
StartupandProgramyet, but may in v0.13.new:examplecommand. I wanted to make it really easy to see examples for different types of scenarios, so I added a new command to easily get something together. Just runcraftsman new:exampleand follow the prompts!BaseEntitiythat has a standardizedIdGuid for your primary key and audit fields as well. These will be updated for you OOTB in db context now.There's so much more as well. I think the project scaffolding is really moving in a good direction and is getting closer to a more stable position. Lots to add still, but it's at least starting to feel more mature.
As always, check out the docs for updates.
Also, I started a discord channel if you want to come join us! Feel free to reach out if you have any questions or issues.
🚀 Additions and Updates
Added
BaseEntitythat all entities will inherit from.GuidofIdmarked as the primary keyCreatedOn,CreatedBy,LastModifiedOn, andLastModifiedBypropertiesAdded a
CurrentUserServiceto add a user to theCreatedByandLastModifiedByproperties if a user is found. Built into db contextAdded built in features to the
add:featurecommandNew
AddListByFkoption for theadd:featurecommand andFeatureproperty of an entity.New
craftsman exampleorcraftsman new:examplecommand to create an example project with a prompted workflow to select.Basic,WithAuth,AuthServer,WithBusAdded
.DS_Storeand.envto gitignoreAdded Consumer test
Added
providerto test fixture when adding a busAdded a mock
IPublishEndpointservice toTestFixturewhen using MassTransitNew policies added to swagger on
add:entityscaffoldingNew
add:authservercommand as well as anAuthServeroption when creating a domainAdded helper
GetServicemethod toTestFixtureAdded Creation and Update Validators back to scaffolding. Easy enough to delete if you aren't using them
Added a
NamingConventionproperty to the db templateUpdated to .NET 6
Updated nuget packages
HttpStatusCode.XXX)TestBaseupdate for postgresto include1.Seconds()await act.Should().ThrowAsync<where appropriateMoved Policies to Feature
There is no more primary key property. A Guid with a name
Idwill be inherited by all entities.Docker utilities for integration test refactored to use Fluent Docker wherever possible for better readability. Some enhancements were made as well (e.g. better container/volume naming, proper volume mounting).
Removed
ErrorHandlerMiddlewareand replaced it withErrorHandlerFilterAttributeCleaned up test names
Modified CORS util to take in env
Added
Secretback to Environment optionsAdded local config utilities for testing environments
Remove
UseInMemoryDbapp setting in favor of environment specific checksRemove
UseInMemoryBusapp setting in favor of environment specific checksUsing statement shortening for reset function in test fixture
Consolidated multiple environments startups to one startup file
Update logging registration in
Program.csto no longer rely onappsettingsUpdated FK support to better API
Moved env config from appsettings to environment variables
Production env no longer added by default
Features now include missing cancellation tokens as well as
AsNoTrackingpropertiesRemoved automatic fluent validation to allow more control in domain operations. For example:
WebApiServiceExtensionby updating.AddFluentValidation(cfg => { cfg.AutomaticValidationEnabled = false; });🐛 Pest Control
409produced response annotation on POSTThis discussion was created from the release v0.12.0.
All reactions