Subversion Repositories eFlore/Projets.eflore-projets

Rev

Go to most recent revision | Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
834 3920 d 18 h raphael /trunk/services/tests/0.1/ tests: ajout de plusieurs tests relatifs aux ontologies:
* relatifs aux ontologies bdnt (ontologies communes aux ontologies de référentiel)
* relatifs aux ontologies bdnt multiplexés (plusieurs paramètres séparés par des virgules)
* relatifs aux ontologies nvjfl multiplexées (cf r832 eflore/projet)
+ bugfix de tests existants.

==> 8 failures (api 0.1 uniquement)
 
/trunk/services/tests/0.1/commun/CommunOntologiesTest.php
/trunk/services/tests/0.1/nvjfl/NvjflNomsVernaTest.php
833 3920 d 18 h raphael /trunk/services/tests/0.1/ tests: optionnalité du passage des paramètres dans l'utilisation de l'API de test  
/trunk/services/tests/0.1/ServiceEflorePhpUnit.php
832 3920 d 18 h raphael /trunk/services/modules/0.1/nvjfl/ nom-vernaculaires: multiplexage des requêtes ontologiques amélioré [ontologie "genre" pris en compte]

Les requêtes multi-critères sont désormais utilisées pour plusieurs ontologies différentes, du moment
que le webservice distant est le même. Ainsi les performances sont augmentées significativement
lors plusieurs retour.champs appartement à un même webservice d'ontologies sont demandés.

Exemple, pour le taxon nt=1382, la langue français lg=fra et les retour.champs=conseil_emploi,genre:
(/nvjfl/noms-vernaculaires/attributions?masque.nt=1382&masque.lg=fra&retour.champs=conseil_emploi,genre&navigation.limite=4)

La requête d'ontologies interne est désormais:
* /nvjfl/ontologies/numStatut:1,genreNombre:11,genreNombre:10

Alors qu'auparavant elle aurait induit:
* /nvjfl/ontologies/numStatut:1 # multiplage actif, mais une seule valeur pour cette ontologie
* /nvjfl/ontologies/genreNombre:11 # ontologie différente (non-multiplexé par ailleurs)
* /nvjfl/ontologies/genreNombre:10 # idem
 
/trunk/services/modules/0.1/nvjfl/NomsVernaculaires.php
831 3920 d 20 h raphael /trunk/services/modules/0.1/nvjfl/ nvjfl: ontologies, 2 bugfixes
1) l'attribut _result_ontologies@nvjfl était présent dans le JSON renvoyé à cause
de l'utilisation de isset() sur une valeur de tableau existante mais NULL.
array_key_exists() devait être utilisé

2) Lorsque la recherche d'ontologies est nécessaire, mais que 1 seule l'est, le
JSON d'ontologies renvoyé n'a pas la même structure (il n'est pas indexé par critère
de requête). Ce cas n'était pas traité correctement ce qui amenait à retourner un
"conseil_emploi" NULL.
exemple d'URL: /nvjfl//noms-vernaculaires/attributions?masque.nt=1382&masque.lg=fra&retour.champs=conseil_emploi&navigation.limite=2
 
/trunk/services/modules/0.1/nvjfl/NomsVernaculaires.php
830 3921 d 0 h raphael /trunk/services/modules/0.1/commun/ aide: en cas d'erreur, ne pas générer d'E_NOTICE de variable non-existente ce qui ne pourrait qu'amplifier le problème  
/trunk/services/modules/0.1/commun/Aide.php
829 3921 d 1 h raphael /trunk/scripts/modules/cel/ cel: scripts: amélioration du Makefile pour générer un fichier SQL plutôt que le lancer, exemple: `make o_maj1 alterdb=tb_cel annuairedb=mydb bdtxa=1_01` puis utiliser maj1.comp.sql pour la mise à jour  
/trunk/scripts/modules/cel
/trunk/scripts/modules/cel/Makefile
828 3921 d 3 h raphael /trunk/scripts/modules/cel/ cel: scripts: généricisation des noms de table bdtfx/bdtxa (en précision des changements de n° de version)  
/trunk/scripts/modules/cel/.current
/trunk/scripts/modules/cel/Makefile
/trunk/scripts/modules/cel/cel_references.sql
/trunk/scripts/modules/cel/maj-nom-ret.sql
/trunk/scripts/modules/cel/maj-referentiel-201307.sql
/trunk/scripts/modules/cel/maj-referentiel-und-201307.sql
/trunk/scripts/modules/cel/redempteur.sql
/trunk/scripts/modules/cel/referonosaure.sql
827 3922 d 18 h raphael /trunk/scripts/modules/eflore/ eflore: (script/doc): ajout d'un script de récupération des données eFlore en bootstrappant le framework et instanciant une Fiche()  
/trunk/scripts/modules/eflore/get-donnees-fiches-eflore.php
826 3922 d 23 h raphael /trunk/services/tests/0.1/cel/ tests: cel: ajout d'un test sur une date antérieure à 1901 (php 64 bits) associée à une image Cel  
/trunk/services/tests/0.1/cel/CelImagesTest.php
825 3922 d 23 h raphael /trunk/services/tests/0.1/baseflor/ tests: baseflor: ajout d'un test sur /baseflor/informations/bdtfx.nn:XXX/relations/catminat  
/trunk/services/tests/0.1/baseflor/InformationsBaseflorTest.php
824 3923 d 0 h raphael /trunk/scripts/ scripts: ajout d'un fichier htaccess par défaut  
/trunk/scripts/.htaccess
823 3923 d 0 h raphael /trunk/scripts/modules/cel/ cel: scripts/Makefile: ajout d'une macro pour tester l'existence de table avant leur utilisation par un script SQL  
/trunk/scripts/modules/cel/Makefile
822 3923 d 0 h raphael /trunk/scripts/modules/cel/ cel: scripts/Makefile: ajout de tests pour savoir si une maj a été effectuée ou non et la lancer si nécessaire  
/trunk/scripts/modules/cel/A_LIRE.txt
/trunk/scripts/modules/cel/Makefile
821 3923 d 1 h raphael /trunk/scripts/modules/cel/ cel: scripts/Makefile: ajout de test pour savoir si une maj a été effectuée ou non  
/trunk/scripts/modules/cel/Makefile
/trunk/scripts/modules/cel/maj-nom-ret.sql
820 3923 d 2 h raphael /trunk/scripts/modules/cel/ cel: scripts: mise à jour du Makefile  
/trunk/scripts/modules/cel/.current
/trunk/scripts/modules/cel/Makefile
819 3923 d 2 h raphael /trunk/scripts/modules/cel/ cel: scripts: revert r818 (commit problem)  
/trunk/scripts/modules/cel/.current
/trunk/scripts/modules/cel/Makefile
/trunk/scripts/modules/cel/cel_references.sql
/trunk/scripts/modules/cel/dedup-ordre-201307.sql
/trunk/scripts/modules/cel/fix-utilisateur-32.sql
/trunk/scripts/modules/cel/maj-cleanup-201307.sql
/trunk/scripts/modules/cel/maj-nom-ret.sql
/trunk/scripts/modules/cel/maj-referentiel-201307.sql
/trunk/scripts/modules/cel/maj-referentiel-und-201307.sql
/trunk/scripts/modules/cel/maj-struct-201307.sql
/trunk/scripts/modules/cel/redempteur.sql
/trunk/scripts/modules/cel/referonosaure.sql
818 3923 d 2 h raphael /trunk/scripts/modules/cel/ cel: scripts: mise à jour du Makefile  
/trunk/scripts/modules/cel/.current
/trunk/scripts/modules/cel/Makefile
/trunk/scripts/modules/cel/cel_references.sql
/trunk/scripts/modules/cel/dedup-ordre-201307.sql
/trunk/scripts/modules/cel/fix-utilisateur-32.sql
/trunk/scripts/modules/cel/maj-cleanup-201307.sql
/trunk/scripts/modules/cel/maj-nom-ret.sql
/trunk/scripts/modules/cel/maj-referentiel-201307.sql
/trunk/scripts/modules/cel/maj-referentiel-und-201307.sql
/trunk/scripts/modules/cel/maj-struct-201307.sql
/trunk/scripts/modules/cel/redempteur.sql
/trunk/scripts/modules/cel/referonosaure.sql
817 3923 d 2 h raphael /trunk/scripts/modules/cel/ cel: scripts: fix cel.ini après r816, ayant subi une substitution non-souhaitée  
/trunk/scripts/modules/cel/cel.ini
816 3923 d 2 h raphael /trunk/scripts/modules/cel/ cel: scripts: ajout d'un makefile en remplacement du shell-script pour une définition aisée des bases à utiliser pour les scripts SQL  
/trunk/scripts/modules/cel/Makefile
/trunk/scripts/modules/cel/cel_references.sql
/trunk/scripts/modules/cel/cel_references.sh
/trunk/scripts/modules/cel/cel.ini
/trunk/scripts/modules/cel/dedup-ordre-201307.sql
/trunk/scripts/modules/cel/fix-utilisateur-32.sql
/trunk/scripts/modules/cel/maj-cleanup-201307.sql
/trunk/scripts/modules/cel/maj-nom-ret.sql
/trunk/scripts/modules/cel/maj-referentiel-201307.sql
/trunk/scripts/modules/cel/maj-referentiel-und-201307.sql
/trunk/scripts/modules/cel/maj-struct-201307.sql
/trunk/scripts/modules/cel/redempteur.sql
/trunk/scripts/modules/cel/referonosaure.sql
815 3923 d 3 h raphael /trunk/services/modules/0.1/ trivial syntax error  
/trunk/services/modules/0.1/Projets.php
814 3923 d 3 h raphael /trunk/services/modules/0.1/ class-name conflict: "moissonnage" vs "moissonnnage"...  
/trunk/services/modules/0.1/Projets.php
/trunk/services/modules/0.1/moissonnage/Ontologies.php
813 3923 d 4 h raphael /trunk/services/configurations/ config: correction du répertoire de cache en -test avec "make test"  
/trunk/services/configurations/test-conf.sed
812 3923 d 4 h raphael /trunk/services/configurations/ config: suppression du sous-répertoire de cache /eflore/ dans {ref:chemin_cache}  
/trunk/services/configurations/config_baseflor.ini
/trunk/services/configurations/config_bdtxa.ini
/trunk/services/configurations/config_chorodep.ini
/trunk/services/configurations/config_eflore.ini
/trunk/services/configurations/config_moissonnage.ini
811 3925 d 19 h raphael /trunk/services/modules/0.1/ projets/tests: fix class-name conflict sur "Cartes"  
/trunk/services/modules/0.1/Projets.php
/trunk/services/modules/0.1/bdtxa/Cartes.php
/trunk/services/modules/0.1/chorodep/Cartes.php
/trunk/services/modules/0.1/eflore/Cartes.php
/trunk/services/modules/0.1/moissonnage/Cartes.php
810 3925 d 20 h raphael /trunk/services/configurations/ config: changements des valeurs par défaut ("bdd_nom" pour cel et "chemin_cache" en test)  
/trunk/services/configurations/config_cel.ini
/trunk/services/configurations/test-conf.sed
809 3925 d 21 h raphael /trunk/services/modules/0.1/nvjfl/ nvjfl: utilisation de la bonne URL de webservice (prod-prod, test-test)  
/trunk/services/modules/0.1/nvjfl/NomsVernaculaires.php
808 3925 d 22 h raphael /trunk/services/modules/0.1/baseflor/ r807 follow-up: conflit de nom de méthode pour convertirEnPNGAvecRsvg|indexerFichierPng dans CommunGraphiques.php  
/trunk/services/modules/0.1/baseflor/CommunGraphiques.php
807 3925 d 22 h raphael /trunk/services/modules/0.1/ chorodep|bdtxa/cartes: factorisation du code de génération du fichier de carte PNG, dans Commun  
/trunk/services/modules/0.1/bdtxa/cartes/TaxonsCartes.php
/trunk/services/modules/0.1/chorodep/cartes/TaxonsCartes.php
/trunk/services/modules/0.1/commun/Commun.php
806 3926 d 3 h raphael /trunk/services/configurations/ config: fix la génération automatique de bdd_nom pour prendre en compte tb_cel[_test]  
/trunk/services/configurations/config_cel.ini
/trunk/services/configurations/test-sous-conf.sed
805 3926 d 3 h raphael /trunk/services/modules/0.1/chorodep/cartes/ chorodep/cartes: test du retour de exec(rsvg-convert)  
/trunk/services/modules/0.1/chorodep/cartes/TaxonsCartes.php
804 3926 d 4 h raphael /trunk/services/modules/0.1/chorodep/cartes/ chorodep/cartes: test présence répertoire de cache lors de la génération des vignettes png  
/trunk/services/modules/0.1/chorodep/cartes/TaxonsCartes.php
803 3926 d 22 h raphael /trunk/services/modules/0.1/nvjfl/ nvjfl: compat PHP-5.2, utilisation de "self::m" au lieu de "static::m"  
/trunk/services/modules/0.1/nvjfl/NomsVernaculaires.php
802 3926 d 23 h raphael /trunk/services/configurations/ config: amélioration du Makefile et suppression de double-quote problèmatiques pour parser les .ini  
/trunk/services/configurations/Makefile
/trunk/services/configurations/config.defaut.ini
/trunk/services/configurations/config_test.ini
/trunk/services/configurations/prod-conf.sed
/trunk/services/configurations/test-conf.sed
/trunk/services/configurations/test-sous-conf.sed
801 3926 d 23 h raphael /trunk/services/ cache: fix de l'obtention de la durée du cache auprès de Commun  
/trunk/services/bibliotheque/CacheEflore.php
/trunk/services/modules/0.1/commun/Commun.php
800 3927 d 0 h raphael /trunk/services/configurations/ config: correction de la directive "donnees" pour coste.ini  
/trunk/services/configurations/config_coste.ini
799 3927 d 0 h raphael /trunk/services/configurations/ config: ajout d'un Makefile pour la génération des fichiers de configuration en -test et en -prod  
/trunk/services/configurations/Makefile
/trunk/services/configurations/prod-conf.sed
/trunk/services/configurations/test-conf.sed
/trunk/services/configurations/test-sous-conf.sed
/trunk/services/configurations/config.defaut.ini
798 3927 d 1 h raphael /trunk/services/configurations/ config: quelques modifications/améliorations issues de l'état du serveur + saut de ligne en fin de fichier  
/trunk/services/configurations/config.defaut.ini
/trunk/services/configurations/config_baseflor.ini
/trunk/services/configurations/config_baseveg.ini
/trunk/services/configurations/config_bdnt.ini
/trunk/services/configurations/config_bdtfx.ini
/trunk/services/configurations/config_bdtxa.ini
/trunk/services/configurations/config_bibliobota.ini
/trunk/services/configurations/config_cel.ini
/trunk/services/configurations/config_chorodep.ini
/trunk/services/configurations/config_coste.ini
/trunk/services/configurations/config_eflore.ini
/trunk/services/configurations/config_fournier.ini
/trunk/services/configurations/config_insee-d.ini
/trunk/services/configurations/config_iso-3166-1.ini
/trunk/services/configurations/config_iso-639-1.ini
/trunk/services/configurations/config_lion1906.ini
/trunk/services/configurations/config_moissonnage.ini
/trunk/services/configurations/config_nva.ini
/trunk/services/configurations/config_nvjfl.ini
/trunk/services/configurations/config_nvps.ini
/trunk/services/configurations/config_osm.ini
/trunk/services/configurations/config_photoflora.ini
/trunk/services/configurations/config_prometheus.ini
/trunk/services/configurations/config_test.ini
/trunk/services/configurations/config_wikipedia.ini
797 3927 d 2 h raphael /trunk/services/ config: substitution des directives de configuration `cache.*` par `cache_*`

Commande effectuée:
$ sed -i -r \
-e 's/cache\.(stockageChemin|miseEnCache|dureeDeVie)/cache_\1/' \
-e "s/\$this->config\['cache'\]\['(stockageChemin|miseEnCache|dureeDeVie)'\]/\$this->config['cache_\1']/" \
$(egrep -rl 'cache.*(miseEnCache|dureeDeVie|stockageChemin)')
 
/trunk/services/configurations/config_baseflor.ini
/trunk/services/configurations/config_bdtxa.ini
/trunk/services/configurations/config_chorodep.ini
/trunk/services/configurations/config_eflore.ini
/trunk/services/configurations/config_moissonnage.ini
/trunk/services/modules/0.1/baseflor/CommunGraphiques.php
/trunk/services/modules/0.1/bdtxa/cartes/TaxonsCartes.php
/trunk/services/modules/0.1/chorodep/cartes/TaxonsCartes.php
796 3927 d 2 h raphael /trunk/services/tests/0.1/baseflor/ config: substitution de cache.stockageChemin par cache_stockageChemin  
/trunk/services/tests/0.1/baseflor/GraphiquesBaseflorTest.php
795 3927 d 2 h raphael /trunk/services/ config: substitution de cache.stockageChemin par cache_stockageChemin car
framework::Config() ne sait pas traiter une variable dotée d'un point dont
la partie gauche ne représente pas une section d'un fichier .ini.

Commande effectuée:
$ sed -i \
-e 's/cache.stockageChemin/cache_stockageChemin/' \
-e "s/\$this->config['cache']['stockageChemin']/\$this->config['cache_stockageChemin']/" \
configurations/* modules/0.1/*/*/*.php modules/0.1/eflore/Cartes.php tests/0.1/baseflor/GraphiquesBaseflorTest.php
 
/trunk/services/configurations/config_baseflor.ini
/trunk/services/configurations/config_bdtxa.ini
/trunk/services/configurations/config_chorodep.ini
/trunk/services/configurations/config_coste.ini
/trunk/services/configurations/config_eflore.ini
/trunk/services/configurations/config_moissonnage.ini
/trunk/services/modules/0.1/eflore/Cartes.php
/trunk/services/modules/0.1/eflore/cartes/CbnmedFormateur.php
/trunk/services/modules/0.1/eflore/cartes/CelFormateur.php
/trunk/services/modules/0.1/eflore/cartes/CenlrFormateur.php
/trunk/services/modules/0.1/eflore/cartes/GeneralFormateur.php
/trunk/services/modules/0.1/eflore/cartes/SophyFormateur.php