Commit b5521995 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Amélioration du code + documentation

parent 3f70a15d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ Journal des modifications
-----
- Recherche textuelle de thèses : rétablissement du cochage par défaut de tous les critères.
- Résolution du problème de plantage lorsque le flux des actualités est erroné.
- Validation des corrections desormais réalisée par le président du jury.
- Interface de gestion des comptes locaux pour les présidents de jury.

2.1.4
-----
+22 −1
Original line number Diff line number Diff line
@@ -15,4 +15,25 @@ git fetch --tags && git checkout --force 2.1.5 && bash ./install.sh

## 2. Dans la base de données

NOP
 No newline at end of file
```sql
insert into CATEGORIE_PRIVILEGE (ID, CODE, LIBELLE, ORDRE) VALUES
(CATEGORIE_PRIVILEGE_ID_SEQ.nextval, 'gestion-president', 'Gestion des Présidents du jury', 22);

insert into PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES
(PRIVILEGE_ID_SEQ.nextval, CATEGORIE_PRIVILEGE_ID_SEQ.currval, 'gestion-president', 'Affichage de la gestion des Présidents du jury',10);
insert into PROFIL_PRIVILEGE (PROFIL_ID, PRIVILEGE_ID) VALUES (6, PRIVILEGE_ID_SEQ.currval); -- ADMIN TECH
insert into PROFIL_PRIVILEGE (PROFIL_ID, PRIVILEGE_ID) VALUES (4, PRIVILEGE_ID_SEQ.currval); -- MDD

insert into PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES
(PRIVILEGE_ID_SEQ.nextval, CATEGORIE_PRIVILEGE_ID_SEQ.currval, 'modifier-mail-president', 'Modification de l''email des Présidents du jury',20);
insert into PROFIL_PRIVILEGE (PROFIL_ID, PRIVILEGE_ID) VALUES (6, PRIVILEGE_ID_SEQ.currval); -- ADMIN TECH
insert into PROFIL_PRIVILEGE (PROFIL_ID, PRIVILEGE_ID) VALUES (4, PRIVILEGE_ID_SEQ.currval); -- MDD

insert into PRIVILEGE (ID, CATEGORIE_ID, CODE, LIBELLE, ORDRE) VALUES
(PRIVILEGE_ID_SEQ.nextval, CATEGORIE_PRIVILEGE_ID_SEQ.currval, 'notifier-president', 'Notification des Présidents du jury',30);
insert into PROFIL_PRIVILEGE (PROFIL_ID, PRIVILEGE_ID) VALUES (6, PRIVILEGE_ID_SEQ.currval); -- ADMIN TECH
insert into PROFIL_PRIVILEGE (PROFIL_ID, PRIVILEGE_ID) VALUES (4, PRIVILEGE_ID_SEQ.currval); -- MDD

INSERT INTO SOUTENANCE_PROPOSITION (ID, THESE_ID, DATEPREV, LIEU, RENDU_RAPPORT, CONFIDENTIALITE, LABEL_EUROPEEN, MANUSCRIT_ANGLAIS, SOUTENANCE_ANGLAIS, HUIT_CLOS, EXTERIEUR, NOUVEAU_TITRE, ETAT_ID, SURSIS, ADRESSE_EXACTE, HISTO_CREATION, HISTO_CREATEUR_ID, HISTO_MODIFICATION, HISTO_MODIFICATEUR_ID, HISTO_DESTRUCTION, HISTO_DESTRUCTEUR_ID) VALUES (0, 23581, null, '---', null, null, 0, 0, 0, 0, 0, null, 3, null, null, TO_DATE('2021-01-27 16:32:51', 'YYYY-MM-DD HH24:MI:SS'), 1, TO_DATE('2021-01-27 16:32:53', 'YYYY-MM-DD HH24:MI:SS'), 1, TO_DATE('2021-01-27 16:32:59', 'YYYY-MM-DD HH24:MI:SS'), 1);

``
 No newline at end of file
+4 −1
Original line number Diff line number Diff line
@@ -37,7 +37,10 @@ class PresidentJuryController extends AbstractActionController {
        $president = $this->getActeurService()->getRequestedActeur($this, 'president');
        $these = $president->getThese();

        $this->getTheseService()->notifierCorrectionsApportees($these, $this);
        $message = $this->getTheseService()->notifierCorrectionsApportees($these);
        if ($message[0] === 'success') $this->flashMessenger()->addSuccessMessage($message[1]);
        if ($message[0] === 'error')   $this->flashMessenger()->addErrorMessage($message[1]);


        return $this->redirect()->toRoute('president-jury', [], [], true);
    }
+2 −0
Original line number Diff line number Diff line
@@ -1113,6 +1113,7 @@ class TheseController extends AbstractController
                    // création automatique d'une validation du dépôt de la version corrigée (par le doctorant)
                    if ($validite->getEstValide() && $version->estVersionCorrigee()) {
                        $this->validationService->validateDepotTheseCorrigee($these);
                        $this->theseService->notifierCorrectionsApportees($these);

                        // envoi de mail aux directeurs de thèse
                        $this->notifierService->triggerValidationDepotTheseCorrigee($these);
@@ -1535,6 +1536,7 @@ class TheseController extends AbstractController
                $this->fichierTheseService->updateConformiteFichierTheseRetraitee($these, $conforme);
                if ($conforme && $versionArchivage->estVersionCorrigee()) {
                    $this->validationService->validateDepotTheseCorrigee($these);
                    $this->theseService->notifierCorrectionsApportees($these);

                    // notification des directeurs de thèse
                    $this->notifierService->triggerValidationDepotTheseCorrigee($these);
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ class ValidationController extends AbstractController
                $successMessage = "Validation enregistrée avec succès.";

                // notification des directeurs de thèse
                $this->notifierService->triggerValidationDepotTheseCorrigee($these);
                $this->theseService->notifierCorrectionsApportees($these);
            }
            elseif ($action === 'devalider') {
                $validation = $this->validationService->unvalidateDepotTheseCorrigee($these);
Loading