-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Code Quality: Refactored code for security settings #11471
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
Code Quality: Refactored code for security settings #11471
Conversation
src/Files.App/Filesystem/Permissions/AccessControlEntryAdvanced.cs
Outdated
Show resolved
Hide resolved
src/Files.App/UserControls/MultitaskingControl/HorizontalMultitaskingControl.xaml
Outdated
Show resolved
Hide resolved
…n528/Files into 5bfa/update-securityclasses
…n528/Files into 5bfa/update-securityclasses
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 left some comments regarding code style. If I have any time, I'll try to make a second code-review and test this out
src/Files.App/Filesystem/Security/AccessControlEntryAdvanced.cs
Outdated
Show resolved
Hide resolved
src/Files.App/Filesystem/Security/AccessControlEntryAdvanced.cs
Outdated
Show resolved
Hide resolved
region-endregion will be removed when I finish. so please ignore them:) |
I think half the comments are about regions, I'll close them |
So sorry about that 😢 |
Don't worry |
/azp run |
Commenter does not have sufficient privileges for PR 11471 in repo files-community/Files |
Can you open separate issues to track these? |
Each of the three? |
Yes |
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 won't give my approval for the PR because I am not versed enough in the security to be sure at 100%, but alongside the two other reviews, I believe it's good!
Thanks for the huge refactoring and cleaning @onein528 ! (And for the others you've done as well)
Description
I'm working on refactoring security codes.
Motivation and Context
The storage object security codes were noticeably unmaintable; it was way too difficult to understand what the class represents from the class name.
Tasks
Changes
Files.App.Filesystem.Permissions
withFiles.App.Filesystem.Security
.Files.App.Filesystem.Security
to improve ease of understanding what the class represents.Files.App.Filesystem.Security
.Files.App.Filesystem.Security
.Files.App.ViewModels.Properties.SecurityViewModel
.Files.App.Views.Properties.SecurityPage
andFiles.App.Views.Properties.SecurityAdvancedPage
.My changes validation
Preferable terms
Used in Win32API
ACCESS_ALLOWED_ACE
ACCESS_DENIED_ACE
Used in Win32API
Used in Win32API
Unpreferable terms
Classes
App.Filesystem.Permissions
App.Filesystem.Security
Security
is used in File Explorer UIAccessControlEntry
FileSystemAccessRule
ACE
of Win32API for SecurityPage UIFileSystemAccessRuleForUI
ACE
of Win32API for SecurityAdvancedPage UIFileSystemAccessRule
AccessControlEntryPrimitiveMapping
FileSystemAccessRule2
AccessControlList
FilePermissions
ACL
of Win32APIFilePermissionsManager
AccessControlList
AccessControlType
AccessControlType
AccessMaskFlags
FileSystemRights
FileSystemRights
is not familiar for Win32API devs. Equivalent to ACCESS_MASK of Win32API.AccessMaskItem
GrantedPermission
AccessMaskFlags
.InheritanceFlags
InheritanceFlags
Principal
UserGroup
UserGroup
isn't accurate).Principal
is used in File Explorer UIPrincipalType
SecurityType
PropagationFlags
PropagationFlags
Validation
Test
Screenshots