earthrise-media / plastics

Other
14 stars 7 forks source link

Appears that all contours in the testing API are attached to the same site #30

Closed tmcw closed 3 years ago

tmcw commented 3 years ago

Right now the contours for most sites are empty:

https://plastic-api-dorvc455lq-uc.a.run.app/sites/29/contours

But site 2 has 474 contours, and they have 'name' attributes indicating that they belong to a variety of sites that are not the same as site 2.

https://plastic-api-dorvc455lq-uc.a.run.app/sites/2/contours

/ @tingold

tingold commented 3 years ago

I had been adding some contours to various sites for testing. The contour attributes aren't checked on insert so it's possible to add contours with names that don't match the site name. We can do validation or overwrite that if it would help. Site 2 is now deleted but I see the behavior in this site https://plastic-api-dorvc455lq-uc.a.run.app/sites/134/contours

tmcw commented 3 years ago

I've replaced all of the previous data with new data.