-
Notifications
You must be signed in to change notification settings - Fork 1
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
Expose make interaction for applying shields function #364
Conversation
306db51
to
bf788d9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #364 +/- ##
=======================================
Coverage 92.63% 92.63%
=======================================
Files 1177 1177
Lines 26572 26566 -6
Branches 77 77
=======================================
- Hits 24614 24609 -5
+ Misses 1947 1946 -1
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Nice, some minor comments
// TODO change when queue is introduced | ||
// `CannotSecurifyEntityHasProvisionalSecurityConfig` should be returned when | ||
// 1. entity's shield is in provisional state | ||
// 2. interaction is in the queue. |
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.
When 1. AND 2. Right? I think an update to the comment stating the Boolean AND make it more clear
CommonError::CannotSecurifyEntityHasProvisionalSecurityConfig, | ||
); | ||
} | ||
// if !entities.iter().all(|a| a.get_provisional().is_none()) { |
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 would copy paste the comment above here too, explaining why code is commented out
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] Generated by cargo-workspaces
CannotSecurifyEntityHasProvisionalSecurityConfig
is not returned when provisional shield is in place since this error should be thrown when a provisional shield exists for that entity but there is also a pending transaction in the queue.Not authorizing the set metadata update ends in the following error