#2687 - Travel CloneWithEntries #1887

Merged
jsegarra merged 20 commits from 2687_travel_cloneWithEntries into dev 2024-01-24 10:55:20 +00:00
Member
No description provided.
jsegarra added 5 commits 2023-12-12 06:34:41 +00:00
jsegarra added 3 commits 2023-12-15 06:35:28 +00:00
jsegarra changed title from WIP: #2687 - Travel CloneWithEntries to #2687 - Travel CloneWithEntries 2023-12-15 06:35:43 +00:00
jsegarra requested review from alexm 2023-12-15 06:35:51 +00:00
jsegarra added 1 commit 2023-12-15 06:40:52 +00:00
gitea/salix/pipeline/head This commit looks good Details
98a98e0d9e
refs #2687 perf: remove force test
jsegarra reviewed 2023-12-15 06:43:24 +00:00
@ -0,0 +27,4 @@
DECLARE vEvaNotes VARCHAR(255);
DECLARE vDone BOOL;
DECLARE vAuxEntryFk INT;
DECLARE vTx BOOLEAN DEFAULT !@@in_transaction;
Author
Member

He añadido esta variable

He añadido esta variable
jsegarra reviewed 2023-12-15 06:43:38 +00:00
@ -0,0 +38,4 @@
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
CALL util.tx_rollback(vTx);
Author
Member

He modificado ROLLBACK por esto

He modificado ROLLBACK por esto
jsegarra reviewed 2023-12-15 06:43:54 +00:00
@ -0,0 +42,4 @@
RESIGNAL;
END;
CALL util.tx_start(vTx);
Author
Member

He modificado START TRANSACTION por esto

He modificado START TRANSACTION por esto
jsegarra reviewed 2023-12-15 06:44:05 +00:00
@ -0,0 +80,4 @@
SET @isModeInventory = FALSE;
CLOSE vRsEntry;
CALL util.tx_commit(vTx);
Author
Member

He modificado COMMIT por esto

He modificado COMMIT por esto
jsegarra requested review from juan 2023-12-15 06:44:23 +00:00
alexm approved these changes 2024-01-02 07:37:00 +00:00
Dismissed
@ -0,0 +1,85 @@
DROP PROCEDURE IF EXISTS vn.travel_cloneWithEntries;
Member

Cambiar version

Cambiar version
Author
Member

La versión correcta, sería la 240001 o la 240101?

La versión correcta, sería la 240001 o la 240101?
jsegarra marked this conversation as resolved
jsegarra added 2 commits 2024-01-02 12:01:04 +00:00
jsegarra dismissed alexm’s review 2024-01-02 12:01:04 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

jgallego removed review request for juan 2024-01-19 09:12:24 +00:00
jgallego changed title from #2687 - Travel CloneWithEntries to WIP: #2687 - Travel CloneWithEntries 2024-01-19 09:12:26 +00:00
jgallego requested review from jgallego 2024-01-19 09:12:39 +00:00
jsegarra added 1 commit 2024-01-22 09:01:33 +00:00
gitea/salix/pipeline/head This commit looks good Details
95398485dc
Merge branch 'dev' into 2687_travel_cloneWithEntries
jsegarra added 1 commit 2024-01-22 09:22:55 +00:00
gitea/salix/pipeline/head This commit looks good Details
39453492a0
refs #2687 feat update db/change version
jsegarra changed title from WIP: #2687 - Travel CloneWithEntries to #2687 - Travel CloneWithEntries 2024-01-22 09:25:55 +00:00
jsegarra added 1 commit 2024-01-22 11:08:12 +00:00
gitea/salix/pipeline/head This commit looks good Details
7f43a45955
Merge branch 'dev' into 2687_travel_cloneWithEntries
jgallego requested changes 2024-01-22 11:44:57 +00:00
@ -0,0 +3,4 @@
DELIMITER $$
$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `util`.`tx_rollback`(tx BOOL)
BEGIN
Owner

pon una descripcion en cada uno para que la gente sepa que hace

pon una descripcion en cada uno para que la gente sepa que hace
jsegarra marked this conversation as resolved
jsegarra added 2 commits 2024-01-23 07:35:11 +00:00
jsegarra requested review from jgallego 2024-01-23 07:36:36 +00:00
jgallego requested changes 2024-01-23 09:25:43 +00:00
jgallego left a comment
Owner

@alexm que confirme pero faltaran los grants para que las funciones de util puedan ser ejectuadas por todos

@alexm que confirme pero faltaran los grants para que las funciones de util puedan ser ejectuadas por todos
@ -0,0 +17,4 @@
* @param vTravelFk travel plantilla a clonar
* @param vDateStart fecha del shipment del nuevo travel
* @param vDateEnd fecha del landing del nuevo travel
* @param vWarehouseOutFk fecha del salida del nuevo travel
Owner

no es una fecha, es un almacen

no es una fecha, es un almacen
Author
Member

Corregido fe714aef22
Nota: está también comentado como fecha en el structure.sql

Corregido fe714aef220bff5b10a06631cf131a1e7e5119ac Nota: está también comentado como fecha en el structure.sql
Member

GRANT EXECUTE ON PROCEDURE util.tx_commit TO guest;
GRANT EXECUTE ON PROCEDURE util.tx_rollback TO guest;
GRANT EXECUTE ON PROCEDURE util.tx_start TO guest;

`GRANT EXECUTE ON PROCEDURE util.tx_commit TO guest;` `GRANT EXECUTE ON PROCEDURE util.tx_rollback TO guest;` `GRANT EXECUTE ON PROCEDURE util.tx_start TO guest;`
jsegarra marked this conversation as resolved
@ -0,0 +3,4 @@
DELIMITER $$
$$
/*
Procedimiento para confirmar los cambios asociados a una transacción
Owner

falta *

falta *
Author
Member

Corregido 056dddd212

Corregido 056dddd21229f2c8911c0917555e24bea5a254ad
jsegarra marked this conversation as resolved
jsegarra added 2 commits 2024-01-23 10:23:47 +00:00
jsegarra added 1 commit 2024-01-23 10:53:42 +00:00
gitea/salix/pipeline/head This commit looks good Details
b5d883cdbe
refs #2687 feat: add grant privileges for guest
Author
Member

@alexm @jgallego

Te refieres a ejecutar las líneas de este fichero? b5d883cdbe/db/changes/240601/00-grant_privileges_util_tx.sql

@alexm @jgallego Te refieres a ejecutar las líneas de este fichero? https://gitea.verdnatura.es/verdnatura/salix/src/commit/b5d883cdbeb742187a923ca70ca12f1923cb4714/db/changes/240601/00-grant_privileges_util_tx.sql
jgallego requested changes 2024-01-23 14:41:52 +00:00
@ -0,0 +1,16 @@
DELIMITER $$
$$
/**
Owner

los cambios van dentro del create

los cambios van dentro del create
Author
Member

Exacto.
He cogido un archivo creado por un compañero y he visto otro fallo. Había un salto de línea entre END y

Exacto. He cogido un archivo creado por un compañero y he visto otro fallo. Había un salto de línea entre END y $$
Author
Member

Corregido cddd8f7d94

Corregido cddd8f7d94713f985c624ae9dfa1d839310dacf2
jsegarra marked this conversation as resolved
jsegarra added 1 commit 2024-01-23 15:40:37 +00:00
gitea/salix/pipeline/head This commit looks good Details
cddd8f7d94
refs #2687 perf: improve comments
jsegarra requested review from jgallego 2024-01-23 15:42:30 +00:00
jgallego approved these changes 2024-01-24 05:28:45 +00:00
alexm approved these changes 2024-01-24 10:39:29 +00:00
jsegarra merged commit 05aaed5565 into dev 2024-01-24 10:55:20 +00:00
jsegarra deleted branch 2687_travel_cloneWithEntries 2024-01-24 10:55:20 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix#1887
No description provided.