Closed heidimok closed 1 year ago
only addition/really clarification i have: under "Decision" #3 - Whenever a deployment is added or changed, automatically updated the spatial bounds for the campaign:
if campaign bounds not originally entered, and campaign form is saved with default/whole world bounds, when curator adds a deployment (or multiple deployments) and the specific bounds for that deployment(s - which the spatial bounds need to required separately for each deployment) the campaign spatial bounds need to automatically update to be the inclusive set of all deployment spatial bounds.
A more ideal scenario would be for the campaign bounds to be the set of the separate deployment domains, but i'm not sure how this would be in implementation since most campaigns will have a single deployment but some have lots of deployments -- perhaps need to have discussion also on:
Sharing the result below:
Changes:
Will put task 2 for this as a Sprint 3 goal.
@smwingo @edkeeble @alukach @naomatheus
So, reading over what has been discussed so far:
spatial_bounds
for every campaignspatial_bounds
for campaigns and deploymentsspatial_bounds
based on deployment?So, overview from the current situation on the database:
spatial_bounds
that defaults to nullspatial_bounds
that defaults to nullSo, one possible option is to:
spatial_bounds
entirely from campaignspatial_bounds
on deployment. Make it required. Default to whole world?This solves all the front end issues, but has some curator and migration challenges.
spatial_bounds
for all deployments?When we remove spatial_bounds
from campaign, what will we do with the value
Thanks @CarsonDavis . We discussed this during our Feb 9 meeting (you may have been away).
My memory of the take-aways was:
spatial_bounds
attributes. This is good. Sometimes curators don't have spatial bounds for a deployment and we don't want to block them.spatial_bounds
attributes. We should remove this field and only care about the spatial bounds of the deployments.Regarding Carson's questions about migrating, I think we should discard the values from Campaign.spatial_bounds
. I think those were always a human-generated aggregate of the deployment's spatial bounds (I could be wrong on this) so nothing of true value would be lost.
Can we take a look to see this issue in the backlog https://github.com/NASA-IMPACT/admg-backend/issues/261 get closed as a result of the changes in this issue?
Context
CASEI was built with the assumption that spatial bounds would exist for every campaign. In the case of the AASE campaign, that assumption changed because we couldn’t find information about spatial bounds. This resulted in a build failure.
Discussed Options
Decision
Updated Decisions (updated Mar 7, 2023)