Data added to proofed visit is marked CLEAN

ZenDesk Ticket(s): https://pointbluehelp.zendesk.com/agent/tickets/9883

Jira issue(s): https://jira.aws.pointblue.org:8443/browse/PBI-4461

Description

If a user enters data for a visit (meaning a survey of points performed on the same day within the same transect), marks it as clean, and then either that same user or another user comes back to add more data to that same visit, that new data will automatically be marked clean, resulting in a missing proofing button.

There are 3 ways which this can be triggered. In all cases, a user must have entered and proofed data that is then later added to. After that, this issue occurs if:

  • The user comes back in to add more data to points which already have clean data using the new observations view (e.g. did not click "add more" under the observations table of the proofing page). This creates duplicate entries in the samplinggevent_count table with a RAW status. This does not occur if the user uses that add more button to add additional sightings.

  • The user comes back in to add data to points which do not already have any data, whether by clicking the "add more" under the points or observations tables in the proofing page, or via the new observations view. This creates new entries in the samplingevent_count table with a RAW status that can lead to events flipping statuses in the visit list.

Workaround

Don’t mark data as proofed until all data has been entered. Should a user need to add data to a visit already marked clean, only use the “add more” button under the observations table on the proofing page.