You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently some components do some magic when they get created.
E.g. the db runs migrations, ddb creates tables, etc.
This should be changed in a way that: Boot: creates the instantiation of a struct (e.g. db repo, ddb repo) and registers the component in the appctx. If e.g. the ddb repo needs to create a resource, then it needs to define a Middleware that is registered also in the appctx and which will then be executed later by the kernel.
Post-Boot-Pre-Middlwares: Here we want to start the test components (not part of the kernel)
Middleware: executes migrations and resource alterations
Run: Regular module run implementation
We also want the fixture writers as a middleware and don't want to rely on the config to see whether a test component is required or now. This is to improve convention over configuration and overall usability.
The appctx should have all components registered and should be used to determine which test components need to be booted.
The text was updated successfully, but these errors were encountered:
Currently some components do some magic when they get created.
E.g. the db runs migrations, ddb creates tables, etc.
This should be changed in a way that:
Boot: creates the instantiation of a struct (e.g. db repo, ddb repo) and registers the component in the appctx. If e.g. the ddb repo needs to create a resource, then it needs to define a Middleware that is registered also in the appctx and which will then be executed later by the kernel.
Post-Boot-Pre-Middlwares: Here we want to start the test components (not part of the kernel)
Middleware: executes migrations and resource alterations
Run: Regular module run implementation
We also want the fixture writers as a middleware and don't want to rely on the config to see whether a test component is required or now. This is to improve
convention over configuration
and overall usability.The appctx should have all components registered and should be used to determine which test components need to be booted.
The text was updated successfully, but these errors were encountered: