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

Contribution status bar doesn't update in some projects #6364

Open
manjitapandey opened this issue Apr 29, 2024 · 4 comments
Open

Contribution status bar doesn't update in some projects #6364

manjitapandey opened this issue Apr 29, 2024 · 4 comments

Comments

@manjitapandey
Copy link

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:

  1. Go to 'https://tasks.hotosm.org/projects/16531
  2. Click on 'contribute'
  3. 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.

Screenshots
image

@anthaas
Copy link

anthaas commented May 2, 2024

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

03
02
01

@prabinoid
Copy link

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.

@anthaas
Copy link

anthaas commented May 6, 2024

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.

@anthaas
Copy link

anthaas commented May 6, 2024

Now I was able to reproduce it exactly with the staging site and the testing project https://tasks-stage.hotosm.org/projects/14937

before
before01
before02
before03
before04

and after the validation and reloading all the pages
after01
after02
after03
after04

As you can see,

  1. the stats page https://tasks-stage.hotosm.org/projects/14937/stats/ says that every mapped task is validated - OK
  2. the tasks tab https://tasks-stage.hotosm.org/projects/14937/tasks says that my last contribution was 1 minute ago - OK
  3. 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
  4. the explore page (projects dashboard) https://tasks-stage.hotosm.org/explore wrongly displays that there are tasks to be validated - NOT OK

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

No branches or pull requests

4 participants