Skip to content

Develop 2.0.0-alpha - #19

Open
ReneSchwarzer wants to merge 69 commits into
mainfrom
develop
Open

ReneSchwarzer wants to merge 69 commits into
mainfrom
develop

Conversation

@ReneSchwarzer

Copy link
Copy Markdown
Member

This pull request introduces several documentation improvements, test fixture enhancements, and minor code corrections to the WebExpress project. The most significant updates include expanded documentation on health checks, graceful shutdown, and server entry points, as well as the addition of new health check test fixtures. There are also corrections to the mock identity group policy handling and minor typo and link fixes.

Documentation improvements:

  • Expanded the docs/user-guide.md with detailed sections on health checks (including endpoint, component model, and probe configuration), graceful shutdown, public server URI configuration, and server entry point behavior. This provides clearer operational guidance for users and developers.
  • Updated documentation links to point to the correct docs/ directory and fixed minor typos (e.g., "Raspberry PI" to "Raspberry Pi", ".net" to ".NET"). Added an AI transparency notice to the README.md. [1] [2] [3] [4]

Health check and test fixture enhancements:

  • Added new test health components in TestHealth.cs, including sealed and generic health components to test discovery, dependency injection, and attribute-driven cancellation. This ensures the health check infrastructure is robust and testable.
  • Updated the documentation and table of contents to include direct links to the health model section.

Mock identity and policy handling corrections:

  • Refactored MockIdentityGroup in test code to use IIdentityPolicy objects instead of string role names for policy assignment and enumeration, aligning with intended usage. [1] [2] [3] [4]
  • Fixed a method name in MockIdentityProvider from CreateForbiddenPage to CreateForbiddenResponse for accuracy and clarity.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Component removal leaks disposable resources, package settings can escape their documented scope, redirect defaults are incomplete, and several HTML tests preserve invalid markup.

Review effort: Balanced
Findings: 3 High severity · 12 Medium severity

Open (15)
What changed in this PR

This PR prepares WebExpress 2.0.0-alpha with expanded lifecycle, health, security, configuration, HTML, identity, and HTTP behavior plus broad test and documentation updates.

Changes:

  • Adds graceful shutdown, health checks, certificate/settings, and component lifecycle support.
  • Expands HTML, identity, session, routing, and HTTP response behavior and coverage.
  • Improves documentation, project configuration, and test fixtures.
Files Description
README.md; docs/​index.md; docs/​toc.yml; docs/​tutorials.md; docs/​user-guide.md Updates documentation and navigation.
src/​WebExpress.WebCore.sln; src/​WebExpress.WebCore.slnx; src/​WebExpress.WebCore/​WebExpress.WebCore.csproj; src/​WebExpress.WebCore/​WebExpress.WebCore.sln Updates solution and build configuration.
src/​WebExpress.WebCore/​Config/​*; ContainerEnvironment.cs; HttpEndpointInfo.cs; HttpServer.cs; HttpServerContext.cs; IHost.cs; IHttpServerContext.cs; ServerLifetime.cs Revises server configuration, hosting, and shutdown behavior.
src/​WebExpress.WebCore/​Internationalization/​*; Setting/​*; WebSetting/​* Updates localization and configuration loading/models.
src/​WebExpress.WebCore/​WebApplication/​*; WebAsset/​*; WebComponent/​*; WebEndpoint/​*; WebEvent/​*; WebFragment/​*; WebInclude/​* Revises component APIs, registration, contexts, and lifecycle management.
src/​WebExpress.WebCore/​WebAttribute/​*; WebCertificate/​*; WebHealt/​* Adds metadata, certificate management, and health-check infrastructure.
src/​WebExpress.WebCore/​WebHtml/​* Expands HTML elements, parsing, escaping, nonce support, and documentation.
src/​WebExpress.WebCore/​WebIdentity/​*; WebSession/​* Updates authentication, authorization, token stores, policies, and sessions.
src/​WebExpress.WebCore/​WebJob/​*; WebTask/​*; WebLog/​* Revises scheduled work, task lifetime, and logging APIs.
src/​WebExpress.WebCore/​WebMessage/​* Expands HTTP request, response, status, origin, and security-header handling.
src/​WebExpress.WebCore/​WebPackage/​*; WebPlugin/​* Updates package deployment, plugin configuration, and plugin lifecycle.
src/​WebExpress.WebCore/​WebPage/​*; WebResource/​*; WebRestApi/​*; WebScope/​*; WebSection/​* Revises page, resource, REST, scope, and section contracts.
src/​WebExpress.WebCore/​WebSettingPage/​*; WebSitemap/​*; WebSocket/​*; WebStatusPage/​*; WebTheme/​*; WebUri/​* Updates settings UI, routing, sockets, status pages, themes, and URI handling.
src/​WebExpress.WebCore.Test/​Data/​*; Fixture/​*; TestThemeA.cs; WWW/​* Enhances reusable test fixtures and mock components.
src/​WebExpress.WebCore.Test/​Html/​* Adds extensive HTML serialization and element coverage.
src/​WebExpress.WebCore.Test/​Manager/​*; Message/​*; Server/​*; WebLog/​*; WebSetting/​*; WebSettingPage/​* Expands integration and unit coverage across framework managers and protocols.
src/​WebExpress.WebCore.Test/​test/​* Updates HTTP request test inputs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/WebExpress.WebCore/WebApplication/IApplication.cs
Comment thread src/WebExpress.WebCore/WebPackage/Model/PackageItemSpec.cs
Comment thread src/WebExpress.WebCore/WebPlugin/IPlugin.cs
Comment thread src/WebExpress.WebCore.Test/Html/UnitTestHtmlElementEmbeddedEmbed.cs Outdated
Comment thread src/WebExpress.WebCore.Test/Html/UnitTestHtmlElementFormFieldset.cs Outdated
Comment thread src/WebExpress.WebCore.Test/Html/UnitTestHtmlElementTableCol.cs Outdated
Comment thread src/WebExpress.WebCore/WebJob/IJob.cs
Comment thread src/WebExpress.WebCore/WebMessage/ResponsePermanentRedirect.cs
Comment thread src/WebExpress.WebCore/WebMessage/ResponseSeeOther.cs
Comment thread src/WebExpress.WebCore/WebMessage/ResponseTemporaryRedirect.cs
@ReneSchwarzer ReneSchwarzer self-assigned this Oct 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread src/WebExpress.WebCore/WebHtml/HtmlRaw.cs Outdated
Comment thread src/WebExpress.WebCore.Test/Message/UnitTestResponseNoContent.cs Outdated
Comment thread src/WebExpress.WebCore.Test/Message/UnitTestResponseUnauthorized.cs
Comment thread docs/toc.yml
Comment thread src/WebExpress.WebCore/WebHealt/IHealth.cs Outdated
Comment thread src/WebExpress.WebCore/WebHtml/HtmlElementTextSemanticsKbd.cs

This branch has not been deployed

No deployments
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