Refactor file_manager, stream_info_manager #1020
Labels
area: files
help wanted
level: 2
Some knowledge of the existing code is recommended
type: refactor
Minimal user-visible changes, but significant internal work
Milestone
a)
The file objects managed by file_manager ( EncryptedFileManager ) is hard to understand because it has some layers of unnecessary inheritance
( ManagedEncryptedFileDownloader -> EncryptedFileSaver -> EncryptedFiledDownloader -> CryptStreamDownloader )
b)
Currently, the tasks that stream_info_manager (DBEncryptedFileMetadataManager) and file_manager (EncryptedFileManager) is supposed to perform is poorly organized. stream_info_manager should be responsible for downloading streams. file_manager should be responsible for constructing files out of these streams. Currently file_manager both manages streams and the construction of files. stream_info_manager merely acts as a database to store stream information.
The primary goal should be to have e a clear distinction between streams and files. As you can have streams without files.
The text was updated successfully, but these errors were encountered: