Commit a54a9dfd authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Notes de version

parent 67be759a
Loading
Loading
Loading
Loading
+9 −1
Changes for CHANGELOG.md: 9 added lines, 1 removed line.
Original line number Diff line number Diff line
Journal des modifications
=========================

2.1.8
-----
- Utilisation de l'établissement de la thèse pour le routing des mails du module soutenance au site concerné.
- Retrait d'espace et renommage des fichiers pour signature (module Soutenance).
- Téléversement des rapports annuels : renommage en rapports d'activité (annuel ou de fin de thèse) ; création des privilèges *_TOUT et *_SIEN.
- [FIX] Import : le préfixe 'SyGAL' par défaut pour ORIGINE_FINANCEMENT_ID est incorrect depuis que les origines sont de nouveau importées de chaque établissement.
- [FIX] Corrections pour le cas où le supannId est null.
- [FIX] Un utilisateur authentifié était associé au mauvais utilisateur si les données shib ne fournisse aucun supann{Ref|Emp|Etu}Id.

2.1.7
-----
- Changement du fonctionnement de sursis pour les soutenances : seul la validation acteur vérifie le délai de deux mois et le sursis annule cette vérification.
- Ajout d'une interface pour lier/délier des utilisateurs sans individu à un individu.
- Le rôle de co-directeur est maintenant un rôle attribué automatiquement
- Téléversement des rapports annuels : renommage en rapports d'activité (annuel ou de fin de thèse) ; création des privilèges *_TOUT et *_SIEN.
 
2.1.6
-----
+2 −56
Changes for doc/release-notes/v2.1.7.md: 2 added lines, 56 removed lines.
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
pour installer la nouvelle version :

```bash
git fetch --tags && git checkout --force 2.1.6 && bash ./install.sh
git fetch --tags && git checkout --force 2.1.7 && bash ./install.sh
```

- Selon le moteur PHP que vous avez installé, rechargez le service, exemple :
@@ -15,58 +15,4 @@ git fetch --tags && git checkout --force 2.1.6 && bash ./install.sh

## 2. Dans la base de données

```sql

--
-- Rapports d'activité
--

update NATURE_FICHIER set CODE = 'RAPPORT_ACTIVITE' where CODE = 'RAPPORT_ANNUEL' ;
create table TYPE_RAPPORT (
                            ID NUMBER not null constraint TYPE_RAPPORT_PK primary key,
                            CODE VARCHAR2(50 char) not null,
                            LIBELLE_COURT VARCHAR2(64 char) not null,
                            LIBELLE_LONG VARCHAR2(128 char) not null
) ;
create unique index TYPE_RAPPORT_UN on TYPE_RAPPORT (CODE) ;
insert into TYPE_RAPPORT (ID, CODE, LIBELLE_COURT, LIBELLE_LONG) VALUES (1, 'RAPPORT_ACTIVITE_ANNUEL', 'Annuel', 'Rapport d''activité annuel') ;
insert into TYPE_RAPPORT (ID, CODE, LIBELLE_COURT, LIBELLE_LONG) VALUES (2, 'RAPPORT_ACTIVITE_FINTHESE', 'Fin de thèse', 'Rapport d''activité de fin de thèse') ;
alter table RAPPORT_ANNUEL modify EST_FINAL default null ;
alter table RAPPORT_ANNUEL modify EST_FINAL null ;
alter table RAPPORT_ANNUEL add TYPE_RAPPORT_ID number ;
update RAPPORT_ANNUEL set TYPE_RAPPORT_ID = 1 where EST_FINAL = 0;
update RAPPORT_ANNUEL set TYPE_RAPPORT_ID = 2 where EST_FINAL = 1;
alter table RAPPORT_ANNUEL modify TYPE_RAPPORT_ID not null ;
alter table RAPPORT_ANNUEL add constraint RAPPORT_ANNUEL_TYPE_ID_FK foreign key (TYPE_RAPPORT_ID) references TYPE_RAPPORT ;
alter table RAPPORT_ANNUEL rename to RAPPORT ;

rename RAPPORT_ANNUEL_ID_SEQ to RAPPORT_ID_SEQ;

insert into CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) select CATEGORIE_PRIVILEGE_ID_SEQ.nextval, 'rapport-activite', 'Rapports d''activité', 23 from dual ;
insert into PRIVILEGE(ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE)
with tmp(code, libelle, ordre) as (
  select 'lister-tout', 'Lister les rapports concernant toute thèse', 100 from dual union all
  select 'lister-sien', 'Lister les rapports concernant ses thèses', 200 from dual union all
  select 'televerser-tout', 'Téléverser un rapport concernant toute thèse', 300 from dual union all
  select 'televerser-sien', 'Téléverser un rapport concernant ses thèses', 400 from dual union all
  select 'supprimer-tout', 'Supprimer un rapport concernant toute thèse', 500 from dual union all
  select 'supprimer-sien', 'Supprimer un rapport concernant ses thèses', 600 from dual union all
  select 'telecharger-tout', 'Télécharger les rapports concernant toute thèse', 700 from dual union all
  select 'telecharger-sien', 'Télécharger les rapports concernant ses thèses', 800 from dual union all
  select 'telecharger-zip', 'Télécharger des rapports sous la forme d''une archive compressée (.zip)', 900 from dual union all
  select 'rechercher-tout', 'Rechercher des rapports concernant toute thèse', 1000 from dual union all
  select 'rechercher-sien', 'Rechercher des rapports concernant ses thèses', 1100 from dual
)
select privilege_id_seq.nextval, cp.id, tmp.code, tmp.libelle, tmp.ordre from tmp
join CATEGORIE_PRIVILEGE cp on cp.CODE = 'rapport-activite'
;
update PRIVILEGE set CATEGORIE_ID = (select id from CATEGORIE_PRIVILEGE where code = 'rapport-activite')
where CATEGORIE_ID = (select id from CATEGORIE_PRIVILEGE where code = 'rapport-annuel');
delete from CATEGORIE_PRIVILEGE where code = 'rapport-annuel';

update CATEGORIE_PRIVILEGE set ORDRE = 40 where code = 'validation' ;




```
Rien
 No newline at end of file
+71 −0
Changes for doc/release-notes/v2.1.8.md: 71 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Version 2.1.8

## 1. Sur le serveur d'application

- Placez-vous dans le répertoire de l'application puis lancez la commande suivante
  pour installer la nouvelle version :

```bash
git fetch --tags && git checkout --force 2.1.8 && bash ./install.sh
```

- Selon le moteur PHP que vous avez installé, rechargez le service, exemple :
    - php7.3-fpm         : `service php7.3-fpm reload`
    - apache2-mod-php7.3 : `service apache2 reload`

## 2. Dans la base de données

```sql
--
-- Rapports d'activité
--

update NATURE_FICHIER set CODE = 'RAPPORT_ACTIVITE' where CODE = 'RAPPORT_ANNUEL' ;
create table TYPE_RAPPORT (
                            ID NUMBER not null constraint TYPE_RAPPORT_PK primary key,
                            CODE VARCHAR2(50 char) not null,
                            LIBELLE_COURT VARCHAR2(64 char) not null,
                            LIBELLE_LONG VARCHAR2(128 char) not null
) ;
create unique index TYPE_RAPPORT_UN on TYPE_RAPPORT (CODE) ;
insert into TYPE_RAPPORT (ID, CODE, LIBELLE_COURT, LIBELLE_LONG) VALUES (1, 'RAPPORT_ACTIVITE_ANNUEL', 'Annuel', 'Rapport d''activité annuel') ;
insert into TYPE_RAPPORT (ID, CODE, LIBELLE_COURT, LIBELLE_LONG) VALUES (2, 'RAPPORT_ACTIVITE_FINTHESE', 'Fin de thèse', 'Rapport d''activité de fin de thèse') ;
alter table RAPPORT_ANNUEL modify EST_FINAL default null ;
alter table RAPPORT_ANNUEL modify EST_FINAL null ;
alter table RAPPORT_ANNUEL add TYPE_RAPPORT_ID number ;
update RAPPORT_ANNUEL set TYPE_RAPPORT_ID = 1 where EST_FINAL = 0;
update RAPPORT_ANNUEL set TYPE_RAPPORT_ID = 2 where EST_FINAL = 1;
alter table RAPPORT_ANNUEL modify TYPE_RAPPORT_ID not null ;
alter table RAPPORT_ANNUEL add constraint RAPPORT_ANNUEL_TYPE_ID_FK foreign key (TYPE_RAPPORT_ID) references TYPE_RAPPORT ;
alter table RAPPORT_ANNUEL rename to RAPPORT ;

rename RAPPORT_ANNUEL_ID_SEQ to RAPPORT_ID_SEQ;

insert into CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) select CATEGORIE_PRIVILEGE_ID_SEQ.nextval, 'rapport-activite', 'Rapports d''activité', 23 from dual ;
insert into PRIVILEGE(ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE)
with tmp(code, libelle, ordre) as (
  select 'lister-tout', 'Lister les rapports concernant toute thèse', 100 from dual union all
  select 'lister-sien', 'Lister les rapports concernant ses thèses', 200 from dual union all
  select 'televerser-tout', 'Téléverser un rapport concernant toute thèse', 300 from dual union all
  select 'televerser-sien', 'Téléverser un rapport concernant ses thèses', 400 from dual union all
  select 'supprimer-tout', 'Supprimer un rapport concernant toute thèse', 500 from dual union all
  select 'supprimer-sien', 'Supprimer un rapport concernant ses thèses', 600 from dual union all
  select 'telecharger-tout', 'Télécharger les rapports concernant toute thèse', 700 from dual union all
  select 'telecharger-sien', 'Télécharger les rapports concernant ses thèses', 800 from dual union all
  select 'telecharger-zip', 'Télécharger des rapports sous la forme d''une archive compressée (.zip)', 900 from dual union all
  select 'rechercher-tout', 'Rechercher des rapports concernant toute thèse', 1000 from dual union all
  select 'rechercher-sien', 'Rechercher des rapports concernant ses thèses', 1100 from dual
)
select privilege_id_seq.nextval, cp.id, tmp.code, tmp.libelle, tmp.ordre from tmp
join CATEGORIE_PRIVILEGE cp on cp.CODE = 'rapport-activite'
;
update PRIVILEGE set CATEGORIE_ID = (select id from CATEGORIE_PRIVILEGE where code = 'rapport-activite')
where CATEGORIE_ID = (select id from CATEGORIE_PRIVILEGE where code = 'rapport-annuel');
delete from CATEGORIE_PRIVILEGE where code = 'rapport-annuel';

update CATEGORIE_PRIVILEGE set ORDRE = 40 where code = 'validation' ;

-----> ATTENTION : 
-----> Pensez maintenant à vous rendre dans SyGAL sur la page "Droits d'accès > Profils" pour accorder les nouveaux 
-----> privilèges de la catégorie "Rapports d'activité" aux profils Doctorant, MDD, ED, etc.
```
 No newline at end of file