In-place import into one library removes tracks from all libraries
Steps to reproduce
Using Funkwhale 1.0.1 having one library A with a folder already imported as in-place import. Import the same folder into a second library B.
The import finishes like this:
Checking imported paths against settings.MUSIC_DIRECTORY_PATH
For details, please refer to import reference '2020-11-14T15:00:27+01:00' or URL https://music.uploadedlobster.com/library/3dc3449d-f157-4f6e-aedc-d2df92bfbcef/upload?import=2020-11-14T15%3A00%3A27%2B01%3A00
Checking existing files for updates…
Found 0 files to check in database!
Handling batch 1 (0 items)
Existing files checked, moving on to next step!
Starting import of new files…
Handling batch 1 (11 items)
Import summary:
- 11 files found matching this pattern: ['/music/mini roc']
- 0 files already found in database
- 11 new files
Selected options: in place
Successfully imported 11 new tracks in 0s
For details, please refer to import reference '2020-11-14T15:00:27+01:00' or URL https://music.uploadedlobster.com/library/3dc3449d-f157-4f6e-aedc-d2df92bfbcef/upload?import=2020-11-14T15%3A00%3A27%2B01%3A00
Pruning dangling tracks, albums and artists from library…
What happens?
After the import finishes with success message the imported files are neither in library A nor in library B.
What is expected?
The imported files are in both library A and library B. At the very least they are expected to be in library B where the last import happened.
Importing the files a second time into either library A or B makes them available in this library again. But once they are imported again you can again reproduce the above issue again.
Context
Funkwhale version(s) affected: 1.0.1