Browse Source

Clarify Blazor Server entity history limitation in audit logging docs

pull/24850/head
enisn 8 months ago
parent
commit
9b4ab8cd85
No known key found for this signature in database GPG Key ID: A052619F04155D1C
  1. 11
      docs/en/framework/infrastructure/audit-logging.md
  2. 2
      docs/en/modules/audit-logging-pro.md

11
docs/en/framework/infrastructure/audit-logging.md

@ -169,6 +169,17 @@ public class HomeController : AbpController
[Application service](../architecture/domain-driven-design/application-services.md) method calls also included into the audit log by default. You can use the `[DisableAuditing]` in service or method level.
> ### Blazor Server Limitation (Entity History)
>
> In `Blazor Server` applications, entity change history is currently not guaranteed to be complete for every UI interaction.
>
> Blazor Server uses SignalR-based event handling, and under some flows the audit scope/action tracking may not align with `DbContext.SaveChanges`, which can cause missing or partial entity change records.
>
> This is a known platform-level limitation and not a regular configuration issue.
>
> Related discussions:
> - https://github.com/abpframework/abp/issues/11682
#### Enable/Disable for Other Services
Action audit logging can be enabled for any type of class (registered to and resolved from the [dependency injection](../fundamentals/dependency-injection.md)) while it is only enabled for the controllers and the application services by default.

2
docs/en/modules/audit-logging-pro.md

@ -73,6 +73,8 @@ You can export audit logs to Excel by clicking the "Export to Excel" button in t
Entity changes tab is used to list, view and filter entity change logs.
> **Blazor Server note:** Entity change history can be missing or incomplete in some `Blazor Server` scenarios due to known SignalR/event-pipeline limitations. See [Audit Logging](../framework/infrastructure/audit-logging.md) and https://github.com/abpframework/abp/issues/11682.
![audit-logging-module-entity-changes-list-page](../images/audit-logging-module-entity-changes-list-page.png)

Loading…
Cancel
Save