Commit graph

51 commits

Author SHA1 Message Date
08212355eb feat: enhance curl command in Check Annunci and Update scripts for better error visibility 2026-01-13 11:14:39 +01:00
19b4693512 feat: enhance error handling in MiogestHandler and add Check Annunci script 2026-01-13 11:08:38 +01:00
cb07f1dca8 dbg 2026-01-13 10:53:27 +01:00
d3b9174ab8 feat: comment out logging statements in image and video processing functions for cleaner output 2026-01-12 10:37:58 +01:00
3de192636b feat: update GetAnnunciFromMiogest with improved error handling and validation; add curl installation in Dockerfile; implement checkAnnunci procedure for active announcements notification 2026-01-12 10:05:42 +01:00
352c31d03a fix: increase base delay for retries in GetAnnunciFromMiogest to improve stability 2026-01-08 09:29:52 +01:00
10c7581d2d feat: add logging for empty media processing in image, video, and database operations 2026-01-08 09:29:25 +01:00
e499923fcb fix: update Dockerfile to copy files from the current directory instead of the builder stage 2026-01-07 13:26:00 +01:00
991367be56 Refactor code structure for improved readability and maintainability 2026-01-07 12:26:56 +01:00
cd2c96ad58 refactor: update go.mod and go.sum to remove unused dependencies and add virtualterm module 2025-12-16 18:38:34 +01:00
91b1f361de refactor: enhance date parsing logic and improve test coverage for ParseDettaglio function 2025-12-16 13:28:57 +01:00
4c4397d0ee refactor: remove debug print statements for Mq parsing 2025-11-25 12:15:08 +01:00
0ecd7ce30d refactor: change 'mq' type from string to float64 and update related parsing logic 2025-11-25 12:05:14 +01:00
40bd07ded3 refactor: enable logging in database handler and improve image/video processing feedback 2025-11-18 18:22:47 +01:00
3a51275c9f refactor: remove debug print statements from CodiciToProcessVideos function 2025-11-18 17:14:25 +01:00
1c4471a327 refactor: enhance video processing logic to include additional checks and logging for better debugging 2025-11-18 16:36:08 +01:00
f4262b8711 feat: Refactor video handling in announcements
- Updated the announcement detail component to directly use images and videos from the data structure.
- Changed the form edit component to accommodate the new media structure, replacing AnnunciWithImages with AnnunciWithMedia.
- Modified the announcements list to initialize videos as an empty array.
- Enhanced the announcement view to handle external videos and updated the footer to display them correctly.
- Introduced a new utility function to generate YouTube embed URLs.
- Updated the database schema to replace url_video with external_videos and added a new videos_refs table for video management.
- Implemented video processing logic, including downloading, transcoding, and thumbnail generation.
- Added migration scripts for the new videos_refs table and updated existing references in the database.
2025-11-18 15:20:14 +01:00
23525d8f14 feat: add AdminLavoraConferma and AdminContratto components for managing service confirmations and contracts
- Implemented AdminLavoraConferma component to handle confirmation processes with document management.
- Added AdminContratto component for managing rental contracts and related documents.
- Introduced shared components for document selection and display (DocInfo and DocCombo).
- Enhanced storage controller with a new function to retrieve storage ID from user storage ID.
- Updated database interactions to improve error handling and data retrieval.
2025-11-06 17:03:42 +01:00
527a7d7f57 Refactor GetAnnunciParsed and ParseAnnunci to include forceImages parameter for improved image processing control 2025-10-29 12:27:52 +01:00
a7e9f1d8ff refactor: update storage configuration to use environment variables 2025-10-29 10:08:37 +01:00
f3c4f231a9 refactor: remove ASPNETCORE_PORT configuration from server settings 2025-10-29 09:24:49 +01:00
c389a58832 refactor: remove MinIO configuration arguments from Dockerfile 2025-10-29 09:24:15 +01:00
020b13db0b feat: add storage token configuration and update storage request URLs 2025-10-29 09:23:13 +01:00
208deeac28 Refactor image handling in announcement components
- Updated CardAnnuncio and related components to use a new images structure instead of url_immagini.
- Removed references to url_immagini and replaced them with images array containing img and thumb properties.
- Adjusted API responses to include images in the new format.
- Modified middleware and storage service to accommodate new image handling.
- Cleaned up unused code and schemas related to old image references.
- Updated Docker configuration for storage service.
2025-10-27 17:58:42 +01:00
5ea42bb24b upd 2025-10-23 15:16:42 +02:00
8fe0b6636d Refactor TypeScript schemas and enums for consistency and readability
- Updated enum definitions in PaymentStatusEnum and TipologiaPosizioneEnum to use single quotes and consistent formatting.
- Refactored Payments, Prezziario, Ratelimiter, Servizio, and other schema files to ensure consistent indentation and formatting.
- Added `updated_at` field to various queries in interests and servizio controllers.
- Removed unused imageCache utility file.
2025-10-21 18:42:03 +02:00
8b2de9472e feat: update GetAnnuncioParsed and ParseAnnunci methods for improved filtering and error handling 2025-10-15 14:52:30 +02:00
4524f1b4bc feat: refactor image handling and parsing logic, improve utility functions, and enhance route management 2025-10-15 14:27:06 +02:00
ada7f0b7e0 feat: update Docker configuration and add nginx setup for reverse proxy 2025-10-10 15:11:09 +02:00
ae6fb3a27b feat: implement email parsing and validation in parser package 2025-09-03 10:02:04 +02:00
9c47d57969 feat: update AnnunciInsert to set homepage and stato fields to false 2025-08-29 16:36:23 +02:00
7812e97131 date format 2025-08-29 10:16:49 +02:00
750ec05a1e Add .dockerignore files and remove migration.sql
- Created a new .dockerignore file in the apps/db directory to exclude unnecessary files from Docker builds.
- Deleted the migration.sql file from the apps/db directory as it is no longer needed.
- Updated the .dockerignore file in the apps/infoalloggi directory to include additional files and directories to be ignored during Docker builds.
2025-08-28 14:58:43 +02:00
9fb9623671 fix: update data extraction and parsing for availability, permanence, and people in Annuncio 2025-08-27 17:03:57 +02:00
1ac2d4b3ab Refactor storage handlers to use centralized configuration
- Updated `fs.go` and `minio.go` to replace hardcoded storage paths with values from the new config package.
- Introduced a new `config` package to manage application configuration, including database and storage settings.
- Removed the `models.go` file from `typedefs` as it was no longer needed.
- Added a new `config.go` file to handle loading environment variables and application settings.
- Created a new `types.go` file in `typedefs` to define storage strategies.
- Updated `storage_handler.go` to utilize the new configuration structure.
2025-08-22 12:57:33 +02:00
2725098203 Refactor database handling and queries
- Updated DbHandler to accept configuration parameters instead of using environment variables directly.
- Moved database queries from handler.go to a dedicated queries package for better organization and separation of concerns.
- Implemented error handling in query functions to provide more informative error messages.
- Refactored image handling to utilize the new queries package for database interactions.
- Cleaned up unused code and comments across various files.
- Improved overall code readability and maintainability.
2025-08-22 10:11:07 +02:00
080002f4ae feat: add DbHandler and helpers for database operations with logging and utility functions 2025-08-21 13:54:15 +02:00
0837f447fc Refactor parser functionality: move ParseDettaglio and related tests to new parser package; remove unused utils functions 2025-08-21 13:53:55 +02:00
3b3d2e51ce feat: add utility functions for string manipulation, XML fetching, and directory handling 2025-08-21 13:53:38 +02:00
3e854270f0 feat: update type references to use typedefs in multiple files 2025-08-21 12:46:02 +02:00
2ef3c38c8a feat: refactor MiogestHandler to use typedefs and add ParseDettaglio function with tests 2025-08-21 12:45:53 +02:00
d4690ed653 Refactor test script to use echo for testing success instead of ping 2025-08-18 10:29:11 +02:00
24a5749272 Update scripts to use /bin/sh and ensure executable permissions 2025-08-18 10:22:02 +02:00
d471fe0f02 Add script files to Docker image 2025-08-18 09:55:51 +02:00
a7fdb2227a Add scripts for cleaning expired storage and updating jobs 2025-08-18 09:54:38 +02:00
3c63aa0eb8 Add og_url handling in InsertAnnunciInDB and extractData_update for improved Open Graph support 2025-08-08 11:25:55 +02:00
c0bf6f5156 Add Og_url field to AnnuncioParsed and AnnunciDB for improved image handling 2025-08-08 11:15:40 +02:00
9ed9a4c39e fix: update Dockerfile to use golang:1.24-bullseye base image 2025-08-07 17:24:33 +02:00
46e58c6b26 Update dependencies in go.mod and go.sum to latest versions 2025-08-05 10:06:17 +02:00
edd57928c7 Remove sysctl settings from keydb service in docker-compose.yml and add TELEFONO field to user seed data in 3_seed_user.sql 2025-08-04 18:40:39 +02:00