Commit Graph

20 Commits

Author SHA1 Message Date
da088ef6e6 feature/correccion-de-actualizar 2026-05-08 15:23:45 -06:00
373f5e1198 fix/parentesis 2026-05-06 15:13:12 -06:00
62dded0b61 fix/test-doda-y-s3 2026-05-06 15:09:45 -06:00
daa3a252b9 fix/carga-csv-ergonomia 2026-05-06 14:24:41 -06:00
1d1d4b1619 Merge remote-tracking branch 'origin/development' into feature/hub-integration
# Conflicts:
#	backend/.env.example
#	backend/api/v1/modules/core/auth/service.py
#	backend/api/v1/modules/core/users/service.py
#	backend/core/middleware.py
#	docker-compose.yml
#	frontend/src/lib/auth.ts
#	frontend/src/lib/components/help/HelpDrawer.svelte
#	scripts/backend-entrypoint.sh
2026-04-29 13:11:44 -05:00
07ba33a4d9 feature/doda-endpoints-faltantes 2026-04-28 14:53:08 -06:00
d67d1c5538 feature/sitar-fractions-upgrade 2026-04-28 10:50:58 -06:00
29928ef1f6 Parametro nuevo para aceptar los permisos 2026-04-27 16:22:41 -06:00
94e08eee41 fix/pytest-fix-doda 2026-04-27 12:54:35 -06:00
9d232998d6 feature/api-doda 2026-04-26 18:13:20 -06:00
ca21cdf58d feat: Implement token issue detection and enhance license validation middleware; add tests for token issue message detection 2026-04-26 08:25:53 -05: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
36c2b174ad feature/utf8-normalizado 2026-04-14 09:34:51 -06:00
78c534df10 Add models for transportation in test configuration
Updated the test configuration file to include imports for Trailer, Transporter, and Vehicle models from the transportation module, enhancing the testing capabilities for related functionalities.
2026-04-02 08:32:08 -05:00
28de77e50b Refactor Alembic migration for index management and column type update
- Simplified the index drop and creation logic in the `upgrade` and `downgrade` functions by removing the unnecessary existence check for the `carta_porte_codes` table.
- Updated the `iva_factor` column type in the `invoice_financials` table from VARCHAR to Numeric, enhancing data integrity.
- Improved the overall clarity and efficiency of the migration script.
2026-03-24 18:05:24 -05:00
06b3b20fd8 Refactor test setup to utilize ephemeral tenant IDs
- Introduced a new fixture, `test_tenant`, to allocate ephemeral tenant and company IDs for tests, reducing conflicts with real data.
- Updated various test functions to use the new `test_tenant` fixture, ensuring consistent tenant ID usage across tests.
- Enhanced the `ensure_tenant_company` function to accept dynamic tenant and company IDs, improving flexibility in test scenarios.
- Adjusted database interaction in tests to utilize the ephemeral IDs, streamlining the setup process and enhancing isolation.
2026-03-24 17:24:01 -05:00
309835be8c Enhance SQLAlchemy URL validation in Alembic environment
- Added a new function to reject documentation placeholder hosts in database URLs, improving error handling for misconfigurations.
- Updated the `get_database_url` function to incorporate this new validation, ensuring that users are alerted when using "host" as a placeholder.
- Enhanced error messages to provide clearer guidance on valid host configurations.

These changes aim to improve the robustness and clarity of database connection handling in the application.
2026-03-24 15:41:47 -05:00
0ea17fd091 Add detailed test flow documentation to backend tests README
- Expanded the README.md for backend tests to include a comprehensive overview of the test flow, infrastructure, and edge cases.
- Introduced sections detailing the structure of tests, including integration and unit tests, along with diagrams to illustrate the business flow and common scenarios.
- Enhanced clarity on the setup and execution of tests, including database handling and security measures during testing.
- This update aims to improve understanding and maintainability of the testing framework for future contributors.
2026-03-24 12:58:01 -05:00
c812f5214c Add address handling for ClientProvider in business catalog creation
- Introduced a new helper function `_ensure_client_provider_address` to manage the assignment of addresses for ClientProvider instances.
- Refactored the `create_business_catalogs` function to utilize the new helper, ensuring that existing addresses are reused if available, preventing duplicate entries.
- This change enhances the integrity of address data during business catalog creation by ensuring proper address assignment based on existing records.
2026-03-24 12:42:19 -05:00
b750c35522 Add backend test job to CI workflow
- Introduced a new job in the CI workflow to run backend tests before the build process.
- Configured Python environment and installed dependencies from the backend requirements.
- Added a check for the TEST_DATABASE_URL secret to ensure it is defined before running tests.
- The test job must pass for the build job to execute, enhancing the reliability of the CI pipeline.
2026-03-24 12:33:21 -05:00