Giter VIP home page Giter VIP logo

geonature-mobile-webapi's People

Contributors

camillemonchicourt avatar clairelagaye avatar gildeluermoz avatar leplatrem avatar sgrimault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geonature-mobile-webapi's Issues

Conflit d'identifiant

L'application mobile créé un identifiant qui est utilisé pour l'insertion dans les table t_releves_occtax, t_occurrence_occtax et cor_roles_releve_occtax, ce qui crée des conflit.
Ne pas utiliser cet identifiant mais le serial

Compatibilité GN 2.5

Pour pouvoir utiliser les applications mobiles GeoNature-mobile v1 avec GeoNature v2, une branche dédiée de la webapi qui fait les mappings des données a été créée : https://github.com/PnEcrins/GeoNature-mobile-webapi/tree/compat_gn2
Utilisé au PNE depuis plusieurs mois.
Voir le diff : https://github.com/PnEcrins/GeoNature-mobile-webapi/compare/compat_gn2

Mais avec le passage à la version 2.0 du standard Occurrences de taxons dans GeoNature 2.5, il faut adapter les mappings

  • Ajout de la nomenclature Comportement et bascule de certains statuts bilogoqies dans les comportements
  • Suppression de la nomenclature "Technique d'observatione et renommage de la nomencature "Méthode d'observation"

Dans https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/compat_gn2/webapi/main/settings.py et https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/compat_gn2/webapi/main/views.py
Et peut-etre dans la BDD, schéma gn_synchronomade avec un SQL dédié : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/compat_gn2/compat_gn2.sql (incluant un exemple de JSON à poster - https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/compat_gn2/compat_gn2.sql#L26-L34) ?

SETTINGS - Cohérence & doublons

Le fichier settings_local.py est appelé dans settings.py. Les settings suivants sont donc en double et s'ils doivent être modifiés pour tenir compte de l'environnement du déploiement, il devrait être uniquement dans settings_local.py
DEBUG : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L7
DEBUG_TEMPLATE : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L8

DATABASES : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L17
TOKEN : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L177

Ce paramètre devrait être dans le settings_local.py
ADMIN : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L10

Ces paramètres ne sont jamais modifiés et pourraient ne figurer que dans settings.py
LOGGING : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L137
DATABASE_ID : https://github.com/PnEcrins/GeoNature-mobile-webapi/blob/master/webapi/faune/settings.py#L16

Compatibilité GeoNature

Porter les modifications réalisées pour une compatibilité avec GeoNature
faune/urls.py
faune/views.py
faune/settings.py
faune/settings_local.py

Bug Rollback

Lorsqu'on envoie des données qui provoquent des erreur à l'écriture en base (character varying pour une colonne qui attend des entiers, id observateur non présent en base etc...), le rollback effectué ne semble pas fonctionner. L'erreur suivante est levée:

SynchronizeError: ERREUR:  la transaction est annulée, les commandes sont ignorées jusqu'à la fin du bloc
de la transaction

et le json n'est pas enregistré dans la table d'archivage des erreurs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.