Commit Graph

59 Commits

Author SHA1 Message Date
juanjo
a8dbb62b09 fix: serializar dates/Decimal en LogService con DjangoJSONEncoder
Some checks are pending
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
DEPLOY_MULTI_BRACH/pipeline/pr-dev Build queued...
- Añadir _json_safe() que usa DjangoJSONEncoder para convertir objetos
  no serializables (datetime.date, Decimal, UUID...) antes de guardar
  en JSONField, evitando que response quede vacío silenciosamente
- Corregir condición status_code: usar 'is not None' para permitir status=0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 17:28:48 +02:00
juanjo
e908125d31 fix: corregir ruta de data/ y hacer LogService resiliente a fallos de BD
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- Mover data/.gitkeep a app/data/.gitkeep (Django busca app/data/db.sqlite3,
  no data/db.sqlite3 en la raíz del repo, porque BASE_DIR apunta a app/)
- Actualizar .gitignore para ignorar también app/data/*
- LogService.gestionar_log ahora captura excepciones internamente para que
  un fallo de BD no rompa la petición (log omitido con WARNING, no 500)
- Mover import de Log dentro del método para evitar problemas de arranque

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 17:07:23 +02:00
juanjo
2f6564d9a6 feat: añadir app general con LogService centralizado
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/pr-dev This commit looks good
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- Crear app/general con estructura estándar del proyecto:
  · utilidades/acciones.py → LogService.gestionar_log() (única fuente de logs)
  · utilidades/utils.py → get_client_ip()
  · utilidades/custom_errors.py → ValidationError, ExternalServiceError, NotFoundError
  · exception.py, request.py, serializers.py, validaciones/
- Registrar 'general' en INSTALLED_APPS y añadir general/ a urls.py
- Refactorizar promociones/views.py para usar LogService en lugar de Log directo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 16:50:53 +02:00
juanjo
91fc6900eb refactor: mover BD SQLite a carpeta data/
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- Mover db.sqlite3 de raíz a data/db.sqlite3
- Actualizar settings.py: fallback SQLite a data/ cuando DB_HOST no está definido
- Actualizar .gitignore: ignorar data/* pero mantener data/.gitkeep
- Actualizar init_db.py: mensaje apunta a data/db.sqlite3
- Añadir data/.gitkeep para anclar la carpeta en git

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 16:33:26 +02:00
juanjo
9fba8938ee fix: corregir name en common/apps.py de 'apps.common' a 'common'
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 16:12:40 +02:00
juanjo
299428741b refactor: reorganizar estructura del proyecto al estándar app/api_config
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
- core/ → app/api_config/
- apps/backend_admin/ → app/backend_admin/
- apps/common/ → app/common/
- apps/promociones/ → app/promociones/
- manage.py → app/manage.py
- Añadir app/requirements.txt
- Actualizar todos los imports y referencias (DJANGO_SETTINGS_MODULE, ROOT_URLCONF, WSGI_APPLICATION, INSTALLED_APPS)
- Actualizar Dockerfile con nuevo WORKDIR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 16:01:17 +02:00
juanjo
27ccce862d Renombrar actions.py a acciones.py en backend_admin y promociones
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
DEPLOY_MULTI_BRACH/pipeline/pr-dev This commit looks good
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 15:42:21 +02:00
minguezsanzjuanjose
84baf8fbda Update 0001_initial.py
Some checks are pending
DEPLOY_MULTI_BRACH/pipeline/pr-dev Build queued...
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-15 01:16:07 +02:00
minguezsanzjuanjose
5d69f89028 fix
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-15 01:01:46 +02:00
minguezsanzjuanjose
4a4d0940b3 Update Jenkinsfile
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 23:47:24 +02:00
minguezsanzjuanjose
c32092d216 Update settings.py
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 23:24:27 +02:00
minguezsanzjuanjose
7ba79c9739 Delete 0002_alter_log_options.py
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 23:02:45 +02:00
minguezsanzjuanjose
bf5a38d425 cambios en migraciones
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 22:46:18 +02:00
minguezsanzjuanjose
039349b5b1 feat: integración final de Jenkins con inyección de .env segura
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 21:30:19 +02:00
minguezsanzjuanjose
9dd97b34f2 fix
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-14 01:00:37 +02:00
juanjo
3da81a9495 fix admin status
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 22:56:35 +02:00
juanjo
e5908b1880 endpoint de status
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 22:38:49 +02:00
juanjo
1bf3337616 Update .gitignore
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 22:12:35 +02:00
juanjo
6fb3afa472 fix para ficheros que no se suben
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 22:11:51 +02:00
minguezsanzjuanjose
102d7c6bfa fix
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 16:02:58 +02:00
minguezsanzjuanjose
ac6e336772 ignore
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 15:38:01 +02:00
minguezsanzjuanjose
e486a0f556 Update Jenkinsfile
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 14:08:36 +02:00
minguezsanzjuanjose
0971134702 Update docker-compose.yml
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:51:32 +02:00
minguezsanzjuanjose
02bc67c5fd Update docker-compose.yml
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:49:56 +02:00
minguezsanzjuanjose
02feaf445d Update .env
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:46:31 +02:00
minguezsanzjuanjose
c8aa23b564 fix
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:43:02 +02:00
minguezsanzjuanjose
0ce0554443 Update docker-compose.yml
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:39:31 +02:00
minguezsanzjuanjose
375291514e fix
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:36:59 +02:00
minguezsanzjuanjose
c9c54e6671 Update Jenkinsfile
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-12 04:20:03 +02:00
minguezsanzjuanjose
9804712643 Update README.md
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
2026-04-11 23:18:34 +02:00
minguezsanzjuanjose
603df88419 Update README.md 2026-04-11 23:00:37 +02:00
minguezsanzjuanjose
8ca0abc273 Update README.md 2026-04-11 22:48:23 +02:00
minguezsanzjuanjose
5287863c91 subimos predev cambios 2026-04-11 22:20:06 +02:00
minguezsanzjuanjose
508bc41b1c Update README.md 2026-04-11 22:07:53 +02:00
minguezsanzjuanjose
199c0be297 actions y ip allowed en settings 2026-04-11 19:41:58 +02:00
minguezsanzjuanjose
ef42701a92 creacion de modelos 2026-04-11 19:35:26 +02:00
juanjo
f003137cd8 Update settings.py 2026-04-11 19:11:54 +02:00
juanjo
7e1755ded0 fix 2 2026-04-11 19:07:22 +02:00
juanjo
781bb216a3 Update docker-compose.yml 2026-04-11 18:56:35 +02:00
juanjo
85246b6bbd Update docker-compose.yml 2026-04-11 18:46:15 +02:00
juanjo
cc358deff6 Update docker-compose.yml 2026-04-11 18:34:50 +02:00
juanjo
9d3fc27e70 Update Jenkinsfile 2026-04-11 18:18:43 +02:00
juanjo
97017df547 Update Jenkinsfile 2026-04-11 18:10:25 +02:00
juanjo
ae00212f36 Update README.md 2026-04-11 16:52:55 +02:00
juanjo
5598d843a0 Update Jenkinsfile 2026-04-11 16:45:46 +02:00
juanjo
947823a22d Update Jenkinsfile 2026-04-11 15:19:48 +02:00
juanjo
cc64ad9cf6 Update Jenkinsfile 2026-04-11 15:09:38 +02:00
juanjo
506df66118 Update Jenkinsfile 2026-04-11 15:03:38 +02:00
juanjo
533f76f68a fix deployments 2026-04-11 14:53:34 +02:00
juanjo
fe56843a98 Update README.md 2026-04-11 14:41:03 +02:00