Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue / Refine Layers #182

Merged
merged 30 commits into from
Oct 16, 2024
Merged

Issue / Refine Layers #182

merged 30 commits into from
Oct 16, 2024

Conversation

dncsvr
Copy link
Member

@dncsvr dncsvr commented Oct 7, 2024

Refine existing layers to provide a better developer experience.

Tasks

  • add RuntimeLayer
    • Merge DependencyInjection
    • Merge Configuration
    • Merge Monitoring
  • refactor config building to simplify DataAccess layer
    • expose FluenConfiguration as configuration target
    • allow other features to configure MaxFetchDepth and ShowSql
      • e.g., logging should enable showsql, orm should set maxfetchdepth
    • move registering services to OnDispose
    • move auto creating schema out of registering ISession factory
      • application started is not working while testing, PostBuild can be an
        alternative
  • update docs and samples

Additional Tasks

  • provide a better way to introduce logging

@dncsvr dncsvr self-assigned this Oct 7, 2024
- merge `DependencyInjection` layer and extensions into ``Runtime`
- add helpers to set maxFetchDepth and showSql from features
- move set nhibernate interceptor to post build phase
- move export schema to post build phase
- revert changes in persistence configuration
- edit in-memory db configuration to be shared between multiple connections
- update data access documentation
- add entity extensions sample
- add configuration overrider and override route parts convention
@dncsvr dncsvr marked this pull request as ready for review October 10, 2024 12:55
Copy link
Member

@cihandeniz cihandeniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not finished the review, fix issues so far, i'll continue

- move runtime helper classes and interfaces to `Baked.Runtime` and remove extra folders
- change `Settings` namespace to `Baked`
- use scope with curly braces in export schema
- edit schedular entity extensions sample
Copy link
Member

@cihandeniz cihandeniz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

full review

- remove `HttpServer` layer dependency of `Runtime` layer
- add `ILoggingBuilder` implementation
- convert `UpdateSchema` parameters to required
- remove `LayerBase` generic implementation with four phases
- minor edits
- create and dispose scope for each test run
- `HttpServer` register service provider accessor with request services
- `TestLayer` registers service provider accessor with scope
- refactor service factories and helper methods to use new service provider accessors
@dncsvr dncsvr merged commit 0d8f82f into mouseless:main Oct 16, 2024
8 checks passed
@dncsvr dncsvr deleted the issue/refine-layers branch October 16, 2024 08:07
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.

2 participants