-
Notifications
You must be signed in to change notification settings - Fork 237
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
feat(dal,sdf): Auto-enqueue update functions for impacted components #5511
Conversation
Dependency Review✅ No vulnerabilities or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
// potentially needing an update action | ||
// NOTE: We have no way to guarantee that a component's value will actually be different after DVU | ||
// so for now, just enqueue if the value is enqueued to change. More work here is likely needed | ||
let dependency_graph = DependentValueGraph::new( |
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.
this can likely be refined to look for updates only to domain, or something to that effect, but as it's behind a flag, we can iterate here to work out the permutations
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.
actually I'm changing this up now. stay tuned.
@@ -231,11 +231,8 @@ async fn auto_queue_creation(ctx: &mut DalContext) { | |||
assert!(action_ids.is_empty()); | |||
} | |||
|
|||
// TODO This test is a stub that should be fixed after actions v2 is done |
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.
TODONE
For now, this is behind a feature flag as we work out the various permutations and behavior we want to see. When an attribute value is updated for a component, and the component has a resource AND an update function exists, enqueue it. Then, build a dependency graph, and if any downstream components with resources also have update functions, enqueue them as well.
88b3885
to
ce1ecdb
Compare
For now, this is behind a feature flag as we work out the various permutations and behavior we want to see.
When an attribute value is updated for a component, and the component has a resource AND an update function exists, enqueue it. Then, build a dependency graph, and if any downstream components with resources also have update functions, enqueue them as well.
via The Comeback HBO on GIPHY