-
Notifications
You must be signed in to change notification settings - Fork 587
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
many: rename remainingPermissions
to outstandingPermissions
#14865
many: rename remainingPermissions
to outstandingPermissions
#14865
Conversation
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.
+1 for the last commit here
339b2c1
to
148b7ab
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #14865 +/- ##
==========================================
+ Coverage 78.20% 78.28% +0.08%
==========================================
Files 1151 1157 +6
Lines 151396 152627 +1231
==========================================
+ Hits 118402 119491 +1089
- Misses 25662 25764 +102
- Partials 7332 7372 +40
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
148b7ab
to
b162d39
Compare
b162d39
to
248985f
Compare
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.
Thanks!
Signed-off-by: Oliver Calder <[email protected]>
248985f
to
6c9cc3f
Compare
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.
LGTM
@@ -33,12 +33,12 @@ const ( | |||
MaxOutstandingPromptsPerUser = maxOutstandingPromptsPerUser | |||
) | |||
|
|||
func NewPrompt(id prompting.IDType, timestamp time.Time, snap string, iface string, path string, remainingPermissions []string, availablePermissions []string, originalPermissions []string) *Prompt { | |||
func NewPrompt(id prompting.IDType, timestamp time.Time, snap string, iface string, path string, outstandingPermissions []string, availablePermissions []string, originalPermissions []string) *Prompt { |
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.
otherwise it barely fits the screen 😄
func NewPrompt(id prompting.IDType, timestamp time.Time, snap string, iface string, path string, outstandingPermissions []string, availablePermissions []string, originalPermissions []string) *Prompt { | |
func NewPrompt( | |
id prompting.IDType, timestamp time.Time, snap, iface, path string, | |
outstandingPermissions, availablePermissions, originalPermissions []string, | |
) *Prompt { |
@@ -435,7 +435,7 @@ var timeAfterFunc = func(d time.Duration, f func()) timeutil.Timer { | |||
// | |||
// The caller must ensure that the given permissions are in the order in which | |||
// they appear in the available permissions list for the given interface. | |||
func (pdb *PromptDB) AddOrMerge(metadata *prompting.Metadata, path string, requestedPermissions []string, remainingPermissions []string, listenerReq *listener.Request) (*Prompt, bool, error) { | |||
func (pdb *PromptDB) AddOrMerge(metadata *prompting.Metadata, path string, requestedPermissions []string, outstandingPermissions []string, listenerReq *listener.Request) (*Prompt, bool, error) { |
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.
func (pdb *PromptDB) AddOrMerge(metadata *prompting.Metadata, path string, requestedPermissions []string, outstandingPermissions []string, listenerReq *listener.Request) (*Prompt, bool, error) { | |
func (pdb *PromptDB) AddOrMerge( | |
metadata *prompting.Metadata, path string, | |
requestedPermissions []string, outstandingPermissions []string, listenerReq *listener.Request, | |
) (*Prompt, bool, error) { |
Test failures:
|
Rename
remainingPermissions
tooutstandingPermissions
and clarify their purpose and behavior in request prompts.This work is tracked internally by https://warthogs.atlassian.net/browse/SNAPDENG-30515