Challenge identifier not used
I had a challenge with lots of tasks and re-generated those tasks and uploaded again. Now I have them all twice. I would have expected Maproulette to understand the unique identifiers and do a de-duplication.
@joto Are referring to the identifiers you assigned yourself to the tasks or to the ones that are returned by MapRoulette upon creation?
Identifiers I assigned myself. There was something in the old documentation about a special "identifier" named property. Any IDs created by Maproulette wont help here obviously.
I found with the API that the 'name' field is a primary key, and the 'identifier' is saved with the task but otherwise ignored. (as best as I could tell). The task 'id' is assigned by MapRoulette when it detects a new 'name' value.
The task 'id' field is in various API functions and for permalinks within MapRoulette, however @bikeoid is correct the primary key identifier is the "name" of the task. So if the name changes a new task will be created even if the task is essentially the same task.
If you are talking about simply uploading geojson (I am not 100% certain as to which Identifier you are assigning) then unfortunately it will create new tasks on each upload. This probably would need to be addressed but currently is not.
Okay, so this means I can not just upload tasks, I have to download them all again through the API and match my IDs to the Maproulette IDs, so that later I can only upload new tasks and delete tasks I detected as already done? Should I use the id or the name from Maproulette for that?
Is there a way to get back all tasks that were marked as too difficult? Then I could delete all tasks, reupload the new task list without those that were marked before.
It really would be great if Maproulette would keep track of the IDs that I assign and generally help in this kind of workflow. This is something everybody needs to do who creates ongoing challenges and it is quite a lot of effort to do this outside Maproulette while it shouldn't be a big deal to do this inside Maproulette.
@joto What you seem to be trying to do sounds similar to something that Mapzen has worked on. We didn't remove too difficult tasks, but the process seems similar. The code is here https://github.com/valhalla/mjolnir/blob/master/py/challenge_admin/admin_tool.py. Hopefully it is a little helpful