Merge branch '718-error-handling' into 'develop'
Resolve "Upload problem due to a formatting error in the date tag" Closes #718, #583, #501, #252, #544 (yes, that's a lot :D) So, this MR changes the way we parse audio metadata and handle validation for this data: - There is now a strict and explicit separation between the retrieve step (extracting raw metadata value from files), and the validation step (ensure the raw metadata is actually valid, convert it to our internal types, etc.) - The date parsing issue from #718 should be solved (and Funkwhale should not crash anymore against invalid dates, skipping those instead) - We are now ready to deal with multiple artists at the metadata parsing level (cf !515). It should also be easier to exclude featuring artists now (cf #736), but it's not implemented here - When invalid metadata makes the import fail, we store the errors on the upload so we can display those to the user - Tables that list uploads in the Web UI leverage this new data to display more detailed errors and advices, as shown on the screenshot below ## Link to the detail modal  ## Import error detail   As you can see, we display the type of errors, the failing tags and the actual error, as well as some link to the documentation, support forum and some debug info you can easily copy-paste to get help. See merge request funkwhale/funkwhale!703
No related branches found
No related tags found
Showing
- api/funkwhale_api/music/metadata.py 206 additions, 123 deletionsapi/funkwhale_api/music/metadata.py
- api/funkwhale_api/music/tasks.py 81 additions, 64 deletionsapi/funkwhale_api/music/tasks.py
- api/tests/music/test_metadata.py 307 additions, 109 deletionsapi/tests/music/test_metadata.py
- api/tests/music/test_tasks.py 137 additions, 96 deletionsapi/tests/music/test_tasks.py
- changes/changelog.d/252.feature 1 addition, 0 deletionschanges/changelog.d/252.feature
- changes/changelog.d/718.bugfix 1 addition, 0 deletionschanges/changelog.d/718.bugfix
- changes/notes.rst 9 additions, 0 deletionschanges/notes.rst
- docs/users/upload.rst 27 additions, 0 deletionsdocs/users/upload.rst
- front/src/views/content/libraries/FilesTable.vue 146 additions, 4 deletionsfront/src/views/content/libraries/FilesTable.vue
Loading
Please register or sign in to comment