tnc-ca-geo / animl-frontend

A frontend web app for viewing & labeling camera trap data by The Nature Conservancy.
https://animl.camera
Other
18 stars 0 forks source link

Ability to merge camera serial numbers #241

Closed nathanielrindlaub closed 1 month ago

nathanielrindlaub commented 1 month ago

An extension of #228. As the PR for that issues currently stands, you can update a camera's SN to be the same as an existing camera's in that project, but the images don't automatically get consolidated into one camera because the deployment Ids for the camera stay the same. To do so, I think the steps would look like this:

  1. update all matching Images' cameraId fields with the new SN
  2. find the source (original) cameraConfig in that Project, and delete it
  3. if "merge deployments" option is checked (not sure how critical this even is?), for each non-default deployment from the source cameraConfig, create a new deployment on the target's cameraConfig
  4. run remapImgsToDeps on all images that have the new SN (technically this won't be necessary if "merge deployments" was checked & we created new deployments)
  5. update views. If any of the source deployments were used as filters in views, remove them from the filters.
nathanielrindlaub commented 1 month ago

And I think we should allow merging into a wireless camera. I don't see the harm in that.

nathanielrindlaub commented 1 month ago
nathanielrindlaub commented 1 month ago
nathanielrindlaub commented 1 month ago

Note: I didn't end up implementing a "merge deployments" option. Too complex for now.