Coder Social home page Coder Social logo

odktools's People

Contributors

oguya avatar qlands avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

odktools's Issues

Handle external selects

Currently select_one_external are ignored. These must be implemented in the same way as select_one

Allow adding indexes in create XML file

Currently it is possible to edit the schema using the XML files however it is not possible to add new indexes to the schema. This can only be done by editing the SQL file but such edits will disappear with a new run of createFromMySQL

Handle dynamic selects from pre-loaded data

select_one and select_multiple can dynamically pull the choice lists from CSVs using the search() expression. Such cases are currently ignored but must be handled in the same way as simple select_one and select_multiple.

Error: Segmentation fault (core dumped)

There seems to be a bug with this new odk tool. When I try to run ODKToMYSQL as shown below:
cadoyo@ILRI16648:~/Data/Projects/GHGENandi$ ~/Data/Tools/odktools/ODKToMySQL/odktomysql -v q6seca_hhid -t geninfo -x ~/Data/Projects/GHGENandi/Nandi_FinHH/XLS050_JO.xlsx

Well I know, its a memory problem but I cant just seem to find where the bug is.

Collins

Check for duplicated options

Currently, ODK to MySQL generate insert scripts from ODK options but it is only when such scripts are executed that one is able to determine if an option has repeated codes. The tool should check for those errors and report about them.

Utilities when dealing with multiple ODK versions

A series of utilities are needed when dealing with multiple versions of an ODK. For example if one has 3 versions of a ODK with differences in terms of variables and repeats one should have one final database accommodating the 3 versions.

processing ODK data with multiple select

There is an issue while processing data with a multi-select column where the related field in the multi-select table does not get added in the create.sql file. Everything works fine until you get to the processing of the JSON into mysql where yo get the error about the missing field in a table.

Attached are the xlsx, separation file xml and a few JSON files for the testing.

NOTE: Github refused to upload .zip file so I renamed the attached file to .png Download it and rename to .zip to be able to open the files

testfiles

error: private/qzipwriter_p.h: No such file or directory

There seems to be a library missing in this: I get this error when I try to build.

/home/cadoyo/Data/Tools/odktools/3rdparty/QtXlsxWriter/src/xlsx/xlsxzipwriter.cpp:27: error: private/qzipwriter_p.h: No such file or directory
#include <private/qzipwriter_p.h>
^

Collins

Rollback 44d5325

We need to rollback 44d5325. This because XMLToJSON can be used without a database created by ODKToMySQL thus it cannot depend on a manifest file.

Input parameters in output files

The output files particularly the SQL files need to include the input parameters that generated such files. This is important for trace-ability

JSONToMySQL: Table keys might change from parent to child

The current code of JSONToMySQL assumes that the keys of a parent pass to a child however the key of a parent could be different of the child. For example:

Table A (Key A+B)
Table B: Child of A (Key C), (A+B are referenced fields to table A)
Table C: Child of B (Key C+D) --> Here fields A+B does not exists however JSONToMySQL assumes that they are.

Project name

It might be better to move this project from ilri/odktools to ilri/rmg-odktools. Most projects in the organisation are now following this naming convention.

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.