Commit Graph

91 Commits

Author SHA1 Message Date
99a6daa160 fix/head-alembic 2026-05-12 09:31:37 -06:00
26f9675557 Merge branch 'development' into feature/alembic-daf 2026-05-12 09:23:19 -06:00
ee9ac4f64f feature/alembic-daf 2026-05-12 09:00:32 -06:00
96fd14582d fix: update down_revision for workspace profile fields migration 2026-05-08 17:37:27 -05:00
fb89ed0569 Merge pull request 'feat: enhance user avatar handling and synchronization with Workspace' (#381) from feature/profile-photo into development
Reviewed-on: ADUANASOFT/anexo76#381
2026-05-08 22:34:06 +00:00
1dbc75107f feat: enhance user avatar handling and synchronization with Workspace
- Updated sidebar component to merge user data from Keycloak and Workspace, including avatar URLs.
- Refactored nav-user component to utilize new avatar resolution logic and display user information more effectively.
- Introduced a new utility function to resolve user avatar URLs, prioritizing Workspace avatars.
- Implemented backend changes to support synchronization of user profile data, including avatar URLs from Workspace.
- Added database migration to include new fields for Workspace profile synchronization in user_tenants.
- Created a new client for fetching user profiles from Workspace.
- Updated dashboard components to reflect changes in user data structure and avatar handling.
- Removed avatar upload functionality from the profile update process, relying on Workspace for avatar management.
- Added tests for avatar resolution logic to ensure correct prioritization of avatar sources.
2026-05-08 17:03:29 -05:00
33dfb15277 fix/alembic-fix-head 2026-05-08 08:49:06 -06:00
5e5eb94916 Merge branch 'development' into feature/transportista-completar-modelo 2026-05-08 08:44:01 -06:00
f15b803c1e feature/transportista-completar-modelo 2026-05-08 08:43:10 -06:00
9fe307bd74 feat: remove hub_invite_token migration from invite_tokens 2026-05-08 08:44:48 -05:00
52fec4038e feat: implement lazy-link for pending invites and add hub_invite_token to InviteToken model
Co-authored-by: Copilot <copilot@github.com>
2026-05-07 12:41:12 -05:00
1f2f8d1f83 feat: implement user invitation system
- Add InviteToken model and Alembic migration (core.invite_tokens)
- Add invites module: DTOs, service (create/validate/consume), routes
- Register invites router in core router
- Extend auth register endpoint to support invite_token flow:
  - Validate local token, create user via Hub admin API (service account),
    handle existing user (link instead of duplicate), create UserTenant, consume token
- Add GET /auth/register/check endpoint to validate token without consuming
- Add HUB_ADMIN_EMAIL, HUB_ADMIN_PASSWORD, APP_PUBLIC_URL to config
- Frontend: add invite() method and types to users.ts API client
- Frontend: add invite dialog with real roles dropdown to users page
- Frontend: update register page to handle invite flow and user-exists case
2026-05-06 16:57:29 -05:00
5dd65df3e8 feat: add first_name and last_name fields to UserTenant model and sync with Keycloak
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 12:09:04 -05:00
4c0fa607dc refactor: update alembic migrations and import models
- Added import for `alta_log_models` to `env.py` for autogeneration of tables outside of `models.py`.
- Deleted several obsolete migration files, including those related to classification descriptions, initial data seeding, and legacy fields in the company certification schema.
- Cleaned up migration history by removing unused migration scripts to streamline future updates.
2026-05-01 22:10:21 -05:00
0c4f54b2c0 fix: update VARCHAR lengths to prevent truncation errors in audit_log and discharges 2026-04-30 11:09:07 -05:00
6392a3dba8 fix: remove obsolete revision reference from alembic merge script 2026-04-30 10:13:06 -05:00
da7419e25e feat: add alembic migration script to merge multiple heads for deployment 2026-04-30 09:47:40 -05:00
f225731625 feat: increase character limit for who_processed and capture_user fields in InvoiceHeader to 100 2026-04-30 09:22:44 -05:00
07ba33a4d9 feature/doda-endpoints-faltantes 2026-04-28 14:53:08 -06:00
52ad58aceb feature/cliente-asignado-partes 2026-04-28 12:01:50 -06:00
c8e45f5ce2 chore: resolve second wave of merge conflicts, integrate new DODA despacho module and stabilize catalogues 2026-04-27 13:43:51 -05:00
8374975a30 chore: resolve remaining merge conflicts in data-table-actions components 2026-04-27 13:39:04 -05:00
4d873f392e fix/alembic-duration-cert-delete 2026-04-27 10:31:33 -06:00
5c2a84e95d fix: solución de bloqueos y estandarización de permisos 2026-04-27 10:47:30 -05:00
9d232998d6 feature/api-doda 2026-04-26 18:13:20 -06:00
d78d8f3599 Merge branch 'fix/empresa-cert-duracion' into feature/api-doda 2026-04-26 08:36:55 -06:00
855afe6670 fix/empresa-cert-duracion 2026-04-26 08:24:57 -06:00
73a6d92863 Implement row-level security (RLS) context management for database sessions. Refactor invoice processing and reverting tasks to utilize scoped database sessions with RLS context. Update middleware to extract and set company ID from requests. Enhance task dispatching to propagate RLS context via Celery headers. Update architecture documentation to reflect RLS implementation details. 2026-04-24 18:01:46 -05:00
a9523853c9 Merge pull request 'feature/carril-expres-transportes' (#315) from feature/carril-expres-transportes into development
Reviewed-on: ADUANASOFT/anexo76#315
2026-04-24 21:49:44 +00:00
9d63b000bc Refactor Docker entrypoints and remove unused scripts
- Removed custom entrypoint scripts for backend, frontend, and PostgreSQL services from docker-compose files.
- Added a new entrypoint script in the backend and frontend Dockerfiles to handle initialization without relying on host-mounted scripts.
- Updated Dockerfiles to ensure proper permissions for the new entrypoint scripts.
- Enhanced database initialization logic by moving schema and extension creation to the Alembic migration script.
2026-04-24 12:53:11 -05:00
38d10e6f51 feature/carril-expres-transportes 2026-04-24 09:18:41 -06:00
29c305cd2c feaature/catalogo-empresa-mejoras 2026-04-23 14:28:56 -06:00
ff1ff30e23 fix/conceptos-catalogo-general 2026-04-22 07:44:07 -06:00
1cd81ebc03 feature/digitalizacion-api 2026-04-20 15:13:48 -06:00
129608bb31 feature/digitalizacion-api 2026-04-17 15:59:47 -06:00
db46237a3e Poniendo como ultima actulaizacion nuestra migracion 2026-04-07 16:43:13 -05:00
a6e0a04451 Mezlca de migraciones mas recientes 2026-04-07 16:13:01 -05:00
9439a6a775 feature/minio-s3-integration 2026-04-02 13:35:18 -06:00
4541629b3f Parametros generales SCAII, con endpint y con la mayoria de pestanias hechas y funcionalaes 2026-03-30 13:05:21 -05:00
b477233245 feature/migraciones-id-transportes 2026-03-27 09:32:59 -06:00
3d1c73565f fix/un-alembic 2026-03-24 13:15:15 -06:00
b5b99a5ddb feature/tabla-bitacora-logs-task 2026-03-24 13:07:35 -06:00
fbb24f2cd3 Refactor invoice financials to change iva_factor type from string to numeric
- Updated the `iva_factor` field in the `InvoiceFinancials` model to use a numeric type with precision and scale.
- Adjusted related frontend components and API interfaces to reflect the new numeric type for `iva_factor`.
- Enhanced Alembic migration scripts to accommodate the schema changes, ensuring proper index management and data type conversions.

These changes improve data integrity and consistency for financial calculations in invoices.
2026-03-23 09:48:33 -05:00
54c137c156 Refactor invoice processing logic to remove legacy returned quantity fields and enhance data handling
- Updated invoice processing functions to eliminate legacy fields related to returned quantities, now relying on new balance movement and discharge records.
- Adjusted various components and services to reflect changes in quantity handling, including updates to the frontend for displaying used quantities instead of returned ones.
- Improved the logic for invoice total updates and validation processes to ensure consistency with the new data structure.

These changes aim to streamline invoice management and improve data integrity across the application.
2026-03-20 11:42:18 -05:00
37920aa303 se arreglo los furmularios de partes 2026-03-19 12:49:16 -05:00
03f2213729 Update seed_initial_data.py to correct imports and adjust revision identifiers. Replaced sectors seed import with carta_porte_codes seed and updated down_revision and depends_on to reflect the latest migration state. 2026-03-18 16:43:19 -05:00
b0cf46104b Merge branch 'development' of https://git.aduanasoft.com/ADUANASOFT/anexo76 into feature/tablas_nuevas_partes 2026-03-18 11:03:26 -05:00
546b1ea56f Nuevo formulario de extension para partes SCAI con nuevas tablas de aphis con catalogos fijos nuevos 2026-03-18 10:50:36 -05:00
5265ec6849 Merge pull request 'feature/catalogo-pedimento' (#219) from feature/catalogo-pedimento into development
Reviewed-on: ADUANASOFT/anexo76#219
2026-03-18 03:53:00 +00:00
3983c9e4b3 feature/catalogo-pedimento 2026-03-17 16:35:27 -06:00