Commit Graph

54 Commits

Author SHA1 Message Date
d5f185ad99 Refactor tests and improve error handling across various services
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 10m38s
- Updated `useAuth` tests to use async functions for JSON responses to avoid promise resolution issues.
- Changed `AdminBrandManager` tests to use `mockImplementation` for consistent mock behavior.
- Enhanced `ProfileManager.Authenticated` tests to ensure proper error handling and assertions for partial updates.
- Modified `SystemCheck` tests to prevent memory leaks by using `mockImplementation` for API calls.
- Improved error handling in `ai.routes.ts` by refining validation schemas and adding error extraction utility.
- Updated `auth.routes.test.ts` to inject mock logger for better error tracking.
- Refined `flyer.routes.ts` to ensure proper validation and error handling for flyer ID parameters.
- Enhanced `admin.db.ts` to ensure specific errors are re-thrown for better error management.
- Updated `budget.db.test.ts` to improve mock behavior and ensure accurate assertions.
- Refined `flyer.db.ts` to improve error handling for race conditions during store creation.
- Enhanced `notification.db.test.ts` to ensure specific error types are tested correctly.
- Updated `recipe.db.test.ts` to ensure proper handling of not found errors.
- Improved `user.db.ts` to ensure consistent error handling for user retrieval.
- Enhanced `flyerProcessingService.server.test.ts` to ensure accurate assertions on transformed data.
- Updated `logger.server.ts` to disable transport in test environments to prevent issues.
- Refined `queueService.workers.test.ts` to ensure accurate mocking of email service.
- Improved `userService.test.ts` to ensure proper mock implementations for repository classes.
- Enhanced `checksum.test.ts` to ensure reliable file content creation in tests.
- Updated `pdfConverter.test.ts` to reset shared state objects and mock implementations before each test.
2025-12-15 16:40:13 -08:00
2affda25dc Refactor geocoding services and improve logging
- Updated the Nominatim geocoding service to use a class-based structure and accept a logger instance for better logging control.
- Modified tests for the Nominatim service to align with the new structure and improved logging assertions.
- Removed the disabled notification service test file.
- Added a new GeocodingFailedError class to handle geocoding failures more explicitly.
- Enhanced error logging in the queue service to include structured error objects.
- Updated user service to accept a logger instance for better logging in address upsert operations.
- Added request-scoped logger to Express Request interface for type-safe logging in route handlers.
- Improved logging in utility functions for better debugging and error tracking.
- Created a new GoogleGeocodingService class for Google Maps geocoding with structured logging.
- Added tests for the useAiAnalysis hook to ensure proper functionality and error handling.
2025-12-13 17:52:30 -08:00
0694a5501f added genai rate limiting
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m47s
2025-12-10 10:29:57 -08:00
7912d29961 home page errors in progress
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 8m50s
2025-12-09 23:41:18 -08:00
9d552b7456 Refactor database environment variable usage across workflows and application code
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m53s
- Updated Gitea workflows to standardize on `DB_NAME` instead of `DB_DATABASE` for database name references.
- Modified deployment, backup, reset, and restore workflows to ensure consistent environment variable usage.
- Removed dotenv dependency and preload script, transitioning to environment variable management directly in scripts.
- Adjusted application code to utilize `DB_NAME` for database connections and logging.
- Enhanced README to reflect changes in environment variable configuration and usage.
- Cleaned up package.json scripts to remove unnecessary preload references.
2025-12-04 18:02:38 -08:00
7d5ec198ac chore: update dependencies and remove Vitest globals from tsconfig
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m14s
2025-12-04 10:08:04 -08:00
b800f85f9b move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m0s
2025-12-02 18:12:39 -08:00
d028511d38 move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m9s
2025-12-02 17:15:10 -08:00
80e2222d20 move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m21s
2025-12-02 14:31:01 -08:00
aa18f5ed7c come on ai get it right
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m35s
2025-12-01 19:24:58 -08:00
1df7cf6801 fix image saving + new icon
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has been cancelled
2025-11-30 01:25:53 -08:00
fe2c1a0727 more TS fixes + tests
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m5s
2025-11-29 17:09:51 -08:00
753c675d9f acheivments + flyercorrection
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 2m18s
2025-11-29 13:35:10 -08:00
a7fe9e085b testing admin routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m49s
2025-11-28 17:12:52 -08:00
05586df3e7 testing routes
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 3m15s
2025-11-28 15:23:51 -08:00
997446febf add integration testing report from backend server
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 5m33s
2025-11-25 20:38:51 -08:00
1d0bd630b2 test, more id fixes, and naming all files
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 48s
2025-11-25 05:59:56 -08:00
778d608b16 working ! testing !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 5m31s
2025-11-25 00:52:33 -08:00
2f55a303b0 some more re-org + fixes
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m55s
2025-11-24 15:02:13 -08:00
9801e62899 deploy moment aha
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m16s
2025-11-23 13:54:15 -08:00
7bdbd708c1 prod broken
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m56s
2025-11-22 21:06:42 -08:00
aed59a80c5 prod broken
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m5s
2025-11-22 20:59:40 -08:00
16b1872180 prod broken
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 57s
2025-11-22 20:10:07 -08:00
7bb97f299e more unit testing
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 1m15s
2025-11-22 14:17:56 -08:00
1d5c9e3815 frontend work !
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m30s
2025-11-22 12:19:52 -08:00
f771c15483 unit testin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 58s
2025-11-22 02:07:26 -08:00
a4c19ce864 unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 37s
2025-11-22 00:25:35 -08:00
97bb1a3966 unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 41s
2025-11-22 00:17:05 -08:00
69be398cd9 testing hehehe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 51m31s
2025-11-20 22:11:09 -08:00
f6094df456 database expansion prior to creating on server - also error cleanup, some logging - DONE now for testing hehehe
Some checks are pending
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has started running
2025-11-20 20:31:40 -08:00
43b44902ca database expansion prior to creating on server - also error cleanup, some logging
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 29s
2025-11-20 10:40:35 -08:00
502e0754a1 database expansion prior to creating on server 2025-11-19 21:51:25 -08:00
a62af10ce6 finish migrating from Supabase to local Postgress, and passport.js for auth because CORS 2025-11-19 19:51:18 -08:00
b330ce4cd1 start on migrating from Supabase to local Postgress, and passport.js for auth because CORS 2025-11-19 15:30:59 -08:00
e8b651929e start on migrating from Supabase to local Postgress, and passport.js for auth because CORS 2025-11-19 14:10:14 -08:00
593c33c977 start on migrating from Supabase to local Postgress, and passport.js for auth because CORS 2025-11-19 12:42:34 -08:00
7b3cb2c2fa supabase function issues + deno
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m34s
2025-11-13 12:00:08 -08:00
6a9a57669e move to using /src - still css issue work
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 30s
2025-11-12 16:01:52 -08:00
e0d292ec97 css issues
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 3m32s
2025-11-12 13:24:03 -08:00
db4b679254 css issues
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 24s
2025-11-12 13:12:07 -08:00
65caa10a70 css issues
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 31s
2025-11-12 12:25:35 -08:00
49df6dc6d7 css issues
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 22s
2025-11-12 12:18:58 -08:00
23e91478f1 css issues
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 14s
2025-11-12 11:18:42 -08:00
19554481ff unit tests !
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 23s
2025-11-12 10:45:16 -08:00
a54b96810a typescript fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 14s
2025-11-12 10:01:05 -08:00
6943975535 deploy linting and first unit test maybe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 15s
2025-11-11 20:58:48 -08:00
4f18411944 deploy linting and first unit test maybe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 11s
2025-11-11 20:56:18 -08:00
164c077682 deploy linting and first unit test maybe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 9s
2025-11-11 20:53:16 -08:00
970907fe5b deploy linting and first unit test maybe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 13s
2025-11-11 20:43:03 -08:00
7df63c006f deploy linting and first unit test maybe
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 11s
2025-11-11 19:36:40 -08:00