Closed aleks-tpom6oh closed 8 years ago
Thanks Alexey. Ill review this and your other PRs/issues when I'm back. I'm currently on a long trip with no access to a computer.
El jue., 30 jun. 2016 8:50, Alexey notifications@github.com escribió:
Description
I, as well as @alanwgeorge https://github.com/alanwgeorge, noticed that the app does not work because one of the artists in the demo set does not have 'mbid'. Since this field is used to fetch additional data about the artist I think that the best solution is to drop artists that do not have this field set.
Plus I've added some tests for ArtistMapper.
You can view, comment on, or merge this pull request online at:
https://github.com/antoniolg/Bandhook-Kotlin/pull/16 Commit Summary
- Handle nullable mbid
File Changes
- M app/build.gradle https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-0 (2)
- M app/src/main/java/com/antonioleiva/bandhookkotlin/data/CloudArtistDataSet.kt https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-1 (2)
- M app/src/main/java/com/antonioleiva/bandhookkotlin/data/lastfm/model/LastFmArtist.kt https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-2 (2)
- M app/src/main/java/com/antonioleiva/bandhookkotlin/data/mapper/ArtistMapper.kt https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-3 (26)
- M app/src/main/java/com/antonioleiva/bandhookkotlin/repository/ArtistRepositoryImp.kt https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-4 (5)
- M app/src/main/java/com/antonioleiva/bandhookkotlin/repository/dataset/ArtistDataSet.kt https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-5 (4)
- A app/src/test/java/com/antonioleiva/bandhookkotlin/data/mapper/ArtistMapperTest.kt https://github.com/antoniolg/Bandhook-Kotlin/pull/16/files#diff-6 (91)
Patch Links:
- https://github.com/antoniolg/Bandhook-Kotlin/pull/16.patch
- https://github.com/antoniolg/Bandhook-Kotlin/pull/16.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/antoniolg/Bandhook-Kotlin/pull/16, or mute the thread https://github.com/notifications/unsubscribe/ACE8w3RsFymxrApmUVAICoBo_HcXgJQBks5qQwSugaJpZM4JBrZl .
This looks great. Let me know what you think about the comment I made, and I'll merge.
Description
I, as well as @alanwgeorge, noticed that the app does not work because one of the artists in the demo set does not have 'mbid'. Since this field is used to fetch additional data about the artist I think that the best solution is to drop artists that do not have this field set.
Plus I've added some tests for ArtistMapper.