Skip to content
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

Fix: Fixed issue where opening properties would download OneDrive files #13714

Merged
merged 13 commits into from Nov 9, 2023

Conversation

yaira2
Copy link
Member

@yaira2 yaira2 commented Nov 7, 2023

Resolved / Related Issues

Validation
How did you test these changes?

  • Did you build the app and test your changes?
  • Did you check for accessibility? You can use Accessibility Insights for this.
  • Did you remove any strings from the en-us resource file?
    • Did you search the solution to see if the string is still being used?
  • Did you implement any design changes to an existing feature?
    • Was this change approved?
  • Are there any other steps that were used to validate these changes?
    1. Open properties for a non OneDrive file/folder and confirm "Size on disk" is calculated
    2. Open properties for a downloaded OneDrive file/folder and confirm "Size on disk" is calculated
    3. Open properties for a non downloaded OneDrive file/folder and confirm "Size on disk" isn't calculated
    4. Open hash page for online file and confirm the file isn't downloaded
    5. Open hash page for offline file and confirm the hash is displayed

Screenshots (optional)
Add screenshots here.

@yaira2
Copy link
Member Author

yaira2 commented Nov 7, 2023

There still seems to be some issues with folders.

@yaira2 yaira2 added the help wanted Extra attention is needed label Nov 7, 2023
@gave92
Copy link
Member

gave92 commented Nov 8, 2023

Also for .exe files download happens as soon as you view the folder, happens when you hit this line:
image

@yaira2
Copy link
Member Author

yaira2 commented Nov 8, 2023

@gave92 can you check if the latest commit fixes that?

@gave92
Copy link
Member

gave92 commented Nov 8, 2023

Couple of suggested changes here: #13757.
I find I need to check also for "SyncStatus.FolderOnline".

@yaira2 yaira2 removed the help wanted Extra attention is needed label Nov 9, 2023
@gave92 gave92 self-requested a review November 9, 2023 17:18
@gave92 gave92 removed the approved label Nov 9, 2023
@gave92
Copy link
Member

gave92 commented Nov 9, 2023

Looks good. I'm checking again if something more is needed for archive files.

Edit: see https://github.com/files-community/Files/pull/13778/files

Edit 2: for consistency, also turned off folder size computation for combined properties (when 2+ folders are selected)

@yaira2 yaira2 added the approved label Nov 9, 2023
@yaira2 yaira2 merged commit 1fdaf76 into main Nov 9, 2023
1 check passed
@yaira2 yaira2 deleted the ya/OneDrivePropertiesFix branch November 9, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants