PacificEMIS / pacific-emis-education-survey-tool

Pacific EMIS Education Survey Tool is the android app used for survey data collection integrated with the Pacific EMIS
GNU General Public License v3.0
1 stars 4 forks source link

Add emis_url setting #14

Closed ghachey closed 2 years ago

ghachey commented 3 years ago

Some new work will require the app to get data from the EMIS (getting list of schools, list of teachers). For this we need a flexible way to configure how to access the EMIS API. A new setting shall be added as shown below for the Pacific EMIS Education Survey Tool.

emis_url

This of course will be required in all the relevant firebase projects (i.e. MIEMIS Education Survey Tool, FedEMIS Education Survey Tool)

Similarly, the Pacific Open Education project should have the same settings (refer to its own issue at https://github.com/ghachey/pacific-open-education-data/issues/4)

ghachey commented 3 years ago

Feedback:

1) This seems mostly working but.... 2) Related to this issue we also needed the same thing in the Pacific Open Education Data app. I even link to it from the issue. https://github.com/ghachey/pacific-open-education-data/issues/4 3) If I change any of the below I need a complete re-installation of the app to make it work. A Force Fetch new settings does not seem to work.

remote-config

ghachey commented 3 years ago

From Omega-R's Marina:

To get the lists of Teachers and Subjects from the server we generate a token. It is generated based on the login and password from Force Fetch. And this token is saved till the app is restarted. So, to make the new Force Fetch settings work and create a new token, we just need to close the app, clear from memory and open it again. Is that critical?

ghachey commented 3 years ago

Closing and re-opening the app to get the force fetch to work is acceptable yes.