-
Notifications
You must be signed in to change notification settings - Fork 111
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
Preserve PDF annotations even when cache is reset #2965
base: master
Are you sure you want to change the base?
Conversation
refs: MBL-18069 affects: Student release note: PDF annotations is preserved even when cache is reset test plan: See PR description
Release Note:PDF annotations is preserved even when cache is reset Affected Apps: Student❌ Swift lint
|
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.
QA +1
Tested on iPhone 11, iOS 18.1
Core/CoreTests/Files/View/FileDetails/FileDetailsViewControllerTests.swift
Outdated
Show resolved
Hide resolved
…rTests.swift Co-authored-by: Attila Varga <[email protected]>
Core/Core/Login/LoginSession.swift
Outdated
|
||
try? fileManager | ||
.contentsOfDirectory(at: folderUrl, includingPropertiesForKeys: nil) | ||
.filter({ $0.lastPathComponent.hasPrefix(URL.Paths.offline) == false }) |
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.
Thanks for the filtering here. My concern with this is that in case we want to save something in the user's session folder in the future it will be copied to the annotated pdf directory since this only excludes the offline folder.
All the annotated pdfs are saved in directories with only numbers in their names and the annotated files have a pdf extension. Could we use this knowledge to move only such directories?
refs: MBL-18069
affects: Student
release note: PDF annotations is preserved even when cache is reset
Test Plan
Video Record
Recording covering PDF annotation persistence scenarios, which are:
pdf_annotations_saving.mov
Checklist