Anomalie #15984
(ANALYSE) Migration 18.10-20.10 : les informations des délégations antérieures n'apparaissent pas (Circuit / fiche liaison)
Start date:
01/19/2021
Due date:
Tags Courrier:
Description
en lien avec la : https://forge.maarch.org/issues/12018
Demande incomplète.
il était précisé que ça devais aussi apparaître sur la fiche liaison.
Hors il n'est pas possible de le visualiser.
Related issues
History
#1 Updated by Ludovic ARAUJO over 1 year ago
- Description updated (diff)
#3 Updated by Support Maarch over 1 year ago
- Status changed from A qualifier to A traiter
#4 Updated by Emmanuel DILLARD over 1 year ago
- Related to Fonctionnalité #12018: [visa] [AFD] Délégation de bannette parapheur : faire apparaitre le délégué et le délégataire sur les informations du circuit added
#5 Updated by Emmanuel DILLARD over 1 year ago
- Due date set to 01/25/2021
- Status changed from A traiter to Etude planifiée
#6 Updated by Emmanuel DILLARD over 1 year ago
- File Capture d’écran 2021-01-25 094732.jpg Capture d’écran 2021-01-25 094732.jpg added
- Due date deleted (
01/25/2021) - Status changed from Etude planifiée to 17
- Assignee changed from EDI PO to Ludovic ARAUJO
Testé en 20.10.3.
L'information de délégation apparait bien sur le fiche de liaison (voir copie écran)
Elle apparait aussi sur les informations de circuit
A préciser
#7 Updated by Ludovic ARAUJO over 1 year ago
- Status changed from 17 to A traiter
- Assignee deleted (
Ludovic ARAUJO)
Oui, mais c'est pas pris sur les courriers avant la 20.10 dans le cadre d'une migration.
#8 Updated by Emmanuel DILLARD over 1 year ago
- Status changed from A traiter to Complément d'Informations
- Assignee set to Ludovic ARAUJO
#10 Updated by Emmanuel DILLARD over 1 year ago
- Priority changed from 0-Bloquant to 1-Majeur
#12 Updated by Ludovic ARAUJO over 1 year ago
- Assignee changed from Ludovic ARAUJO to Emmanuel DILLARD
#13 Updated by Emmanuel DILLARD over 1 year ago
- Subject changed from [visa] [AFD] Délégation de bannette parapheur : faire apparaitre le délégué et le délégataire sur les informations du circuit to (ANALYSE) Migration : Délégation de bannette parapheur : faire apparaitre le délégué et le délégataire sur les informations du circuit
- Status changed from A traiter to Complément d'Informations
- Assignee changed from Emmanuel DILLARD to Ludovic ARAUJO
#15 Updated by Emmanuel DILLARD over 1 year ago
- Subject changed from (ANALYSE) Migration : Délégation de bannette parapheur : faire apparaitre le délégué et le délégataire sur les informations du circuit to (ANALYSE) Migration 18.10-20.10 : les informations des délégations antérieures n'apparaissent pas (Circuit / fiche liaison)
#17 Updated by Emmanuel DILLARD over 1 year ago
- Status changed from A traiter to Prêt à développer
- Assignee changed from Emmanuel DILLARD to EDI PO
#18 Updated by Emmanuel DILLARD over 1 year ago
- Status changed from Prêt à développer to Rejeté
- Assignee changed from EDI PO to Ludovic ARAUJO
La reprise de ces informations dans le cadre d'une migration 18.10 est techniquement impossible.
(L'information n'était pas stockée de façon à pouvoir être reprise de façon fiable en migration. Maintenant c'est une colonne dédiée de la base de donnée)
#20 Updated by Ludovic ARAUJO about 1 year ago
pour info :
-- launch
select * from update_listinstance_delegate();
-- function
CREATE TYPE emp as
(
user_migrated int,
detected_line int
);
create or replace function update_listinstance_delegate() returns emp AS $BODY$
DECLARE
rec record;
id_user int;
i int;
a int;
nb_user int;
contenu varchar;
nom varchar;
prenom varchar;
begin
a = 0;
i = 0;
create temp table x as select listinstance_id,btrim(split_part(ltrim(process_comment,'Action de:'),'--',1),' ')as col from listinstance where process_comment ilike 'Action de%';
update x set col = btrim(substr(col,14),' ') where col ilike '%Action de%';
FOR rec in SELECT listinstance_id,col from x
loop
a = a + 1;
select split_part(rec.col,' ',2), split_part(rec.col,' ',1) into nom,prenom from x;
if nom = '' or prenom = '' then
raise INFO 'LAKE OF INFORMATION FOR listinstance_id : %',rec.listinstance_id ;
continue;
end if;
select count(user_id) into nb_user from users where lastname = nom and firstname = prenom;
if nb_user > 1 then
raise DEBUG 'USER % % WAS DOUBLE CHECKED',nom, prenom using HINT = '--> MANUAL ACTION NEEDED FOR listinstance_id : %' || rec.listinstance_id;
continue;
end if;
select user_id into id_user from users where lastname = nom and firstname = prenom;
if id_user isnull then
raise WARNING 'USER % % NOT FOUND listinstance_id : %',nom, prenom,rec.listinstance_id;
continue;
end if;
--raise notice 'user id : %' , id_user;
i = i + 1;
update listinstance set delegate = id_user where listinstance_id = rec.listinstance_id;
END LOOP;
return (i,a);
END;
$BODY$ LANGUAGE plpgsql;
-- reset
update listinstance set delegate = null;
-- A lancer après utilisation
drop function update_listinstance_delegate;
drop type emp;
drop table x;
#21 Updated by Emmanuel DILLARD 11 months ago
- Project changed from Backlog to Backlog Courrier
- Target version changed from 20.10 (Support actif) to 20.10 (Actif)