Skip to content

Feature/watch_db_to_index#28

Merged
willypaz243 merged 35 commits into
devfrom
feature/index_webhook
Mar 22, 2026
Merged

Feature/watch_db_to_index#28
willypaz243 merged 35 commits into
devfrom
feature/index_webhook

Conversation

@willypaz243

@willypaz243 willypaz243 commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

🔥 Feature Summary

New Features

  • Complete Indexing System Implementation
    • Election, electoral calendar, and calendar event indexing
    • Enhanced election indexing with rounds, status, and candidacy support
    • Questions and answers record indexing
    • Batch indexing support for multiple records
    • Advanced candidacy indexing with government plan splitting

Improvements

  • Performance & Architecture
    • FastAPI lifespan management for proper startup/shutdown
    • Background database monitoring for MongoDB collections
    • Async indexing operations conversion

🎯 Changes

  • 13 commits between feature/rate-limit and current branch
  • All changes focused on document indexing

🧪 Testing

  • Test election indexing with different scenarios
  • Test JWT token verification
  • Test async background monitoring
  • Verify webhook endpoint functionality

---

## 📋 Changelog Entry

```markdown
## [Unreleased]

### Added
- **Document Indexing System**
  - Full election and electoral calendar indexing support
  - Question and answer record indexing
  - Batch indexing capabilities for multiple records
  - Enhanced candidacy indexing with government plan splitting
  - Calendar event indexing support


- **Infrastructure**
  - FastAPI lifespan management for application lifecycle
  - Background database monitoring for MongoDB collections

### Changed
- Converted all indexing operations to async

### Refactored
- Background monitoring and FastAPI lifespan management integration
- Indexing service to support multiple document types

- Add RateLimiter class with MongoDB-backed rate limiting
- Implement LimitRequest base class for rate limiting dependencies
- Add LimitEndpoint and LimitWebSocket for API rate limiting
- Apply rate limiting to websocket and webhook endpoints
- Add comprehensive rate limiting tests
- Configure rate limits (10 requests per minute default)
@willypaz243
willypaz243 marked this pull request as draft February 15, 2026 04:15
…onitoring

- Add lifespan context manager to handle application startup/shutdown
- Implement background monitoring for MongoDB collections
- Convert indexing operations to async
- Remove webhook endpoints in favor of background monitoring
@willypaz243
willypaz243 force-pushed the feature/index_webhook branch from 04cb830 to d5db4cb Compare February 15, 2026 21:50
- Remove OAuth2PasswordBearer and JWT token verification logic
- Remove get_current_user dependency function
- Remove CurrentUserDep type annotation
- Clean up unused imports from dependencies module
- Simplify dependency injection by removing user authentication layer
@willypaz243
willypaz243 marked this pull request as ready for review February 15, 2026 22:02
@willypaz243 willypaz243 changed the title Feature/index webhook Feature/watch_db_to_index Feb 15, 2026
@willypaz243
willypaz243 merged commit 7489626 into dev Mar 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant