-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract topographical sort logic into dedicated package (#196)
The existing data source update sink has logic for computing a topological sort on the SDK's data set. This is ultimately used to insert data into a persistent store via `Init`. If we didn't do this, then (since stores are not atomic) evaluations for a given flag might require a prerequisite or segment that doesn't yet exist in the store. This logic is also needed in the FDv2 data system. Since it was an implementation detail of the existing v1 data sources, I've extracted it into a dedicated package. Finally, this commit modifies the types and methods to use graphing terminology, hoping to make its function more intuitive.
- Loading branch information
1 parent
e9c3a3f
commit 1c400a1
Showing
4 changed files
with
246 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.