Repository navigation
feat(approval): approvals on the storage ports #7178
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
Changes from all commits
78eb48a
e7ea429
5995128
dac5539
bddc1a3
a33a26f
6696ee4
659272b
f7aba9e
eae46d3
28f9411
ec21f08
e22bd34
5a05203
52d1428
1660a6e
9b893a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -246,6 +246,9 @@ struct WaiterGuard<'a> { | |
| gate: &'a ApprovalGate, | ||
| request_id: String, | ||
| thread_id: Option<String>, | ||
| /// Storage scope of the parking call, kept for `Drop`: the acting agent's | ||
| /// task-local is gone by then. | ||
| docs: Result<Option<super::store_documents::Docs>, String>, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Initialize the captured storage field Adding this required field means every [RULE] compile-error · |
||
| armed: bool, | ||
| } | ||
|
|
||
|
|
@@ -277,7 +280,12 @@ impl Drop for WaiterGuard<'_> { | |
| self.gate | ||
| .clear_thread_route_if_owned(thread_id, &self.request_id); | ||
| } | ||
| let decided = store::decide(&self.gate.config, &self.request_id, ApprovalDecision::Deny); | ||
| let decided = store::decide_captured( | ||
| &self.gate.config, | ||
| &self.docs, | ||
| &self.request_id, | ||
| ApprovalDecision::Deny, | ||
| ); | ||
| if let Ok(Some(row)) = decided { | ||
| let route = self.gate.take_request_route(&self.request_id); | ||
| BUS.publish(DomainEvent::ApprovalDecided { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.