fix: code quality and safety improvements - #836
Closed
saurabhhhcodes wants to merge 891 commits into
Closed
saurabhhhcodes wants to merge 891 commits into
saurabhhhcodes wants to merge 891 commits into
Conversation
- models.py: restore filename index=True + add upstream processing columns (processing_progress, processing_stage, retry_count, last_error_traceback, processing_started_at, completed_at, extracted_urls) alongside feature's keywords column - agent.py: restore ChatHuggingFace + ExternalServiceException from upstream; keep feature's extract_keywords import and persist_document_keywords helper; restore chat_llm agent setup and proper error raising - requirements.txt: restore google-auth-oauthlib to Auth section, unstructured[pdf] to Document Processing, redis>=4.6.0 at bottom; remove duplicate fastapi-mail - tests/test_documents.py: fix assertion to use correct FastAPI detail key and matching substring 'not supported'
…action-tags # Conflicts: # backend/app/models.py # backend/app/schemas.py # backend/app/services/document_ingestion.py
Signed-off-by: Garima Varshney <gungunvarshney00@gmail.com>
# Conflicts: # backend/app/routes/chat.py # backend/app/routes/documents.py # backend/requirements.txt # frontend/e2e/auth-and-chat.spec.ts
- Add dedicated FIELD_ENCRYPTION_KEY setting (separate from SECRET_KEY) - Update EncryptedString to use FIELD_ENCRYPTION_KEY with key versioning - Add JWT algorithm whitelist enforcement (HS256 only) - Add production validation to reject default SECRET_KEY and empty FIELD_ENCRYPTION_KEY - Add DOC_CLEANUP_INACTIVE_DAYS and DOC_CLEANUP_ENABLED settings Closes #513
- Remove redundant asyncio-based document_cleanup_job() from main.py - Add unified cleanup_inactive_active_documents() with batched pagination - Add _hard_delete_document() helper with per-document error isolation - Add advisory_lock() helper for PostgreSQL/SQLite coordinated cleanup - Schedule inactive-active cleanup via APScheduler alongside existing jobs - Use batched pagination (100 docs/batch) in all cleanup functions Closes #514
- Remove dead root-level Flask files: app.py, models.py, config.py, make_admin.py, requirements.txt, start.sh - Remove legacy static/ and instance/ directories - Update README.md Tech Stack to reflect FastAPI/Next.js/ChromaDB/ HuggingFace stack - Consolidate .env.example to match backend/app/config.py settings - Add FIELD_ENCRYPTION_KEY, DOC_CLEANUP_*, and workspace settings to .env.example Closes #515
…caling fix: scale PDF-unit highlight rects by zoom level to prevent misalignment
feat: per-message response time badge
feat(rag): add OCR fallback for image-based PDF pages
…page fix: gracefully handle missing/invalid page metadata in SourceCard
Frontend is now hosted separately on Vercel. Backend on Hugging Face serves only the FastAPI API.
…ocalError in logging middleware
…e to fix 500 error on chat/history
… fix 500 error on list documents
|
Someone is attempting to deploy a commit to the param20h's projects Team on Vercel. A member of the Team first needs to authorize it. |
This was referenced Aug 2, 2026
Closed
Closed
Closed
Closed
Closed
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.
No description provided.