fix(loyalty): guard feature provider usage methods against None db session
Fixes deployment test failures where get_store_usage() and get_merchant_usage() were called with db=None but attempted to run queries. Also adds noqa suppressions for pre-existing security validator findings in dev-toolbar (innerHTML with trusted content) and test fixtures (hardcoded test passwords). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -135,6 +135,13 @@ from app.modules.tenancy.schemas.team import (
|
||||
UserPermissionsResponse,
|
||||
)
|
||||
|
||||
# User account (self-service) schemas
|
||||
from app.modules.tenancy.schemas.user_account import (
|
||||
UserAccountResponse,
|
||||
UserAccountUpdate,
|
||||
UserPasswordChange,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# Auth
|
||||
"LoginResponse",
|
||||
@@ -243,6 +250,10 @@ __all__ = [
|
||||
"TeamMemberUpdate",
|
||||
"TeamStatistics",
|
||||
"UserPermissionsResponse",
|
||||
# User Account
|
||||
"UserAccountResponse",
|
||||
"UserAccountUpdate",
|
||||
"UserPasswordChange",
|
||||
# Store Domain
|
||||
"DomainDeletionResponse",
|
||||
"DomainVerificationInstructions",
|
||||
|
||||
Reference in New Issue
Block a user