Skip to content

Data inconsistency between project progress and groups' requireCount #1019

@ofr1tz

Description

@ofr1tz

Some Validate projects (and, potentially also Street projects) that are near completion cannot be mapped on with MapSwipe web. This seems to be based on data inconsistencies within Firebase RTDB and between Firebase and Postgres. I checked for one project on the dev instance, and found the following:

  • All groups of that project had a requiredCount of 0 on Firebase. MapSwipe web queries Firebase for task groups with a requiredCount >0. Thus, to MapSwipe web, there are no tasks available for the user in this case.
  • At the same time, the project had a project progress of 92 on Firebase. With all groups having a zero requiredCount, I would expect progress to be 100.
  • In Postgres, there were two task groups of that project that had only 2 mapping sessions registered. With all groups having a zero requiredCount, I would expect that all task groups have at least 3 mapping sessions.

MapSwipe web will not allow users to map on task groups with a requiredCount of 0, as these groups are considered completed. As a consequence, MapSwipers will not be able to finish this project on the web version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions