salish-sea / whale-ocean-alert

Content and code to support the Whale Alert and Ocean Alert mobile apps in the Salish Sea region and range of the SRKWs.
MIT License
0 stars 0 forks source link

Inconsistent data_source_id value format between trusted and deleted Cascadia web app records #8

Open scottveirs opened 11 months ago

scottveirs commented 11 months ago

I noticed today that upon deletion of an observation in the Cascadia web app, the point successfully disappears from the UI/map, but a new record is also posted to Acartia. The new record has the same ssemmi_id value, but the format of the value for the data_source_id field in the Acartia data scheme is different than in the initial record of the observation. In the initial record the value has no double quotes around it; in the deleted (trusted=0) record, it does have double quotes.

Here is an example:

Screenshot 2023-10-13 at 11 04 01 AM

I'm not sure if this is a bug on the Whale Alert / Spotter server side, or in the script that generates responses to the https://acartia.io/api/v1/sightings/current endpoint. I'm also not sure it is currently causing any serious issues, but in anticipation of thinking harder about the curation of Acartia records (including their "deletion") I wanted to document this (potential) bug.