maproulette / maproulette3

MapRoulette, the micro-tasking tool for OpenStreetMap
https://maproulette.org
MIT License
127 stars 34 forks source link

when a tab inspecting a task is left open for a while task state reverts to "created" #1391

Open govvin opened 4 years ago

govvin commented 4 years ago

I randomly encounter this issue while inspecting tasks.

Sometimes, a task needs some editing, and after modifying it, it sometimes revert the task status from Fixed back to Created.

In the past, I've always wondered how we're getting a few "created" tasks but it seems this action seems to be triggering it sometimes.

nrotstan commented 4 years ago

Thanks for reporting, this @govvin . When you say you modify the task, do you mean the MR task data or doing further work on OSM? Any additional detail you can provide on the steps you're taking would be helpful.

govvin commented 4 years ago

Hi Neil

I modify the task from MR (usually changing MR tags, or its status) . Often, this would entail editing the OSM data, but not necessarily.

I feel that when I am editing the task state in MR, it maybe timing out somehow and that reverts the task to "Created"?

Also, is there a way to filter these newly "created" tasks so I can confirm or update their real state?

nrotstan commented 4 years ago

You can certainly filter by status in the tasks table when managing the challenge, but I don't think we offer an easy way to separate tasks newly set to Created from tasks that were previously in Created status. Technically the tasks have a last-modified timestamp, but I don't think we surface that through the frontend currently -- you'd need to use the API. If you've been setting MR tags on them, you can also filter by tag.

We also happen to have a bug that was recently fixed, but not yet included in a release, where the "Mapped On" timestamp wasn't always getting cleaned up when a task was set back to Created from a completed status. So you could try filtering by Created and then sorting by Mapped On (you may need to add that column to your table using the cog control and choosing Configure Columns) and see if you get lucky.

govvin commented 4 years ago

Well, it's not really urgent, but having extra eyes check on a 'new' task isn't really bad for our project. It's just that the behavior is unexpected.

Will try out the API one of these days.

govvin commented 3 years ago

Hi again. I would like to report that this bug is still happening, and not intermittent. It's not an issue for task contributors, but it is for challenge managers.

When you inspect a task and click the modify button, then leave the tab open for some time (I don't know how many minutes exactly) a task state reverts to "created" on its own. Even if you modify the task status (e.g. changed it to "fixed"), if the task tab is open for too long, the status in the database appears to reset to "created".

The workaround around is refresh the page, and set the task status again after it's been reloaded.