GithubHelp home page GithubHelp logo

Comments (1)

davidhuser avatar davidhuser commented on July 3, 2024 1

hi @Gutorm , many thanks for reporting it.

The import_response_ok function has been a way (or a small crutch...) to handle the inconsistencies of the DHIS2 API when it returned a 200 OK in cases when actually data values were ignored. Whether it is still a way to handle this I cannot tell, as I've not worked with recent DHIS2 versions (2.40+) or the wrapper for a while now. Ideally you would fully rely on the API response's status code instead, and report it as a bug with the DHIS2 team if it returns a 200 for a data import with ignored values?

What I always found useful was to look at the official Import/Export app in DHIS2 and open the Developer console > Network tab. Based on that you can write your own logic to make sure the import works in that particular version (e.g. through the api.version_int attribute).

At the moment I cannot find the time to update this library, but I would be happy to merge a Pull Request 😊

from dhis2.py.

Related Issues (14)

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.