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

events file still exists in Files app after updating to 3.0.10 #115

Closed
ashender opened this issue Jul 17, 2024 · 6 comments
Closed

events file still exists in Files app after updating to 3.0.10 #115

ashender opened this issue Jul 17, 2024 · 6 comments

Comments

@ashender
Copy link

while browsing app documents in Files.app I still can see castle/events file. after updating castle sdk to 3.0.10 this file stopped being updated, but was not moved. Looks like there is a migration code in the Castle repo but it is not being run in our case.

@aalekz
Copy link
Contributor

aalekz commented Jul 25, 2024

Hi @ashender,

Thanks for reporting the issue. I've investigated the issue and as far as I can see the migration code is working as expected, at least in our test cases. I've re-worked the migration code and made sure that the old storage directory is excluded from any backups thinking that might be the reason it still exists.

Am I understanding it correctly that you can reproduce this behavior on your device? I have opened a new pull request (#117) and was wondering if you could try out the new version and see if the error persists?

Thanks,
Alex

@ashender
Copy link
Author

Hi @aalekz ,
looks like eventsQueue is initialised here

migration code runs only if this queue is nil in the storageQueue, but since it is never nil in my case it is never run

@aalekz
Copy link
Contributor

aalekz commented Jul 26, 2024

Hi @ashender,

I've updated the code to run the migration when the queue is persisted and this solves the issue according to my tests. Would it be possible for you to verify the fix on your end as well before I create a new release?

Thanks,
Alex

@ashender
Copy link
Author

Hi @aalekz , can confirm that running with mentioned above branch issue is resolved and castle folder is removed. please lmk when next release will be out

@aalekz
Copy link
Contributor

aalekz commented Jul 30, 2024

Hi @ashender,

Thank you for verifying the fix. I'll create a new release on Thursday and will update this issue when it's done.

@aalekz
Copy link
Contributor

aalekz commented Aug 1, 2024

Version 3.0.11 is now released, closing the issue. I will also take a look at providing static versions of the internal libraries in the next release.

Thank you for reporting this issue @ashender and please let us know if there is anything else in the future.

@aalekz aalekz closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants