mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
5161: Fix repeating images in peer review (#5170)
* fix API call to fetch the latest changes * add database table to keep a track of reviewed and skipped images * fix repeating reviewed or skipped images * add removed newline again * add necessary comments * change from timber.e to timber.i in case there is no exception * reintroduce the parameter rctag in the API URL * modify API URL to retrieve latest uploads * remove unused imports and code * modify ReviewHelperTest and add new unit tests * modify tests in ReviewHelperTest.kt * add comments about the value of gcmlimit
This commit is contained in:
parent
c920ef0371
commit
be1946cd7b
11 changed files with 268 additions and 98 deletions
|
|
@ -6,6 +6,8 @@ import androidx.room.TypeConverters
|
|||
import fr.free.nrw.commons.contributions.Contribution
|
||||
import fr.free.nrw.commons.contributions.ContributionDao
|
||||
import fr.free.nrw.commons.customselector.database.*
|
||||
import fr.free.nrw.commons.review.ReviewDao
|
||||
import fr.free.nrw.commons.review.ReviewEntity
|
||||
import fr.free.nrw.commons.upload.depicts.Depicts
|
||||
import fr.free.nrw.commons.upload.depicts.DepictsDao
|
||||
|
||||
|
|
@ -13,11 +15,12 @@ import fr.free.nrw.commons.upload.depicts.DepictsDao
|
|||
* The database for accessing the respective DAOs
|
||||
*
|
||||
*/
|
||||
@Database(entities = [Contribution::class, Depicts::class, UploadedStatus::class, NotForUploadStatus::class], version = 14, exportSchema = false)
|
||||
@Database(entities = [Contribution::class, Depicts::class, UploadedStatus::class, NotForUploadStatus::class, ReviewEntity::class], version = 15, exportSchema = false)
|
||||
@TypeConverters(Converters::class)
|
||||
abstract class AppDatabase : RoomDatabase() {
|
||||
abstract fun contributionDao(): ContributionDao
|
||||
abstract fun DepictsDao(): DepictsDao;
|
||||
abstract fun UploadedStatusDao(): UploadedStatusDao;
|
||||
abstract fun NotForUploadStatusDao(): NotForUploadStatusDao
|
||||
abstract fun ReviewDao(): ReviewDao
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue