-
Notifications
You must be signed in to change notification settings - Fork 238
V2 track dependencies #4210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v2
Are you sure you want to change the base?
V2 track dependencies #4210
Conversation
Signed-off-by: Mark Phelps <[email protected]>
Signed-off-by: Mark Phelps <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2 #4210 +/- ##
=====================================
Coverage ? 49.95%
=====================================
Files ? 120
Lines ? 12014
Branches ? 0
=====================================
Hits ? 6001
Misses ? 5557
Partials ? 456
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Mark Phelps <[email protected]>
Signed-off-by: Mark Phelps <[email protected]>
Signed-off-by: Mark Phelps <[email protected]>
internal/storage/fs/snapshot.go
Outdated
@@ -594,6 +629,12 @@ func (s *Snapshot) addDoc(doc *ext.Document) error { | |||
} | |||
|
|||
ns.evalRollouts[f.Key] = evalRollouts | |||
if opts.dependencyGraph != nil { | |||
opts.dependencyGraph.SetDependencies(&rpcenvironments.Resource{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i need to rethink this as there wont be a TypeURL here
Signed-off-by: Mark Phelps <[email protected]>
re: #4183
This adds a per env DependencyGraph that is build on each snapshot build. This allows us to track what is dependent on what, ie segments that are in use in rules/rollouts.
Then we can check when the user goes to delete if they are allowed to or not:
This is just a POC, I will likely clean this up and make the API a bit better for creating dependencies, but wanted to put it out there to get feedback
/cc @erka