eyeseetea / dhis2-android-sdk Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dhis2/dhis2-android-sdk
SDK for building Android apps for DHIS 2
License: BSD 3-Clause "New" or "Revised" License
This project forked from dhis2/dhis2-android-sdk
SDK for building Android apps for DHIS 2
License: BSD 3-Clause "New" or "Revised" License
At least create the following sections:
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.
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..
}
Introduce fields:
Methods:
DataValueExtended:
setProvidedElsewhere Is not necessary?
getEvent() Is returning null
EventExtended:
setFromServer Is not necessary?
getDataValues() Is returning null.
ProgramStageExtended
getProgramStageSections()
getProgramStageDataElements()
logout() functionality would be migrated to a wipeDB() function, and logout() would stay just for deleting the AuthorizedUser table
Create a branch from the parametrise number of event branch #13
Parametrise how many events are downloaded. At the moment 200 events are downloaded (hardcoded number). This should be the value by default.
Try new method to download events proposed by @xurxodev
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
Some optionSets are not saved in the dhis database, for example "akyRgB3QVhB"
Instead of downloading a number of events, modify the sdk be able to download by time (last X months)
This is a fork of sqlbrite, so you probably would need to change the use of sqlbrite as it is now, and replace it by this library, that facilitates the introduction of DB migrations
Done, but needs to be tested
checkControlDigits: not implemented in the web app
https://github.com/dhis2/d2-tracker/blob/master/src/dhis2.angular.services.js#L2380
addControlDigits: implemented in trackercapture web app but not in android app
https://github.com/dhis2/d2-tracker/blob/master/src/dhis2.angular.services.js#L2323
Done but needs to be tested
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
Using sqlbrite-migrations or sqlbrite-dao, or any other suggestion that could raise anyone in the team
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.