Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(backup): Standalone dependencies calculation
Prior to this change, the `sort_dependencies` function was the only public dependency calculation that the import/export system used, merely returning a list of models in dependency order. This change splits part of that functionality out, exposing an intermediate state where we can see all of the model relations for a given model, including which fields they occupy on the main model. This will be useful when we add "foreign-key remapping" capabilities on import. To facilitate this, we have added a couple of fixtures that capture the state of the model dependency graph in source control, in both detailed and flattened form. These serve a few purposes: 1. It maintains a record in source control of model dependency graph changes. 2. It notifies team-ospo of any such changes, allowing us to ensure that they don't break import/export functionality. 3. It serves as a simple golden test for the dependency resolution mechanism. Issue: getsentry/team-ospo#171
- Loading branch information