You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collection of work to improve efficiency of app (#12081)
* example cases for enhancing handling of previous "assert" conditions
* started collecting migration related code to a single function in FolderMan named migrateFolderDefinition
improved loading from config to only save the extracted FolderDefintions if they were migrated
started prepping for deeper cuts related to Folder::saveToSettings, plus overhaul of impl and uses of FolderMan::addFolderFromFolderWizardResult and addFolderFromWizard
* fix for failing unit tests. Hopefully fixes squish tests too.
* many changes to give FolderDefinition a clear public interface with accessors, all members are now private, FolderMan has been removed as friend
refactored addFolderInternal -> moved the small amount of actual folder adding code out and renamed it connectFolder. Also refactored unloadFolder -> moved some parts to removeFolderSync (formerly removeFolder which was easily confused with internal remove operations) and renamed it to disconnectFolder to match connectFolder activity.
put an end to the extra careful handling of "unexpected" Vfs modes - basically now if the mode isn't among our legit set, it just assumes VfsMode = off
added loads of todo's and other notes for next steps
* BAH! I didn't commit these = failing build :(
* first stab at consolidating all code paths to use addFolder
* woops - missed this small but important change before last merge
* corrected "ok" param logic for SyncJournalDb::getSelectiveSyncList
ok param originally took a pointer to bool which makes no sense since it's a simple flag value, and most importantly not allowed to be nullptr. It should therefore be a ref.
* added many Refactoring todo's
Refactored the auto-loading of spaces/ocis folders on adding account. Moved the bulk of the activity to FolderMan where it belongs.
saving is still wonky and done in the folder sometimes but now I should be able to finally finish this persistence task now that loading spaces/folders from account is in the FolderMan.
* fixed the saving on adding folders - finally!
need to validate the auto-save on changing pause or vfs mode as I think we will still get too many saves when enabling/disabling vfs in the Folder but otherwise it's in good shape now
last steps are to relocate the removeFromSettings operations from Folder to FolderMan
* saves are now updated - all folder persistence is managed by FolderMan now
there are a couple of wonky bits but they should be ironed out in future when we convert direct calls from Gui to FolderMan to signals requesting xyz change
I have to do one more pass comparing functionality in AddFolderFromWizared to AddFolder, will tidy up and finally rename AddFolderFromWizard to something more sensible
* this is as done as I can get it for now.
main todo is to discuss some points with Erik to funny finish this.
* updated some comments + removed handling for legacy folder config groups (they were already migrated/eliminated in 5.0)
* home stretch. Erik and I worked out the strategy for scheduling folders for sync and calling setSyncEnabled(false/true) depending on activity *in* the FolderMan, so there is not some third party making the decisions.
Unfortunately I was not able to fully eliminate calls to FolderMan::setSycnEnabled and make it private as it is still used in the SpaceMigration routine. That needs deep review/refactoring so I'm leaving it alone for now.
Also refactored adding account folders from config one last time. It's now renamed addFoldersFromConfigByAccount and does just that.
* worked out the final open questions with Erik so this is "done" in terms of planned intent.
I still have to debug/fix the squish test failure on ocis
* found an error from last refactoring of FolderMan::setupFoldersFromConfig - all better now.
Also fixed broken connections that trigger saving a folder to config after change in pause or vfs mode at runtime
* addressed Erik's requested review changes
* this should fix the current squish test failures - revisit once qa issue #12136 is resolved
* removed tests for obsolete/no longer supported folder migrations
0 commit comments