Contribution status bar doesn't update in some projects
manjitapandey opened this issue · 4 comments
Describe the bug
The horizontal bar on project card, project page and tasks page doesn't update sometimes with the tasks status update. I have mapped and validated every tasks on a project with no bad imageries. but when i see the progress bar, it shows only 95% of tasks has been validated.
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://tasks.hotosm.org/projects/16531
- Click on 'contribute'
- See all projects mapped and validated but not updated on contributions bar error.
Expected behavior
The status of contribution bar should be updated according to the number of tasks mapped and validated.
This bug is hard to review later in time. Because after a while (let's say the next day) the information is presented correctly.
So in my experience how to reproduce the bug is to take any project, make all the validation done and immediately after that start to examine the status of the project in the dashboard, in the project description and in the tasks overview (even after the hard reload of the browser). Please note that I also reviewed the status of the tasks in the stats page of the project saying that all of the tasks were finished and 0 tasks were waiting to be mapped or validated or have been in the unavailable status.
See the screenshots
The 95% completion rate aligns with the fact that tasks 25, 68, and 71 of this project are yet to be validated. While it may appear that all tasks are validated on the map, these particular tasks might be hidden or not displayed properly.
Hi, thanks @prabinoid, your statement is related to the project https://tasks.hotosm.org/projects/16531/stats/. That's also reason why I've added my comment and the screenshots after refreshing the browser (Ctrl+Shift+R) to be sure that stats page shows 100% of the tasks finished. Also as I mentioned, it's hard to review project in the past. Best way to reproduce this bug is to try validate all (for example on the staging site) and immediately after the validation examine the project.
I've tried to use staging site to demonstrate current behavior, but I'm not able to submit multiple validated tasks at once to prepare the 'after status' of the project for screenshots.
Now I was able to reproduce it exactly with the staging site and the testing project https://tasks-stage.hotosm.org/projects/14937
and after the validation and reloading all the pages
As you can see,
- the stats page https://tasks-stage.hotosm.org/projects/14937/stats/ says that every mapped task is validated - OK
- the tasks tab https://tasks-stage.hotosm.org/projects/14937/tasks says that my last contribution was 1 minute ago - OK
- the project overview https://tasks-stage.hotosm.org/projects/14937 displays correctly that everything is validated, but the last contribution time is wrong - NOT OK
- the explore page (projects dashboard) https://tasks-stage.hotosm.org/explore wrongly displays that there are tasks to be validated - NOT OK