Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: Allow circular dependency resolution (#26)
* FEAT: Allow one level of circular dependency resolution (where one fixture refers to another that hasn't been defined yet) * - Don't loop over all objects and delete individually, as it needlessly creates versions for each deletion, and we TRUNCATE TABLE anyway - Allow recursion over the list of fixtures to allow multiple attempts to create fixtures (still won't help with actual circular dependencies, but will help when A depends on B depends on C, C will get created in the first loop, then B gets created, then A gets created. Script will fail when two subsequent runs over failed fixtures doesn't change the number of fixtures that remain (e.g. we've deadlocked). * Update PopulateFactory to correctly create / modify existing files * Fixing mistake from rebase * Try/catch/log File creation. Linting Co-authored-by: Chris Penny <[email protected]>
- Loading branch information