Commit 46abb8f1 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Merge branch 'release_3.0.3'

parents 82c816af c9aba166
Loading
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
Journal des modifications
=========================

3.0.3
-----
- Ajout d'une valeur d'état aux soutenances "Validée par l'établissement" post validation d'une soutenance par la présidence de l'établissement
- [FIX] Plus de demande de justificatif pour la confidentialité si la demande est faite en amont de la soutenance
- [FIX] La notif de validation de la version corrigée par le Président du jury faisait mention à tort du Directeur de thèse.
- [FIX] Plantage de l'export CSV des thèses à cause d'un appel de méthode erroné (getMailContact).

3.0.2
-----
- [FIX] Correction du plantage lors du réimport ponctuel d'une thèse.
+5 −5
Original line number Diff line number Diff line
@@ -65,11 +65,11 @@
            "mkdir -p data/cache && chmod -R 777 data/cache && rm -rf data/cache/*",
            "mkdir -p data/DoctrineModule/cache && chmod -R 777 data/DoctrineModule/cache && rm -rf data/DoctrineModule/cache/*",
            "mkdir -p data/DoctrineORMModule/Proxy && chmod -R 777 data/DoctrineORMModule/Proxy && rm -rf data/DoctrineORMModule/Proxy/*",
            "vendor/bin/doctrine-module orm:clear-cache:query &",
            "vendor/bin/doctrine-module orm:clear-cache:metadata &",
            "vendor/bin/doctrine-module orm:clear-cache:result &",
            "vendor/bin/doctrine-module orm:generate-proxies &",
            "vendor/bin/zf-development-mode disable &"
            "vendor/bin/doctrine-module orm:clear-cache:query",
            "vendor/bin/doctrine-module orm:clear-cache:metadata",
            "vendor/bin/doctrine-module orm:clear-cache:result",
            "vendor/bin/doctrine-module orm:generate-proxies",
            "vendor/bin/zf-development-mode disable"
        ]
    }
}
+17 −17
Original line number Diff line number Diff line
@@ -517,16 +517,16 @@
        },
        {
            "name": "doctrine/dbal",
            "version": "2.13.4",
            "version": "2.13.3",
            "source": {
                "type": "git",
                "url": "https://github.com/doctrine/dbal.git",
                "reference": "2411a55a2a628e6d8dd598388ab13474802c7b6e"
                "reference": "0d7adf4cadfee6f70850e5b163e6cdd706417838"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/2411a55a2a628e6d8dd598388ab13474802c7b6e",
                "reference": "2411a55a2a628e6d8dd598388ab13474802c7b6e",
                "url": "https://api.github.com/repos/doctrine/dbal/zipball/0d7adf4cadfee6f70850e5b163e6cdd706417838",
                "reference": "0d7adf4cadfee6f70850e5b163e6cdd706417838",
                "shasum": ""
            },
            "require": {
@@ -539,8 +539,8 @@
            "require-dev": {
                "doctrine/coding-standard": "9.0.0",
                "jetbrains/phpstorm-stubs": "2021.1",
                "phpstan/phpstan": "0.12.99",
                "phpunit/phpunit": "^7.5.20|^8.5|9.5.10",
                "phpstan/phpstan": "0.12.96",
                "phpunit/phpunit": "^7.5.20|^8.5|9.5.5",
                "psalm/plugin-phpunit": "0.16.1",
                "squizlabs/php_codesniffer": "3.6.0",
                "symfony/cache": "^4.4",
@@ -606,7 +606,7 @@
            ],
            "support": {
                "issues": "https://github.com/doctrine/dbal/issues",
                "source": "https://github.com/doctrine/dbal/tree/2.13.4"
                "source": "https://github.com/doctrine/dbal/tree/2.13.3"
            },
            "funding": [
                {
@@ -622,7 +622,7 @@
                    "type": "tidelift"
                }
            ],
            "time": "2021-10-02T15:59:26+00:00"
            "time": "2021-09-12T19:11:48+00:00"
        },
        {
            "name": "doctrine/deprecations",
@@ -3723,11 +3723,11 @@
        },
        {
            "name": "unicaen/app",
            "version": "3.1.22",
            "version": "3.1.21",
            "source": {
                "type": "git",
                "url": "https://git.unicaen.fr/lib/unicaen/app.git",
                "reference": "75e60faee03ca88c9396cc8f734136ee72690312"
                "reference": "b69862178b06c74c539fec7f68d6dd019aa092dc"
            },
            "require": {
                "beberlei/assert": "^2.9",
@@ -3782,7 +3782,7 @@
                ]
            },
            "description": "Module de base des applications unicaen",
            "time": "2021-10-04T14:33:04+00:00"
            "time": "2021-09-22T13:50:41+00:00"
        },
        {
            "name": "unicaen/auth",
@@ -7612,16 +7612,16 @@
        },
        {
            "name": "phpdocumentor/type-resolver",
            "version": "1.5.1",
            "version": "1.5.0",
            "source": {
                "type": "git",
                "url": "https://github.com/phpDocumentor/TypeResolver.git",
                "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae"
                "reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae",
                "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae",
                "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/30f38bffc6f24293dadd1823936372dfa9e86e2f",
                "reference": "30f38bffc6f24293dadd1823936372dfa9e86e2f",
                "shasum": ""
            },
            "require": {
@@ -7656,9 +7656,9 @@
            "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
            "support": {
                "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
                "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1"
                "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.0"
            },
            "time": "2021-10-02T14:08:47+00:00"
            "time": "2021-09-17T15:28:14+00:00"
        },
        {
            "name": "phpspec/prophecy",
+24 −0
Original line number Diff line number Diff line
# Version 3.0.2

## 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 3.0.2 && 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

Ajouter du nouvel état 'Validée par l'établissement
```sql
INSERT INTO soutenance_etat
    (id, code, libelle, histo_creation, histo_createur_id, histo_modification, histo_modificateur_id, histo_destruction, histo_destructeur_id)
VALUES
    (soutenance_etat_id_seq.nextval, 'ETABLISSEMENT', 'Validée par l''établissement', current_date, 1, current_date, 1, null, null);
```
 No newline at end of file
+54 −0
Original line number Diff line number Diff line
# Version 3.0.3

## 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 3.0.3 && 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
--
-- Correction fonction individu_haystack().
--
create or replace function individu_haystack(nom_usuel text, nom_patronymique text, prenom1 text, email text, source_code text) returns character varying
  stable
  security definer
  language plpgsql
as
  $$
BEGIN
  return trim(str_reduce(
            coalesce(NOM_USUEL, '') || ' ' ||
            coalesce(PRENOM1, '') || ' ' ||
            coalesce(NOM_PATRONYMIQUE, '') || ' ' ||
            coalesce(PRENOM1, '') || ' ' ||
            coalesce(PRENOM1, '') || ' ' ||
            coalesce(NOM_USUEL, '') || ' ' ||
            coalesce(PRENOM1, '') || ' ' ||
            coalesce(NOM_PATRONYMIQUE, '') || ' ' ||
            coalesce(EMAIL, '') || ' ' ||
            coalesce(SOURCE_CODE, '')
    ));
END;
$$;
--
update individu_rech ir set haystack = (
  select individu_haystack(nom_usuel, nom_patronymique, prenom1, email, source_code)
  from individu i where i.id = ir.id
);
```

Ajout d'une colonne pour l'adresse de l'établissement de chaque membre du jury

```sql
alter table soutenance_membre add adresse text;
```
Loading