fix: resolve MongoDB dependency injection errors + add admin features#18
Open
fix: resolve MongoDB dependency injection errors + add admin features#18
Conversation
…atting - Add toPartyLabel method to map partyId to logical labels (partyA/partyB) - Add toPartyDisplayName method for consistent party name display - Fix fallback synthesis argument generation and variable references - Make driver property mutable for runtime configuration
- Remove Python virtual environment from git tracking - Add .venv patterns to .gitignore - Fix User entity with missing properties (email, active, apiKeys, updatedAt) - Add ApiKey interface with required properties - Fix AppError class with missing static methods (internal, badRequest) - Add missing exports to rateLimitMiddleware (adminRateLimiter, xffBypassMiddleware) - Add count() methods to repository interfaces and implementations - Fix GeminiJuror return statement in error case - Update User methods to support optional parameters - Fix constructor parameter order in repository implementations All 47+ TypeScript errors resolved for successful deployment.
- Fix MongoDBConnection string literal to use TYPES symbol in all repositories - Fix admin repositories to accept Db instead of MongoClient - Remove duplicate MongoDB shutdown callback - Clean up Python cache files and add admin-frontend to gitignore This resolves the "No matching bindings found for serviceIdentifier: MongoDBConnection" and "mongoClient.db is not a function" errors preventing successful deployment.
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.
Summary
Recent Critical Fixes (Latest Commit)
MongoDB Deployment Issues Resolved
TYPES.MongoDBConnectioninstead of string literalsDbinstead ofMongoClientInfrastructure Improvements
Technical Changes
Core Repository Fixes
Admin Repository Fixes
Dbinstead ofMongoClient, remove.db()callDbinstead ofMongoClient, remove.db()callContainer & Index Updates
Test Plan
Impact
This PR now includes critical deployment fixes that resolve MongoDB binding errors preventing successful Railway deployment. The application can now start properly in both development and production environments.