Discussion: File imports/notifications.
Right now, the frontend notifies the user when any *Added
websocket messages are received. The *Added
/*Removed
messages are sent whenever a mod/playlist/song is added/removed within the BMBF backend. This applies to all changes in the mods, songs and playlist collections, which importantly, includes:
- Automatic mod loading due to dependency installation. This means that when installing a mod with several dependencies, lots of "Mod Added" notifications are received which can overwhelm the user.
- Adding/removing songs from the playlist folders/song folder - BMBF 2 handles this process automatically, so that the songs within BMBF's cache always reflect those on disk - part of the philosophy of BMBF 2 is that it is never a source of truth. Arguably, this means that changes in playlists/songs not caused by BMBF shouldn't notify within the UI, however this is obviously debatable.
The alternative option (which Unicorn 12 would prefer but again, needs discussion) is that the *Added
/*Removed
messages would be used only to update the frontend's mods/playlists/songs collection, and would not be used to provide notifications. Notifications for the files imported by a user would still be provided via the FileImportResult
returned by the file import endpoint.