Repository navigation
fix(spp_audit): mark server-internal audit methods as private - #605
Open
gonzalesedwin1123 wants to merge 2 commits into
Open
gonzalesedwin1123 wants to merge 2 commits into
gonzalesedwin1123 wants to merge 2 commits into
Conversation
The audit backend methods and the rule's logging entry points are called only from server-side code. Mark them @api.private and cover it with tests. Server-side callers are unaffected.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 19.0 #605 +/- ##
==========================================
+ Coverage 77.17% 77.34% +0.17%
==========================================
Files 727 751 +24
Lines 47006 48899 +1893
==========================================
+ Hits 36276 37822 +1546
- Misses 10730 11077 +347
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
gonzalesedwin1123
marked this pull request as ready for review
November 24, 2026 15:07
This was referenced Nov 24, 2026
gonzalesedwin1123
requested review from
rafnl
and removed request for
kneckinator
November 24, 2026 16:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
write_entry,is_enabled) and the audit rule's logging entry points (log,log_lifecycle_action,get_audit_rules)@api.private. They are called only from server-side code (AuditBackendRegistry.dispatch, the audit decorator, and the lifecycle callers inspp_studioandspp_claim_169).spp_audit/tests/test_rpc_exposure.py.spp_auditto19.0.2.0.3with a HISTORY entry. No schema or data change, so no migration.Server-side callers are unaffected.
create_rules, used by XML<function>data in several modules, is unchanged.Test plan
./spp t spp_audit: 0 failed, 0 errors of 49 tests (42 existing + 7 new)pre-commiton the changed filesREADME.rst/static/description/index.htmlregenerated from CI's output