Mazyar
3f0935ee3f
Enhance duplicate key error handling in MongoDB operations
...
- Improved the `IsDuplicateKeyError` function to utilize structured error messages for better accuracy in identifying duplicate key errors.
- Introduced `duplicateKeyMessages` and `hasStructuredWriteException` functions to parse and extract relevant information from MongoDB error messages.
- Updated `DuplicateKeyMatchesField` to match duplicate key errors against specific fields by analyzing error messages rather than relying on substring matching.
This refactor enhances the clarity and reliability of duplicate key error handling, ensuring more precise identification of conflicts in MongoDB operations.
2026-06-07 14:40:42 +03:30
m.nazemi
550fd36db1
Merge branch 'develop' into Phone-Uniqueness
2026-06-07 14:33:48 +03:30
m.nazemi
a75e4743f0
Merge pull request 'Refactor AI summarizer client initialization to include MongoDB manager and add statistics endpoint' ( #36 ) from TM-602 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/36
2026-06-07 14:32:37 +03:30
m.nazemi
b7e813e972
Merge pull request 'Refactor MongoDB index creation to use NonEmptyStringPartialFilter for improved clarity and consistency. Update GetOJS function to utilize context and user agent for HTTP requests, enhancing error handling and response management.' ( #37 ) from OJS-Date into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/37
2026-06-07 14:31:15 +03:30
Mazyar
c91b525e7e
Refactor MongoDB index creation to use NonEmptyStringPartialFilter for improved clarity and consistency. Update GetOJS function to utilize context and user agent for HTTP requests, enhancing error handling and response management.
2026-06-06 21:36:43 +03:30
Mazyar
68b170126d
Refactor AI summarizer client initialization to include MongoDB manager and add statistics endpoint
...
- Updated `InitAISummarizerClient` to accept `mongoManager` for tracking translation success.
- Introduced new `Statistics` endpoint in the dashboard to fetch scraping and translation statistics.
- Enhanced `TranslationWorker` to utilize the new success counter for tracking successful translations.
- Added necessary data structures and query forms for statistics reporting.
This refactor improves the tracking of AI translation success and provides new insights through the dashboard statistics.
2026-06-06 21:20:53 +03:30
Mazyar
22487eaef5
fix(user,customer): return 409 on phone duplicate-key races
...
Map E11000 from the per-collection phone index to friendly conflict
errors and skip redundant GetByPhone when the phone is unchanged.
Not blocking: IAT test DB may need a one-off dedupe for index build;
phone uniqueness is per collection (users vs customers), not global.
2026-06-06 20:34:45 +03:30
Mazyar
0da0c8b8c9
Implement phone number validation for customer and user registration and updates
...
Added functionality to check for existing customers and users by phone number during registration and updates. Updated the handler, service, and repository layers to include phone number checks, ensuring unique phone numbers across customers and users.
2026-06-06 12:03:04 +03:30
Mazyar
5af3bfaa1a
Allow address.country and address.state as company sort fields.
...
Frontend sends nested address field names for sorting; accept them alongside the existing country and state aliases.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-06 09:41:12 +03:30
m.nazemi
97f761adbe
Merge pull request 'Enhance company and company category search forms by adding new sortable fields (email, phone, country, state, language, currency) and updating related API documentation.' ( #34 ) from sort into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/34
2026-06-03 12:44:19 +03:30
Mazyar
a9f1611c48
Added curso test
2026-06-03 12:43:12 +03:30
m.nazemi
cf77e90f84
Merge branch 'develop' into sort
2026-06-03 12:38:12 +03:30
m.nazemi
b332841e0d
Merge pull request 'Improve error handling for tender retrieval by adding specific checks for "tender not found" in handler and service layers.' ( #33 ) from TM-588 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/33
2026-06-03 12:37:26 +03:30
m.nazemi
286642ea15
Merge branch 'develop' into TM-588
2026-06-03 12:37:14 +03:30
m.nazemi
98dce9dcf3
Merge pull request 'Improve error handling in feedback retrieval by returning a specific error when feedback is not found for a given tender ID and customer ID.' ( #32 ) from TM-571 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/32
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-06-03 12:36:18 +03:30
m.nazemi
5b76cf8f89
Merge branch 'develop' into TM-571
2026-06-03 12:36:04 +03:30
m.nazemi
7082f2ba65
Merge pull request 'Implement multi-file upload functionality for companies and enhance file upload routes' ( #31 ) from TM-604 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/31
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-06-03 12:35:46 +03:30
Mazyar
2090cc05ba
Enhance company and company category search forms by adding new sortable fields (email, phone, country, state, language, currency) and updating related API documentation.
2026-06-02 22:07:49 +03:30
Mazyar
ea792f54cd
Improve error handling in feedback retrieval by returning a specific error when feedback is not found for a given tender ID and customer ID.
2026-06-02 21:43:23 +03:30
Mazyar
a4c04912c8
Implement multi-file upload functionality for companies and enhance file upload routes
2026-06-02 21:24:39 +03:30
Mazyar
48340d961d
Improve error handling for tender retrieval by adding specific checks for "tender not found" in handler and service layers.
2026-06-02 12:24:48 +03:30
m.nazemi
2457b76df9
Merge pull request 'Enhance customer search functionality by adding filters for full name, email, and role.' ( #29 ) from TM-487 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/29
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-06-01 16:58:16 +03:30
m.nazemi
75b1d64730
Merge branch 'develop' into TM-487
2026-06-01 16:58:00 +03:30
m.nazemi
2a4d647d5c
Merge pull request 'Refactor customer form and service for company ID validation.' ( #28 ) from TM-559 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/28
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-06-01 16:57:48 +03:30
m.nazemi
7da9a4af81
Merge branch 'develop' into TM-559
2026-06-01 16:57:27 +03:30
m.nazemi
2acd9c32d3
Merge pull request 'Refactor document scraper service to support multiple country codes for pending tenders retrieval.' ( #30 ) from scraper-country into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/30
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-06-01 16:57:13 +03:30
Mazyar
4beb57f42e
Refactor document scraper service to support multiple country codes for pending tenders retrieval.
2026-06-01 11:14:18 +03:30
Mazyar
64be9f4ef7
Refactor customer form and service for company ID validation.
2026-06-01 10:56:50 +03:30
Mazyar
1be07bcb71
Enhance customer search functionality by adding filters for full name, email, and role.
2026-06-01 10:40:37 +03:30
m.nazemi
cc6c0e1660
Merge pull request 'feedback error handling' ( #26 ) from TM-571 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/26
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-31 18:37:43 +03:30
Mazyar
7dd2e415f4
Merge branch 'develop' into TM-571
2026-05-31 18:36:59 +03:30
m.nazemi
423b0d0ebb
Merge pull request 'in-app notification bug fix' ( #24 ) from TM-563 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/24
2026-05-31 18:30:56 +03:30
m.nazemi
95d2ce201f
Merge branch 'develop' into TM-563
2026-05-31 18:29:15 +03:30
m.nazemi
4589cbfe6c
Merge pull request 'create CMS error handling' ( #25 ) from TM-578 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/25
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-31 18:27:23 +03:30
m.nazemi
1a138d1485
Merge pull request 'Add customer feedback statistics endpoint and refactor feedback handling' ( #27 ) from TM-560 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/27
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-31 18:26:13 +03:30
m.nazemi
09fcd1a359
Merge pull request 'Add username existence check in customer registration and update handlers' ( #23 ) from customer-username into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/23
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-31 18:25:40 +03:30
Mazyar
2977f470ac
Add customer feedback statistics endpoint and refactor feedback handling
2026-05-31 03:32:07 +03:30
Mazyar
ef57b302d9
in-app notification bug fix
2026-05-31 03:05:40 +03:30
Mazyar
73d2d4927a
Add username existence check in customer registration and update handlers
2026-05-31 02:37:06 +03:30
Mazyar
31627a1bbe
create CMS error handling
2026-05-31 02:17:46 +03:30
Mazyar
970860a3d3
feedback error handling
2026-05-31 01:47:28 +03:30
Mazyar
bca94cd69a
go-rules temporarily disabled
2026-05-30 16:19:21 +03:30
m.nazemi
e869e149c5
Merge pull request 'kanban dashboard refactor' ( #21 ) from kanban into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/21
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-30 14:19:24 +03:30
m.nazemi
b419e9225c
Merge pull request 'Add admin password reset functionality for users and customers' ( #22 ) from Reset-Password into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/22
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-30 14:19:13 +03:30
Mazyar
ad702f24bf
fixed blocking important issues
2026-05-30 12:29:45 +03:30
Mazyar
cf1449b1f9
fixed blocking issues
2026-05-30 12:13:46 +03:30
Mazyar
bb221f3cda
Add admin password reset functionality for users and customers
2026-05-29 20:15:09 +03:30
Mazyar
ce2dc7a61b
kanban dashboard refactor
2026-05-27 22:06:23 +03:30
m.nazemi
42cd0452ce
Merge pull request 'company feedback performance update' ( #20 ) from TM-540 into develop
...
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/20
Reviewed-by: Hadi Barzegar <barzagarhadi@gmail.com >
2026-05-25 18:45:21 +03:30
Mazyar
da2d50bd70
fixed critical security issues
2026-05-25 13:23:49 +03:30