Commit Graph

1422 Commits

Author SHA1 Message Date
7caed1b875 Update Jenkinsfile to specify 'Built-In Node' as the agent label, enhancing clarity in the pipeline configuration. 2026-03-31 18:28:57 -05:00
943c248750 Add preflight checks in Jenkinsfile to ensure Docker is installed on the agent before proceeding with the pipeline, improving error handling and setup validation. 2026-03-31 18:27:41 -05:00
c45f97d480 Refactor Jenkinsfile to utilize Docker for Python environment setup during backend testing, enhancing consistency and isolation of dependencies. 2026-03-31 18:21:27 -05:00
d84d081f3e Enhance backend testing in Jenkinsfile by adding Docker container setup for PostgreSQL, improving error handling, and updating environment variable management. 2026-03-31 18:19:48 -05:00
0d249b526c Update Jenkinsfile to change Git repository URL and credentials for deployment 2026-03-31 18:12:32 -05:00
44b1f4b033 Add VERSION_MAYOR parameter to Jenkinsfile and update APP_VERSION calculation 2026-03-31 18:11:15 -05:00
4edeaa3273 Implement sorting mechanism for tables to enhance data organization and user experience. 2026-03-31 18:09:58 -05:00
a297592d84 Correcion del CRUD 2026-03-31 10:57:51 -05:00
6dea5b4a23 Merge branch 'development' into current branch and resolve modify/delete conflict in items-tab-form.svelte 2026-03-31 10:14:59 -05:00
6e39b5537a Parametros generales agregados 2026-03-31 10:07:22 -05:00
4541629b3f Parametros generales SCAII, con endpint y con la mayoria de pestanias hechas y funcionalaes 2026-03-30 13:05:21 -05:00
61633fd969 Merge pull request 'feature/columnas_ordenamiento' (#259) from feature/columnas_ordenamiento into development
Reviewed-on: ADUANASOFT/anexo76#259
2026-03-30 14:50:10 +00:00
48ee82761e Merge pull request 'correcion de saldos temporales' (#258) from fix/saldos_temporales_procesadas into development
Reviewed-on: ADUANASOFT/anexo76#258
2026-03-30 14:49:04 +00:00
a08a62bc31 feature/alineacion-validaciones-carga-csv-con-manual-invoices 2026-03-27 14:57:38 -06:00
7a029307a8 feature/validaciones-invoices-transortes 2026-03-27 12:56:47 -06:00
b477233245 feature/migraciones-id-transportes 2026-03-27 09:32:59 -06:00
183a6f3348 correcion de saldos temporales 2026-03-27 09:50:47 -05:00
dd4eec56f8 Limpieza y correcion de warnings en ultimos cambios 2026-03-27 09:15:58 -05:00
d93c4c6b7b Mecanismo sort para tablas 2026-03-27 08:45:51 -05:00
9255dbc6b2 Se arreglo los filtros de facturas 2026-03-26 09:07:28 -05:00
d35f02563a Merge pull request 'feature/table-celery-tasks' (#257) from feature/table-celery-tasks into development
Reviewed-on: ADUANASOFT/anexo76#257
2026-03-25 14:06:24 +00:00
26977b881a Merge branch 'development' into feature/table-celery-tasks 2026-03-25 07:15:31 -06:00
85247e2713 fix/quitar-dato-empresa 2026-03-25 07:12:22 -06:00
ebc4dff264 Merge pull request 'Enhance invoice validation logic to support existing invoices' (#255) from fix/currency-invoices into development
Reviewed-on: ADUANASOFT/anexo76#255
2026-03-24 23:53:30 +00:00
a6c5abbe4c Enhance invoice validation logic to support existing invoices
- Updated the `validate_common` function to accept an optional `existing_invoice` parameter, allowing for more robust validation when updating invoices.
- Introduced a new helper function, `_normalize_invoice_currency_value`, to standardize currency code handling.
- Adjusted currency validation logic to ensure proper handling of existing invoice data, preventing changes to currency types when associated line items exist.
- Modified the `validate_update` functions in both imports and exports to pass the `existing_invoice` parameter, ensuring consistent validation across different update scenarios.
2026-03-24 18:52:53 -05:00
cb36120d09 Merge pull request 'ci-cd/migrations' (#254) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#254
2026-03-24 23:06:11 +00: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
c565696242 feature/limpieza-periodica 2026-03-24 16:58:48 -06: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
65eec3c4d3 feature/table-celery-tasks-resume 2026-03-24 16:17:13 -06:00
219d70d630 Merge pull request 'ci-cd/migrations' (#253) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#253
2026-03-24 20:42:49 +00:00
1150b59dcf Update example for TEST_DATABASE_URL in CI workflow
- Modified the error message in the build workflow to clarify the expected format for the TEST_DATABASE_URL, specifying the use of a real IP address instead of the placeholder "host".
- This change enhances the guidance provided to users, ensuring correct configuration for database connections in testing scenarios.
2026-03-24 15:42:22 -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
76c81a57ee Merge pull request 'Enhance database URL validation in Alembic environment' (#252) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#252
2026-03-24 20:40:19 +00:00
2cd6b165d7 Enhance database URL validation in Alembic environment
- Introduced a new validation function for SQLAlchemy URLs to ensure proper formatting and provide clearer error messages.
- Updated the `get_database_url` function to include checks for both `TEST_DATABASE_URL` and `DATABASE_URL`, improving flexibility in configuration.
- Removed the previous URL scheme validation in favor of the new validation method, streamlining the error handling process.

These changes aim to improve the robustness and clarity of database connection handling in the application.
2026-03-24 15:39:53 -05:00
9408300dc0 Merge pull request 'Add TEST_DATABASE_URL to configuration settings' (#251) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#251
2026-03-24 20:36:11 +00:00
18e4477bf1 Add TEST_DATABASE_URL to configuration settings
- Introduced a new configuration variable, TEST_DATABASE_URL, to specify the test database connection string.
- This addition enhances the flexibility of database handling, particularly for testing scenarios, aligning with recent improvements in database URL management.
2026-03-24 15:35:13 -05:00
10461afd6e Merge pull request 'Enhance database URL handling in Alembic environment' (#250) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#250
2026-03-24 20:33:15 +00:00
a3ba317d2c Enhance database URL handling in Alembic environment
- Added a new helper function to strip unwanted characters from environment variable URLs, improving the normalization process.
- Updated the `get_database_url` function to validate the database URL scheme and provide clearer error messages for misconfigurations.
- Expanded the environment variable checks to include `DATABASE_URL`, enhancing flexibility for different deployment scenarios.

These changes aim to improve the robustness and clarity of database connection handling in the application.
2026-03-24 15:32:49 -05:00
ba738c35f6 Merge pull request 'Refactor database URL handling in Alembic environment' (#249) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#249
2026-03-24 20:29:07 +00:00
4b2a3da611 Refactor database URL handling in Alembic environment
- Introduced a new function to normalize database URLs for Alembic, ensuring compatibility with different PostgreSQL drivers.
- Updated the `get_database_url` function to prioritize the use of the `TEST_DATABASE_URL` environment variable for CI and testing scenarios.
- Enhanced error messaging to clarify configuration requirements for database connections.

This change aims to improve the flexibility and reliability of database connections in the testing environment.
2026-03-24 15:28:41 -05:00
0c194697be Merge pull request 'Update CI workflow to include database migration before running tests' (#248) from ci-cd/migrations into development
Reviewed-on: ADUANASOFT/anexo76#248
2026-03-24 20:21:41 +00:00
3ba9359881 Update CI workflow to include database migration before running tests
- Added an environment variable for the test database URL and executed an Alembic migration to ensure the database schema is up-to-date prior to running tests.
- This change aims to improve the reliability of test execution by ensuring the correct database state.
2026-03-24 15:20:08 -05:00
481b295ab0 Merge pull request 'feature/table-celery-tasks' (#247) from feature/table-celery-tasks into development
Reviewed-on: ADUANASOFT/anexo76#247
2026-03-24 19:16:49 +00: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
bf8062acea Merge pull request 'Add detailed test flow documentation to backend tests README' (#246) from feature/testing into development
Reviewed-on: ADUANASOFT/anexo76#246
2026-03-24 17:58:23 +00: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
7ce3bdfcee Merge pull request 'Enhance test output verbosity in CI workflow' (#245) from feature/testing into development
Reviewed-on: ADUANASOFT/anexo76#245
2026-03-24 17:45:29 +00:00
939053aea9 Enhance test output verbosity in CI workflow
- Updated the pytest command in the CI workflow to include additional flags for verbose output, allowing for more detailed test results and easier debugging.
- This change improves the visibility of test execution details, aiding in the identification of issues during the CI process.
2026-03-24 12:44:28 -05:00