-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[WIP/Don't Merge] Migrated Profile from Rxjava to Retroift & added MVVM Architecture (part 1) #6082
base: main
Are you sure you want to change the base?
Conversation
import timber.log.Timber | ||
import javax.inject.Inject | ||
|
||
class ProfileRepository @Inject constructor(private val apiService: APIService) { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
) : Response<Int> | ||
|
||
|
||
// https://tools.wmflabs.org/commons-android-app/tool-commons-android-app//feedback.py?user=Devanonymous |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this should I provide kdoc here? and if yes kdoc should I link the common apps API endpoint doc or provide a CURL link here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API endpoint doc is great if there is one. :-)
Hi @nicolas-raoul,
Lines 152 to 176 in 22238f5
My Question :
|
Soft ping @nicolas-raoul any idea about this #6082 (comment) |
|
My guess is something else is the reason. From Leaderboard -> Weekly -> Upload. I see the top user as Wikidata edits Url of GeographBot (0 EditCount) : https://tools.wmflabs.org/commons-android-app/tool-commons-android-app/wikidataedits.py?user=GeographBot Achievements : https://tools.wmflabs.org/commons-android-app/tool-commons-android-app/feedback.py?user=GeographBot (Weekly Upload Count 29k) This GeographBot has 0 wikidataedits still achievements doesn't load. So I think the wikidataeduts is not the reason for not loading achievements. Sturm User Url : https://tools.wmflabs.org/commons-android-app/tool-commons-android-app/feedback.py?user=Sturm (Weekly Upload Count : 440) On closer look I am unable to open top users achievement who has highest upload count from leaderboard. I am not sure what the actual reason for timeout needs investigation. |
If the focus of this PR is architecture, don't worry too much about achievement timeouts or wrong counts, don't hesitate to file other issues for these. :-) |
Part of:
Description:
The following PR focuses on removing the RxJava usage for Achievement Screen, split the code into a MVVM pattern, cleaned the code and also fixed the flow of the AchievementScreen.
Also, there seems to be an improvement in the loading time of the achievements by some seconds (probably 1-2 seconds) compared to the main branch.