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: Unable to do a transaction with a frozen object #1110

Closed
wants to merge 2 commits into from

Conversation

adrien-coye
Copy link
Contributor

No description provided.

@adrien-coye adrien-coye self-assigned this Feb 5, 2024
@adrien-coye adrien-coye marked this pull request as draft February 5, 2024 14:28
Copy link

sonarqubecloud bot commented Feb 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -40,10 +40,12 @@ class InMemoryFileListViewModel: FileListViewModel {
}

super.init(configuration: configuration, driveFileManager: driveFileManager, currentDirectory: currentDirectory)

guard let liveDirectory = try? currentDirectory.thaw() else { return }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not fix anything. Sometimes we have a detached object and it works, sometimes we have a frozen one.
We probably should .detach all the time and it should work.

Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken as is. See comment to fix for good.

@adrien-coye adrien-coye added this to the 4.4.2 milestone Feb 9, 2024
@adrien-coye
Copy link
Contributor Author

Supper seeded by #1118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant