EyeSeeTea / malariapp

Android app to help with health center assessments (development repository)
GNU General Public License v3.0
6 stars 3 forks source link

Include custom tabs in normal pull #794

Closed ifoche closed 8 years ago

ifoche commented 8 years ago

@ivanarrizabalaga I sent you an email with the R10 apk for Tanzania, just to let you see that Program "Tanzania checklist" Tab Group "General OTSS" has a custom tab called "Adherence" you can use as a template of how it was working before.

Regarding the server, @josemp10 is creating a new server (apparently it will be in eds-dev.psi-mis.org) with all the metadata for those custom tabs uploaded. Please @josemp10, keep @ivanarrizabalaga informed about that progress, so he can work on it after you finish.

Thanks both!

ifoche commented 8 years ago

@ivanarrizabalaga just a few things about how will be the metadata implemented in the new eds-dev.psi-mis.org server:

Please, if something is not clear or you find any problem during the implementation, just give me a call.

Thanks!

ifoche commented 8 years ago

@ivanarrizabalaga @idelcano there's a new development server up and running with the EDS data (http://eds-dev.psi-mis.org). I've created users for both (iarrizabalaga and idelcano) and I'll send you pwds in separate mail. You've permissions for the only Programs that Jose has checked for the moment (Malawi ones). Please let me know if you have any problem doing pull/push to/from that server.

Thanks!

ifoche commented 8 years ago

@ivanarrizabalaga regarding the questions that we talked about in our last hangouts:

...and we're using the first one. In that kind of report, only 1 ProgramStage can be used in a Program (DHIS doesn't allow multiple ProgramStages). To use Multiple Stage With Registration we would need to use tracker events and change a lot of things, so we're limited by DHIS2 capabilities, and we will have to continue using (just for the moment, we'll change it later) ProgramStageSections to map both TabGroups and Tabs (it's very ugly, I know, after the pilot in Kenya we will have to change it).

ivanarrizabalaga commented 8 years ago

@josemp10 It looks like in eds-dev the attribute for Question Type (RkNBKHl7FcO) have NO code (null instead of DEQuesType).

It is very important since this value is used to determine the type of question.

I dont have the rights to change any of this in the server.

ifoche commented 8 years ago

@ivanarrizabalaga I've just configurated it. It was not that the only metadata missing. Supervisor, OUProductivityValues & PProductivityFactor Attributes were not present a multiple other attributes didn't have their code configured and even there was an attribute with the code wrong. They're supposed to be fixed now, but please let me know if you find out anything else.

@josemp10 there's also a new piece of metadata in this server that I don't know why is it there for, it's an attribute called "type of facility". Do we have to take it into account for anything?

ivanarrizabalaga commented 8 years ago

@ifoche There are questions with:

optionSet = TG8w4sXTlEB

But there is no optionSet with that ID in the server anymore. I've checked other servers (https://hnqis-dev-ci.psi-mis.org/api/optionSets?paging=false&fields=*,options[*,attributeValues[*]]) and that UID belongs to the::

OuiNon (to be removed) (HNQIS)

There are 482 with this optionset in the server

ifoche commented 8 years ago

@josemp10 I'm trying to look at this, but as you can imagine, this is something that you'd fix much quicker than me. Please, can you take care of this as soon as you are available? In the meanwhile I'll try to guess how to do it.

josemp10 commented 8 years ago

On Thu, Mar 24, 2016 at 10:26 AM, Ignacio Foche notifications@github.com wrote:

@josemp10 https://github.com/josemp10 I'm trying to look at this, but as you can imagine, this is something that you'd fix much quicker than me. Please, can you take care of this as soon as you are available? In the meanwhile I'll try to guess how to do it.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/EyeSeeTea/malariapp/issues/794#issuecomment-200752022

ifoche commented 8 years ago

Hi @josemp10 . I thought you knew that code between HNQIS and EDS is essentially following the same scheme. Not providing the minimum metadata needed by the pull will potentially make the app crash. If Productivity is not going to be used in EDS it's something that we cannot guess, we have to assume that pull is the same as in HNQIS, or we will go crazy by including a lot of exceptions. I think that a good point would be to make some kind of metadata document with the scheme that the user is going to have and so we can adapt ourselves to that scheme. However, that's not the main problem here. The OptionSet was the main problem to continue. @ivanarrizabalaga can you confirm that you can now continue, taking into account that there's now an OptionSet with that UID?

ivanarrizabalaga commented 8 years ago

That's enough for me to go on. El 24/3/2016 11:44, "Ignacio Foche" notifications@github.com escribió:

Hi @josemp10 https://github.com/josemp10 . I thought you knew that code between HNQIS and EDS is essentially following the same scheme. Not providing the minimum metadata needed by the pull will potentially make the app crash. If Productivity is not going to be used in EDS it's something that we cannot guess, we have to assume that pull is the same as in HNQIS, or we will go crazy by including a lot of exceptions. I think that a good point would be to make some kind of metadata document with the scheme that the user is going to have and so we can adapt ourselves to that scheme. However, that's not the main problem here. The OptionSet was the main problem to continue. @ivanarrizabalaga https://github.com/ivanarrizabalaga can you confirm that you can now continue, taking into account that there's now an OptionSet with that UID?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/EyeSeeTea/malariapp/issues/794#issuecomment-200783374

josemp10 commented 8 years ago

Ok, I will take care of that metadata document. About the codes, yes, it may be my fault or that DHIS2 didn't import those values properly. Likely my fault, but I need to check that. Can you let me know what other attribute codes were missing?

I didnt change anything regarding that optionset. As far as I know that optionset was 'always' there (have you tried to test it before with https://eds-dev.psi-mis.org/api/optionSets/TG8w4sXTlEB and did you receive an error?)

On Thu, Mar 24, 2016 at 11:44 AM, Ignacio Foche notifications@github.com wrote:

Hi @josemp10 https://github.com/josemp10 . I thought you knew that code between HNQIS and EDS is essentially following the same scheme. Not providing the minimum metadata needed by the pull will potentially make the app crash. If Productivity is not going to be used in EDS it's something that we cannot guess, we have to assume that pull is the same as in HNQIS, or we will go crazy by including a lot of exceptions. I think that a good point would be to make some kind of metadata document with the scheme that the user is going to have and so we can adapt ourselves to that scheme. However, that's not the main problem here. The OptionSet was the main problem to continue. @ivanarrizabalaga https://github.com/ivanarrizabalaga can you confirm that you can now continue, taking into account that there's now an OptionSet with that UID?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/EyeSeeTea/malariapp/issues/794#issuecomment-200783374

ivanarrizabalaga commented 8 years ago

Status:

ifoche commented 8 years ago

@ivanarrizabalaga thank you very much, have a good holidays!

ifoche commented 8 years ago

@josemp10 I've told you by mail. OptionSets were probably there but only superusers could see them, they were not available for normal users (like @ivanarrizabalaga). And it's so strange as there were some OptionSets opened to everybody with login and some others with permissions just for superusers. Regarding the attribute codes that were missing, I can't remember exactly which of them. It was like half of them didn't have their code set.

ivanarrizabalaga commented 8 years ago

@ifoche Thanks!

The latest: https://github.com/EyeSeeTea/malariapp/tree/custom_tabs

ivanarrizabalaga commented 8 years ago

@ifoche, @josemp10 the question by uid m0f4mdp8aXq needs to update its order_pos to 175.

Right now in eds-dev this question (age) and the next one (gender) for the first row of the table1 have the same order which makes both columns switch its places.

ivanarrizabalaga commented 8 years ago

Updated Status:

ifoche commented 8 years ago

@ivanarrizabalaga I've changed the question order. Can you recheck?

ivanarrizabalaga commented 8 years ago

perfect! thanks @ifoche