Commit Graph

426 Commits

Author SHA1 Message Date
Mazyar e6005ee0ee kanban dashboard 2026-01-05 15:36:20 +03:30
m.nazemi ec39dae734 Merge pull request 'added AI auto-generated keywords to customer profile' (#17) from TM-358 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/17
2026-01-04 13:47:42 +03:30
Mazyar 8dcda0e031 added AI auto-generated keywords to customer profile 2026-01-04 13:44:45 +03:30
m.nazemi 3381e04e05 Merge pull request 'worker log' (#16) from GLM into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/16
2025-12-28 16:47:51 +03:30
Mazyar 9d1060d8f4 worker log 2025-12-28 16:43:30 +03:30
m.nazemi 5303bd4c96 Merge pull request 'fixed glm panic' (#15) from GLM into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/15
2025-12-28 16:32:31 +03:30
m.nazemi 6df10f1473 Merge branch 'develop' into GLM 2025-12-28 16:31:36 +03:30
Mazyar a95944d4c6 fixed glm panic 2025-12-28 15:58:33 +03:30
Nima Nakhsotin 5ea934c1c4 Merge pull request 'Implemented the integration with scraper python server, tenders summarise, and some fixes.' (#14) from integration into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/14
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-27 16:03:46 +03:30
Nima Nakhsotin 91e92675aa Merge branch 'develop' into integration 2025-12-27 16:03:24 +03:30
Nima Nakhsotin 9baa60f856 Merge pull request 'tender email confirmation template' (#13) from TM-317 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/13
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-27 16:02:22 +03:30
Mazyar f6bdcc6d7c Implemented the integration with scraper python server, tenders summarise, and some fixes. 2025-12-27 12:47:08 +03:30
Mazyar 6b387e2973 tender email confirmation template 2025-12-14 13:45:47 +03:30
Nima Nakhostin e4da3b5bb2 Refactor TED scraper job function for improved readability and maintainability 2025-12-13 12:35:58 +03:30
Nima Nakhsotin 6e4b3910ff Merge pull request 'error message for duplication' (#12) from TM-295 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/12
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-10 14:28:22 +03:30
Nima Nakhsotin 8969152f0d Merge branch 'develop' into TM-295 2025-12-10 14:28:04 +03:30
Nima Nakhsotin 2ee962c2b5 Merge pull request 'added hcaptcha' (#9) from TM-309 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/9
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-10 14:27:32 +03:30
Mazyar 90e4624342 error message for duplication 2025-12-09 13:06:45 +03:30
Mazyar ec3737e341 Merge branch 'develop' into TM-309 2025-12-08 12:08:44 +03:30
Nima Nakhsotin f514ac97ea Merge pull request 'send confirmation email after form submission' (#10) from TM-316 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/10
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-08 10:16:45 +03:30
Nima Nakhsotin 03ea86ca6a Merge branch 'develop' into TM-316 2025-12-08 10:16:23 +03:30
Nima Nakhsotin a67faf1ef0 Merge pull request 'xss validation' (#11) from TM-306 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/11
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-08 10:15:00 +03:30
Mazyar 7fb182f180 xss validation 2025-12-07 23:52:17 +03:30
Mazyar fbf99177a9 send confirmation email after form submission 2025-12-07 10:52:31 +03:30
Mazyar b01c0f9368 added hcaptcha 2025-12-05 18:10:05 +03:30
Nima Nakhsotin b8a10f355e Merge pull request 'tendsign scraper' (#8) from scraper into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/8
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-12-03 10:16:41 +03:30
Mazyar 5e777ceec8 scraper sdk 2025-12-01 11:06:09 +03:30
Nima Nakhsotin d94fa34941 Merge branch 'develop' into scraper 2025-11-30 12:48:31 +03:30
Nima Nakhostin 00fabe8a30 Enhance Notice Repository with Additional Indexes
- Added new indexes for the notices collection in the notice repository to improve query performance.
- Introduced indexes for `processing_metadata.processed` and `main_classification`, optimizing data retrieval and management.
2025-11-30 12:43:51 +03:30
Mazyar b6546eb2bb tendsign scraper 2025-11-30 02:58:08 +03:30
Nima Nakhostin d57bf95c70 Update CMSForm Country Field Validation
- Modified the validation rule for the Country field in the CMSForm struct to ensure it requires exactly 3 characters, enhancing input validation consistency.
- This change improves the robustness of the form handling by enforcing stricter validation criteria.
2025-11-29 12:50:56 +03:30
Nima Nakhostin bb974ad1ce Enhance TED Scraper Initialization and Error Handling
- Updated the InitTEDScraper function to return a scheduler instance, allowing for better error handling during initialization.
- Added error logging for failed scheduler initialization and job scheduling, improving robustness.
- Implemented graceful shutdown for the scheduler in the main function, ensuring proper resource management during application termination.
2025-11-29 10:21:35 +03:30
Nima Nakhostin e2e9159ac3 Update GetUnProcessedNotices to filter by main_classification and change sort order
- Modified the GetUnProcessedNotices method in the notice repository to include a filter for main_classification set to "72000000".
- Changed the sort order from ascending to descending for the created_at field, improving the retrieval of unprocessed notices.
2025-11-29 10:11:51 +03:30
Nima Nakhsotin c1e1e211e5 Merge pull request 'changed search inquiry response to grt meta outside of the data' (#7) from inquiry-response into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/7
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-11-25 12:56:09 +03:30
Mazyar 5062c19242 changed search inquiry response to grt meta outside of the data 2025-11-25 12:53:17 +03:30
Nima Nakhostin c8efa2c068 Refactor Scraper Dockerfile and Remove Entrypoint Script
- Removed the entrypoint.sh script from the scraper Dockerfile to streamline the build process.
- Updated the Dockerfile to directly set the ENTRYPOINT to the scraper build executable, simplifying the container startup.
- This change enhances maintainability by reducing the number of files and improving clarity in the Docker configuration.
2025-11-23 14:20:01 +03:30
Nima Nakhostin 10fd53af41 Refactor Scraper Configuration and Command Line Handling
- Removed command line flag parsing for date range scraping in the scraper's main function.
- Introduced configuration fields for one-time scraping and date range (FromDate, ToDate) in the ScraperConfig struct.
- Updated the main function to utilize the new configuration fields, improving the clarity and maintainability of the scraping logic.
- This change enhances the scraper's functionality by centralizing configuration management and reducing command line complexity.
2025-11-23 14:17:45 +03:30
Nima Nakhostin afb32a9fa3 Enhance CMS Entity with JSON Tags
- Added JSON tags to all fields in the CMS entity and its related sections (heroSection, chartSection, cardSection, contactSection, footerSection) to ensure proper serialization and deserialization in API responses.
- This change improves the API's usability by providing clear JSON representations of the CMS data structure.
2025-11-23 14:07:10 +03:30
Nima Nakhostin f1bdacdc98 Refactor Scraper Dockerfile and Add Entrypoint Script
- Replaced inline entrypoint script creation in the Dockerfile with a separate entrypoint.sh file for better maintainability and clarity.
- The new entrypoint script handles one-time scraping with date range support, improving the scraper's functionality and usability.
2025-11-23 13:48:27 +03:30
Nima Nakhostin 1f6d3fd1cb Enhance Scraper Dockerfile and Notice Entity
- Added an entrypoint script to the scraper Dockerfile to handle one-time scraping with date range support.
- Introduced a new ContentXML field in the Notice entity to store XML content, improving data structure for notices.
- Updated the scraper logic to map XML content to the tender entity, enhancing data processing capabilities.
2025-11-23 13:27:04 +03:30
m.nazemi 61a4465f50 Merge pull request 'added UUID to card and form field' (#6) from TM-290 into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_back/pulls/6
2025-11-15 10:52:36 +03:30
Mazyar ba06595ab0 added UUID to card and form field 2025-11-15 10:51:04 +03:30
Nima Nakhostin a3472f432d Fix Middleware Usage in CMS Routes
- Corrected the middleware usage in the CMS routes by ensuring the AuthMiddleware is applied correctly.
- This change enhances the security of the CMS endpoints by enforcing authentication for all CMS-related operations.
2025-11-09 10:28:09 +03:30
Nima Nakhostin 265ea4a7c6 Enhance Swagger Documentation for CMS API
- Updated Swagger documentation to include new fields: CompanyName, Country, and Language, improving clarity and usability for API consumers.
- Added a new Type field with enumerations for Company and Organization, enhancing data categorization in the CMS API.
- Reflected changes in the definitions for CMS entities, ensuring accurate representation of the API structure and expected inputs/outputs.
- Improved examples in the documentation to provide better guidance for developers integrating with the CMS API.
2025-11-09 10:21:41 +03:30
Nima Nakhostin a363078d6f Enhance CMS Entity and Forms with Type Field
- Added a new Type field to the CMS entity to differentiate between Company and Organization types, improving data categorization.
- Updated the CMSForm to include validation for the Type field, ensuring proper input handling.
- Modified the ToResponse method to include the Type field in the CMSResponse, enhancing the API response structure.
- Adjusted the copyFormToEntity method in the CMS service to handle the new Type field, maintaining data integrity based on the selected type.
- Enhanced Swagger documentation to reflect the changes in the CMS API, providing clear examples for the new Type field.
2025-11-09 10:21:25 +03:30
Nima Nakhostin 1a56070556 Add MinIO Package for Object Storage Management
- Introduced a comprehensive MinIO package for managing object storage, including support for hierarchical document storage and general file management.
- Implemented core components such as Config, ConnectionManager, and Service, following Clean Architecture principles.
- Added functionality for file uploads, downloads, bucket management, and structured logging, enhancing usability and maintainability.
- Included detailed error handling and validation for configuration and operations, ensuring robustness.
- Updated documentation with usage examples and configuration guidelines to facilitate integration and understanding of the package's functionality.
2025-11-09 09:52:09 +03:30
Nima Nakhostin 9fe86d4f8e Update CMS Entity and Forms to Include New Fields
- Added new fields to the CMS entity: CompanyName, Country, and Language, enhancing the data structure for better content management.
- Updated the CMSForm to include validation and examples for the new fields, ensuring proper input handling.
- Modified the copyFormToEntity method in the CMS service to map the new fields from the form to the entity, maintaining data integrity.
- Enhanced Swagger documentation to reflect the changes in the CMS API, providing clear examples for the new fields.
2025-11-09 09:24:23 +03:30
n.nakhostin 7fc6568d02 Implement Tender ID and Project Name Generation in Notice Worker
- Refactored the NoticeWorker to generate unique tender IDs using the PBL naming convention (SCDYYNNN format) and project names based on client and opportunity details.
- Introduced methods for generating tender IDs and project names, including logic for extracting client and opportunity names, ensuring consistency and clarity in naming.
- Updated the Tender entity to include a new ProjectName field, enhancing the data structure for better project identification.
- Added MongoDB indexing for the new project_name field to optimize query performance.
- Improved error handling and logging during the tender ID generation process, ensuring robustness in the worker's functionality.
2025-11-04 17:17:46 +03:30
n.nakhostin 08116981f4 Enhance Scraper with One-Time Date Range Functionality
- Added command line flags for specifying a date range and a one-time scraping mode in the scraper's main function.
- Implemented validation for the date inputs to ensure both dates are provided and correctly formatted.
- Introduced a new RunOneTimeScraping function to handle the one-time scraping logic, including context management and error handling.
- Updated the TED scraper initialization to support both scheduled and one-time scraping modes, improving flexibility in data retrieval.
- Enhanced logging to provide clear feedback on the scraping process and any errors encountered.
2025-11-04 16:53:31 +03:30
n.nakhostin fafccd0d74 Refactor Worker Initialization to Integrate GLM SDK
- Updated the worker initialization process to include the new GLM SDK, enhancing the worker's capabilities for translation tasks.
- Modified the InitWorker function and NewNoticeWorker constructor to accept the GLM service, ensuring a cohesive integration.
- Implemented the GLM service initialization and logging for successful setup, improving maintainability and usability.
- Updated the NoticeWorker to utilize the GLM SDK for translating notice titles and descriptions, enhancing functionality and user experience.
2025-11-04 16:51:45 +03:30