[Expense Agent] Add activity log retention policy - #10416
[Expense Agent] Add activity log retention policy#10416Prangshuman Das (t-prda) wants to merge 1 commit into
Conversation
Register activity history with protected active rows and configurable posted retention. Handle indirect retention deletion and add a source/date key. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b70db042-75b8-4a9d-ba20-b539889b7e76
Agentic PR Review - Round 1Recommendation: Request ChangesWhat this PR doesThis PR registers Expense Agent activity history with the retention-policy framework. Active-report entries receive a locked Never Delete filter, while posted-report entries receive an unlocked Never Delete default based on The source/date key and indirect-delete callback fit the framework design, and deletion remains bounded by the supplied SuggestionsS1 - Avoid false errors for filtered runs S2 - Add retention policy regression tests S3 - Restore registration during refresh Risk assessment and necessityRisk: Retention controls deletion of audit-history data. The filters and key are narrow, but false error logs can make successful runs look broken, and missing tests leave active-entry protection and posted-entry deletion unverified. Necessity: Retention support is required so customers can manage posted activity history while active-report history remains protected. The scope is appropriate after the guard and regression coverage are completed.
|
|
Thanks for the review. I assessed all three suggestions against the approved retention contract:
The existing implementation therefore remains unchanged. |
Summary
Add Business Central retention-policy uptake for Expense Agent activity history.
Expense Activity Log Entryduring per-company installation, upgrade, and company initialization.Never Deletefilter.Never Deletedefault.Occurred Atas the retention date and add a source/date key for retention filtering.OnRefreshAllowedTablesis intentionally not subscribed; lifecycle registration is sufficient for initial uptake and newly created companies.Permissions
No permission-set or entitlement changes are included. Installation and upgrade use the existing inherently executable setup codeunits.
SUPERusers can use the retention framework's direct deletion path, while indirect deletion is handled throughExpense Activity Log Mgt.. PR #10346 separately supplies indirect activity-table permissions to normal Expense Management and Expense Agent roles.Validation
git diff --checkFixes AB#646820