Giter VIP home page Giter VIP logo

dhis2-android-sdk's People

Contributors

arazabishov avatar erlingfjelstad avatar russnes avatar luckytommy avatar bekkalizer avatar vladislavalfredov avatar xurxodev avatar oysteinga avatar ifoche avatar idelcano avatar longnt06658 avatar

Watchers

James Cloos avatar Jose Garcia avatar  avatar  avatar  avatar  avatar  avatar

Forkers

elcruci xurxodev

dhis2-android-sdk's Issues

Start with documentation wiki

At least create the following sections:

  • Functions:
  • Sync methodology:
  • Installation/configuration:
  • Debug:
  • Test:
    • Include how to run the tests
    • Include how to extract DB from a test
  • Development methodology:
    • Include little explanation about MockWebServer and Mockito and detail the steps you used to develop the first functionality

2nd login doesn't retrieve the user OU tree

A quick login-logout-login test demonstrates that either in the login or the logout process, something's going wrong regarding the downloaded OUs. The first pull downloads both the OU directly assigned to the user and the descendants, while subsequent logins after a logout, only retrieve the directly assigned ones.

SDK: Pull 403 error in mute

When you pull datavalues with a user without the right permissions the response brings an error (403) that it simply catch without any type of notification.

See: (TrackerDataLoader):

                        try {
                        getEventsDataFromServer(dhisApi, organisationUnit.getId(), program.getUid(), serverDateTime);
                        } catch (APIException e) {
                        e.printStackTrace();
                        //todo: could probably do something prettier here. This catch is done to prevent
                        // stopping loading of the following program/orgUnit as throwing and exception would exit the loop..
                        }

Polish 2.25 SDK

Introduce fields:

  • code in DataElementFLow
  • path in OrganisationUnitExtended

Methods:

  • DataValueExtended:
    setProvidedElsewhere Is not necessary?
    getEvent() Is returning null

  • EventExtended:
    setFromServer Is not necessary?
    getDataValues() Is returning null.

  • ProgramStageExtended
    getProgramStageSections()
    getProgramStageDataElements()

New SENDMESSAGE actionType

  • New ProgramRuleActionType.SENDMESSAGE.
  • Its corresponding action class needs to be created in core-rules.
  • The class takes only one parameter "notification"
  • Apart from that, we need to add control flow statement in RuleEngineExecution.

Parametrise number of events in sdk

Parametrise how many events are downloaded. At the moment 200 events are downloaded (hardcoded number). This should be the value by default.

Retrieve all OrgUnits parameters

The SDK is currently downloading just a few parameters for each OrgUnit. We need to add columns in the SDK DB to hold all the OrtUnit parameters that we've actually available in the json answer to the API call

optionSets not saved

Some optionSets are not saved in the dhis database, for example "akyRgB3QVhB"

Retrieve OrgUnit levels with the SDK

There is an api call to get the OrgUnit levels. The idea would be to get those OrgUnit levels, combine that information with the downloaded OrgUnits looking at the "ancestors information" of each OrgUnit api call to build the dependencies between levels and build the tree in our DB

Implement DB migrations

Using sqlbrite-migrations or sqlbrite-dao, or any other suggestion that could raise anyone in the team

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.