PR from main - #24
Open
Yasith763 wants to merge 110 commits into
Open
Conversation
create backend of catagory and services
add category data
migrate entire codebase from JavaScript to TypeScript
refactor: update Dockerfile to install TypeScript and run transpiled …
PR from main
…, and retrieval functionalities
…r admin creation endpoints
…on Prisma client pattern and enhancing connection pool configuration docs: add troubleshooting guide for database connection issues and optimizations implemented perf: optimize backend performance by implementing caching, response compression, and database indexing feat: create comprehensive monitoring for connection pool and performance metrics chore: add tests for connection pool and database performance to ensure stability and efficiency
…th checks - Added @types/aws-sdk to dependencies for TypeScript support. - Removed unused quick-db-test.js, performance.middleware.ts, connection-monitor.ts, and related test files. - Simplified health route by removing unnecessary database stats and connection time logging. - Updated user.service.ts to improve performance by counting services instead of fetching them. - Cleaned up database connection logic in database.ts and removed retry logic. - Removed various test scripts related to admin and connection testing. - Created a new empty dev.db file for Prisma.
Added full unit and integration test coverage for the Admin module, including service, controller, middleware, validator, and route tests. Introduced Jest configuration files, test setup, and mocks for database, JWT, and hashing. Removed unused admin payment controller and route, and updated admin service and validator for improved testability and validation strictness.
Add comprehensive admin module tests and configs
Deleted jest.config.js, indicating Jest is no longer used for testing or the configuration has been moved elsewhere.
Remove Jest configuration file
- Implement tests for Review Controller, Service Request Controller, Services Controller, and User Controller. - Add tests for authentication and validation middlewares. - Create tests for Category and User services, including registration, login, and profile management. - Introduce utility tests for password hashing functions. - Ensure comprehensive coverage of success and error scenarios across all tests.
- Implemented spike-test.js for sudden load increase testing with configurable stages and error rate thresholds. - Developed stress-test.js to gradually increase load and identify breaking points, including metrics for response times and error rates. - Created performance-examples.test.ts to demonstrate performance monitoring utilities and validate metrics. - Added integration tests for API endpoints, including health checks, category, service, provider, and review endpoints. - Implemented user authentication flow tests covering registration, login, and protected routes. - Developed performance integration tests to assess concurrent request handling, rate limiting, payload size handling, and memory leak detection. - Introduced utility functions for load testing configuration and performance monitoring. - Enhanced documentation for integration tests and load testing utilities.
- Add coverage and .cache to .gitignore - Ignore integration tests in Jest configuration - Update integration test scripts in package.json - Enhance performance test with additional response time measurements - Create jest.integration.config.cjs for integration tests
… sample review script
… average rating calculation
Updated the Prisma schema to use the 'vector' and 'postgis' extensions directly. Refactored Service, Payment, Schedule, and ServiceRequest models for improved field ordering and consistency, removed duplicate ServiceRequest model, and standardized vector field types for embeddings. Added spatial_ref_sys model for PostGIS support.
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.