NASA-AMMOS / aerie

A software framework for modeling spacecraft.
https://nasa-ammos.github.io/aerie-docs/
MIT License
73 stars 19 forks source link

Procedural scheduling migration fix patch #1601

Closed skovati closed 1 week ago

skovati commented 1 week ago

Fixes an issue discovered by @parkerabercrombie during database migration while upgrading from Aerie 2.11.2 to 3.1.0:

This PR fixes the issue by assigning a "dummy value" to any goal analysis rows which would have suffered from this problem - instead of setting the goal_invocation_id to null, we (somewhat arbitrarily) set it to the negative of the goal id which instantiated it. This could have been any valid integer, but we decided to use this as the value since it gives us a bit more information about where the analysis came from.

(summarized by @dandelany )