Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing main poll map data #543

Open
periclesJ opened this issue Dec 16, 2019 · 2 comments
Open

Missing main poll map data #543

periclesJ opened this issue Dec 16, 2019 · 2 comments

Comments

@periclesJ
Copy link

periclesJ commented Dec 16, 2019

Hello guys, we just identified that a few country maps are not presenting their data in the main poll, even after a few ureporters have been participated. The maps still showing 0 ureporters.
Countries identified:

We have been searching for the source of the problem, we’ve tried resyncing orgs locally forcing tasks like "results-pull-main-poll”. @norkans7 We have checked the function "pull_results(cls, poll_id)" inside models.py from the polls app, we also reviewed the code on these sync tasks looking for any implementation problem but we couldn't track the source of the problem. We suspect that this issue is related to character encoding.

Do you guys have any suggestion to point related to where probably lays the source of this problem?, we are open to help fixing this issue.

See the pictures below:
Captura de Tela 2019-12-16 às 10 26 01
Captura de Tela 2019-12-16 às 10 24 35
Captura de Tela 2019-12-16 às 10 25 01

While upper country levels still empty, when we enter inside state/district levels the ureporters data becomes available.

Captura de Tela 2019-12-16 às 10 27 50
Captura de Tela 2019-12-16 às 10 27 20

@matmsa27
Copy link
Contributor

Hi @norkans7 , this issue is solved by this PR?

If not, can you help us to implement a fix and solve this problem?

Thanks a lot.
Regards.

@norkans7
Copy link
Contributor

Sorry @periclesJ I had not seen this issue.

@matmsa27 Yes that PR will fix the issue.
You can push https://github.com/rapidpro/ureport/releases/tag/v1.1.139 and loop Poll.objects.filter(is_active=True) and on each poll call https://github.com/rapidpro/ureport/blob/master/ureport/polls/models.py#L274

Alternatively, you can run the task https://github.com/rapidpro/ureport/blob/master/ureport/polls/tasks.py#L239 however that will miss the poll that stopped syncing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants