Updated the Obsidian docs-vault

This commit is contained in:
Mohammed Abad committed 2026-04-22 14:48:43 +01:00
1 parent 72fd77ee01
commit 260282a0e2
36 files changed
+3497 -144

No files matched your search

+95
View File
@@ -0,0 +1,95 @@
---
title: Known Issues
tags:
- issues
- technical-debt
- bugs
---
# Known Issues
Tracked bugs and technical debt items.
---
## Backend
### Synchronous File Checks in Maintenance
- **File:** `backend/services/maintenanceService.js`
- **Issue:** `deleteOrphanMediaRecords` uses `fs.existsSync()` in a loop, which is synchronous and blocks the event loop
- **Impact:** Slow for large media libraries
- **Fix:** Replace with `fs.promises.access()` or batch with `Promise.all()`
### Hardcoded Database Credentials
- **File:** `backend/config/database.js`
- **Issue:** MySQL credentials hardcoded as `root` / `password`
- **Impact:** Security concern for non-local deployments
- **Fix:** Read from environment variables or `settings.json`
### CORS Allows All Origins
- **File:** `backend/server.js`
- **Issue:** CORS set to `*` (all origins)
- **Impact:** Acceptable for single-user local app, problematic if exposed to network
- **Fix:** Configure allowed origins in settings
### Bundled Moment.js
- **File:** `backend/utils/moment.js`
- **Issue:** Full Moment.js 2.29.0 is bundled directly in source code instead of as npm dependency
- **Impact:** Outdated version, harder to update
- **Fix:** Replace with `date-fns` or install via npm
### Killer Route in Production
- **File:** `backend/server.js`
- **Issue:** `GET /killer` crashes the backend — useful for debug only
- **Impact:** DoS risk if backend is exposed
- **Fix:** Gate behind dev-mode check
## Frontend
### Implicit `any` Types in SeasonPage
- **File:** `react_frontend/src/pages/SeasonPage.tsx`
- **Issue:** Several callback parameters have implicit `any` type
- **Impact:** TypeScript strict mode violations
- **Fix:** Add explicit type annotations
### Unused Imports in EntrySeenDialog
- **File:** `react_frontend/src/components/dialogs/EntrySeenDialog.tsx`
- **Issue:** Some imports from old Calendar implementation may still exist
- **Impact:** Bundle size (minor)
- **Fix:** Clean up unused imports
### Normalizer Inconsistency
- **Issue:** Backend returns mixed camelCase/snake_case fields depending on query type
- **Impact:** [[Normalizers]] layer exists to handle this, but it's fragile
- **Fix:** Standardize backend response format (ideally all snake_case)
## Database
### Franchise Model Unused
- **File:** `backend/models/Franchise.js`
- **Issue:** Model defined but not used anywhere in the application
- **Impact:** Dead code
- **Fix:** Implement franchise feature or remove model
### No Database Migrations
- **Issue:** Schema changes rely on `sequelize.sync({ alter })` which is disabled (`doUpdate = false`)
- **Impact:** Manual schema management required for changes
- **Fix:** Implement proper Sequelize migrations
## Docker
### Legacy Frontend in Docker
- **Issue:** Docker Compose uses the Angular frontend (`/frontend`), not the React frontend (`/react_frontend`)
- **Impact:** Docker deployment serves outdated UI
- **Fix:** Create Dockerfile for React frontend, update Compose