-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Convert FileOperationsHandler + FileTagsHandler to helpers #10008
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
Convert FileOperationsHandler + FileTagsHandler to helpers #10008
Conversation
FileOperationsHandler depends on FileTagsHandler so both need to be migrated together.
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.
Did a rough review and left some suggestions.
src/Files.App/Filesystem/FilesystemOperations/ShellFilesystemOperations.cs
Outdated
Show resolved
Hide resolved
src/Files.App/Filesystem/FilesystemOperations/ShellFilesystemOperations.cs
Outdated
Show resolved
Hide resolved
src/Files.App/Filesystem/FilesystemOperations/ShellFilesystemOperations.cs
Outdated
Show resolved
Hide resolved
src/Files.App/Filesystem/FilesystemOperations/ShellFilesystemOperations.cs
Outdated
Show resolved
Hide resolved
hmm, I don't think there's another process that's using this file
|
Can you verify is Files still able to launch? I cannot launch Files on my computer with this PR anymore, it hangs in the background constantly. |
Works for me, dunno why it shouldn't work for you |
Did you try deploying a Release package and running it? |
Nope, will try in a few hours |
May related: #10031 |
src/Files.App/Filesystem/FilesystemOperations/ShellFilesystemOperations.cs
Outdated
Show resolved
Hide resolved
This is expected becuase now we are trying to open filetags.db across multiple Files instances, which is not supported by LiteDB. You can leave this problem as is and open a new issue for it. We need to use something like mutex to make sure there's only one connection simultaneously, and synchronize the database operations across multiple instances. |
I see, will do |
Properties - Details doesn't work. |
I can reproduce this even when building from the main branch so doesn't seem related to this PR.
Will take a look. |
Any news? cc. @hez2010 @yaichenbaum |
Sorry for the delay. Will take care of this PR in next few days. |
@itsWindows11 almost ready to look at this, can you resolve the merge conflicts? |
Sure thing, expect some commits tomorrow. |
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
Just noticed the build 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.
LGTM and tested ok except when it comes to multiple files instances.
@yaichenbaum I think it's fine to merge it as is.
We will need to change how we use LiteDB to open the connection and close it immediately after finishing db operations, and use a Mutex for inter-process synchronization. I'm currently working on this and will open a follow-up PR.
@itsWindows11 thank you for all you work and keeping up with this PR! |
Resolved / Related Issues
Items resolved / related issues by this PR.
Validation
How did you test these changes?
Screenshots (optional)
Add screenshots here.