13 KiB
13 KiB
Codebase Audit Ledger (#42)
Generated: 2026-03-22 11:28:32 Total files scanned: 240
📋 Audit Checklist
Check each file after audit completion. Use this ledger to track progress.
API Endpoints (backend/app/api_endpoints/...)
api/deps.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'" [MEGTART]: Függőségi segédmodul, kritikus a biztonsághozapi/recommend.py- No docstring or definitions found [MEGTART]: Szigorú RBAC bevezetve, zárt ökoszisztéma megkövetelveapi/v1/api.py- No docstring or definitions found [MEGTART]: Fő API router összekapcsoló, nem tartalmaz végpontokatapi/v1/endpoints/admin.py- Classes: ConfigUpdate, OdometerStatsResponse, ManualOverrideRequest [MEGTART]: Védett admin végpontok, RBAC ellenőrzésselapi/v1/endpoints/analytics.py- "Analytics API endpoints for TCO (Total Cost of Ownership) dashboard." [MEGTART]: Szigorú RBAC bevezetve, zárt ökoszisztéma megkövetelveapi/v1/endpoints/assets.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/auth.py- Classes: VerifyEmailRequest [MEGTART]: Autentikációs végpontok, nem igényel további védelmetapi/v1/endpoints/billing.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/catalog.py- No docstring or definitions found [MEGTART]: Szigorú RBAC bevezetve, zárt ökoszisztéma megkövetelveapi/v1/endpoints/documents.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'" [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/evidence.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/expenses.py- Classes: ExpenseCreate [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/finance_admin.py- "Finance Admin API endpoints for managing Issuers with strict RBAC protection." [MEGTART]: Strict RBAC védelme van, más Depends függőséggelapi/v1/endpoints/gamification.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'" [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/notifications.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/organizations.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/providers.py- No docstring or definitions found [MEGTART]: Szigorú RBAC bevezetve, zárt ökoszisztéma megkövetelveapi/v1/endpoints/reports.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/search.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/security.py- "Dual Control (Négy szem elv) API végpontok." [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/services.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/social.py- No docstring or definitions found [MEGTART]: Szigorú RBAC bevezetve, zárt ökoszisztéma megkövetelveapi/v1/endpoints/system_parameters.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/translations.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'" [MEGTART]: Fordítási végpontok, védve (hibás scanner eredmény)api/v1/endpoints/users.py- No docstring or definitions found [MEGTART]: Védett végpontok, megfelelő RBACapi/v1/endpoints/vehicles.py- "Jármű értékelési végpontok a Social 1 modulhoz." [MEGTART]: Védett végpontok, megfelelő RBAC
Core (backend/app/core/...)
core/config.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"core/email.py- No docstring or definitions foundcore/i18n.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"core/rbac.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"core/scheduler.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"core/security.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"core/validators.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"
Models (backend/app/models/...)
models/audit.py- No docstring or definitions foundmodels/core_logic.py- Classes: SubscriptionTier, OrganizationSubscription, CreditTransaction, ServiceSpecialtymodels/gamification/gamification.py- Classes: PointRule, LevelConfig, PointsLedger, UserStats, Badge (+3 more)models/identity/address.py- Classes: GeoPostalCode, GeoStreet, GeoStreetType, Address, Ratingmodels/identity/identity.py- Classes: UserRole, Person, User, Wallet, VerificationToken (+3 more)models/identity/registry.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/identity/security.py- Classes: ActionStatus, PendingActionmodels/identity/social.py- Classes: ModerationStatus, SourceType, ServiceProvider, Vote, Competition (+2 more)models/marketplace/finance.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/marketplace/logistics.py- Classes: LocationType, Locationmodels/marketplace/organization.py- Classes: OrgType, OrgUserRole, Organization, OrganizationFinancials, OrganizationMember (+2 more)models/marketplace/payment.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/marketplace/service.py- Classes: ServiceStatus, ServiceProfile, ExpertiseTag, ServiceExpertise, ServiceStaging (+1 more)models/marketplace/service_request.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/marketplace/staged_data.py- Classes: StagedVehicleData, ServiceStaging, DiscoveryParametermodels/reference_data.py- Classes: ReferenceLookupmodels/system/audit.py- Classes: SecurityAuditLog, OperationalLog, ProcessLog, LedgerEntryType, WalletType (+2 more)models/system/document.py- Classes: Documentmodels/system/legal.py- Classes: LegalDocument, LegalAcceptancemodels/system/system.py- Classes: ParameterScope, SystemParameter, InternalNotification, SystemServiceStagingmodels/system/translation.py- Classes: Translationmodels/vehicle/asset.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/vehicle/external_reference.py- Classes: ExternalReferenceLibrarymodels/vehicle/external_reference_queue.py- Classes: ExternalReferenceQueuemodels/vehicle/history.py- Classes: LogSeverity, AuditLogmodels/vehicle/motorcycle_specs.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/vehicle/vehicle.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"models/vehicle/vehicle_definitions.py- Classes: VehicleType, FeatureDefinition, VehicleModelDefinition, ModelFeatureMap
Other (backend/app/other/...)
admin_ui.py- No docstring or definitions founddatabase.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"db/base.py- No docstring or definitions founddb/base_class.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"db/middleware.py- No docstring or definitions founddb/session.py- No docstring or definitions foundmain.py- No docstring or definitions foundtest_billing_engine.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"test_hierarchical.py- "Gyors teszt a hierarchikus paraméterekhez."
Schemas (backend/app/schemas/...)
schemas/admin.py- No docstring or definitions foundschemas/admin_security.py- Classes: PendingActionResponse, SecurityStatusResponseschemas/analytics.py- "Analytics Pydantic schemas for TCO (Total Cost of Ownership) API responses." - Classes: TCOResponse, TCOSummaryStats, TCOSummaryResponse, TCOErrorResponse, Config (+1 more)schemas/asset.py- Classes: AssetCatalogResponse, AssetResponse, AssetCreateschemas/asset_cost.py- Classes: AssetCostBase, AssetCostCreate, AssetCostResponseschemas/auth.py- Classes: DocumentDetail, ICEContact, UserLiteRegister, UserKYCComplete, Tokenschemas/evidence.py- Classes: RegistrationDocumentExtracted, OcrResponse, Configschemas/finance.py- "Finance-related Pydantic schemas for API requests and responses." - Classes: IssuerType, IssuerResponse, IssuerUpdateschemas/fleet.py- Classes: EventCreate, TCOStatsschemas/gamification.py- Classes: SeasonResponse, UserStatResponse, LeaderboardEntry, Config, Config (+1 more)schemas/organization.py- Classes: ContactCreate, CorpOnboardIn, CorpOnboardResponseschemas/security.py- "Dual Control (Négy szem elv) sémák." - Classes: PendingActionCreate, PendingActionApprove, PendingActionReject, UserLite, PendingActionResponse (+3 more)schemas/service.py- Classes: ContactCreate, CorpOnboardIn, CorpOnboardResponseschemas/service_hunt.py- Classes: ServiceHuntRequestschemas/social.py- Classes: ServiceProviderBase, ServiceProviderCreate, ServiceProviderResponse, ServiceReviewBase, ServiceReviewCreate (+5 more)schemas/system.py- Classes: SystemParameterBase, SystemParameterCreate, SystemParameterUpdate, SystemParameterResponseschemas/token.py- Classes: Token, TokenDataschemas/user.py- Classes: UserBase, UserResponse, UserUpdateschemas/vehicle.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"schemas/vehicle_categories.py- No docstring or definitions found
Scripts (backend/app/scripts/...)
scripts/audit_scanner.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/check_mappers.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/check_robots_integrity.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/check_tables.py- "Check tables in system and gamification schemas."scripts/correction_tool.py- No docstring or definitions foundscripts/fix_imports_diag.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/link_catalog_to_mdm.py- No docstring or definitions foundscripts/monitor_crawler.py- No docstring or definitions foundscripts/morning_report.py- No docstring or definitions foundscripts/move_tables.py- "Move tables from system schema to gamification schema." [TÖRÖLHETŐ] (Soft delete kész, archiválva)scripts/rename_deprecated.py- "Rename tables in system schema to deprecated to avoid extra detection." [TÖRÖLHETŐ] (Soft delete kész, archiválva)scripts/seed_system_params.py- No docstring or definitions foundscripts/seed_v1_9_system.py- No docstring or definitions found [REFAKTORÁL] (Később modernizálandó seed szkript)scripts/smart_admin_audit.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/sync_engine.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/sync_python_models_generator.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/unified_db_audit.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/unified_db_sync.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'"scripts/unified_db_sync_1.0.py- "Error reading file: 'FunctionDef' object has no attribute 'parent'" [TÖRÖLHETŐ] (Soft delete kész, archiválva)
Services (backend/app/services/...)
- services/ai_ocr_service.py - [MEGTART] Modern OCR service, part of AI pipeline.
- services/ai_service.py - [MEGTART] Uses os.getenv; should use ConfigService. (os.getenv és print() hívások javítva)
- services/ai_service1.1.0.py - [REFAKTORÁL] Versioned AI service with os.getenv; consider merging with ai_service.py.
- services/ai_service_googleApi_old.py - [TÖRÖLHETŐ] Deprecated old version; remove. (Soft delete kész)
- services/analytics_service.py - [MEGTART] Analytics service; scanner error due to complex AST.
- services/asset_service.py - [MEGTART] Asset management service.
- services/auth_service.py - [MEGTART] Authentication service.
- services/billing_engine.py - [MEGTART] Contains print statements; replace with logger. (print() hívások javítva)
- services/config_service.py - [MEGTART] Core configuration service.
- services/cost_service.py - [MEGTART] Cost calculation service.
- services/deduplication_service.py - [MEGTART] Deduplication logic; scanner error.
- services/document_service.py - [MEGTART] Document handling service.
- services/dvla_service.py - [MEGTART] DVLA API integration.
- services/email_manager.py - [MEGTART] Uses os.getenv; migrate to ConfigService. (os.get