Skip to content

PR from main - #24

Open
Yasith763 wants to merge 110 commits into
yasith_newfrom
main
Open

PR from main#24
Yasith763 wants to merge 110 commits into
yasith_newfrom
main

Conversation

@Yasith763

Copy link
Copy Markdown
Collaborator

No description provided.

Yasith763 and others added 30 commits August 4, 2025 19:11
create backend of catagory and services
migrate entire codebase from JavaScript to TypeScript
refactor: update Dockerfile to install TypeScript and run transpiled …
…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.
indunil-k and others added 30 commits October 11, 2025 10:39
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.
- 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
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.
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.

3 participants