-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialize work type ID #165
base: develop
Are you sure you want to change the base?
Conversation
Serialize the ID of work types to be able to use the `/api/library/work-types/{id}` route, otherwise the ID has to be guessed. Found while trying to implement feeding in Japan7/karaberus#38
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #165 +/- ##
========================================
Coverage 98.69% 98.69%
========================================
Files 73 73
Lines 1836 1836
========================================
Hits 1812 1812
Misses 24 24 ☔ View full report in Codecov by Sentry. |
Feed tags/medias/artists/karas to dakara on upload and on startup. Define tag colors (hue) so we can set colors in karaberus and have it change in dakara at the same time. Could be obviously improved by checking locally for changes of karaokes, medias and artists instead of just PUTing everything on sync. Probably not worth it implement that for tags. We can't yet update work types decently because dakara doesn't return their IDs. (DakaraProject/dakara-server#165) This assumes that video files will all be called `{id}.mkv`, so the downloader will have to follow this naming scheme to work with dakara. The files are not all matroska files, but it should not be a problem in practice. #40
Feed tags/medias/artists/karas to dakara on upload and on startup. Define tag colors (hue) so we can set colors in karaberus and have it change in dakara at the same time. Could be obviously improved by checking locally for changes of karaokes, medias and artists instead of just PUTing everything on sync. Probably not worth it implement that for tags. We can't yet update work types decently because dakara doesn't return their IDs. (DakaraProject/dakara-server#165) This assumes that video files will all be called `{id}.mkv`, so the downloader will have to follow this naming scheme to work with dakara. The files are not all matroska files, but it should not be a problem in practice. #40
Please update test helper here. |
I can't seem to get the tests to pass, |
Ah, the helper is also used to assert work type obtained by other serializers (namely, |
Serialize the ID of work types to be able to use the
/api/library/work-types/{id}
route, otherwise the ID has to be guessed.Found while trying to implement feeding in Japan7/karaberus#38