apps-android-wikiedudashboard
apps-android-wikiedudashboard copied to clipboard
[BUG] Base URL is always fixed. It should change if we are logging in to wikiEducation Dashboard or outreach programs dashboard.
Summary:
After Integration of Koin, the static baseUrl is changing but it seems like we are calling only outreach server APIs even if we login using wiki education dashboard.
Ideally, we should hit the APIs of the corresponding server to whom we logged in.
If we login using wiki education dashboard, all details including the courses, campaigns, stats displayed are wrong as they are of outreach dashboard server. Also, my dashboard API is failing in that case.
To fix the issue, we need to use Scope API in koin 2.0 while logging in to modify baseUrl.
Links:
- https://github.com/InsertKoinIO/koin/issues/384
- https://medium.com/koin-developers/ready-for-koin-2-0-2722ab59cac3
Steps to reproduce:
Login Using Wiki Education Dashboard Page.
Would you like to work on the issue? If no one picks it up, I will work on it.
What's the API for outreach and wiki education dashboard?
@Darshpreet2000 @mistervaibhav , this is a high-priority bug. If anyone of you is free, feel free to try working on this.
I can try
@Darshpreet2000 @mistervaibhav , this is a high-priority bug. If anyone of you is free, feel free to try working on this.
I want to resolve this issue, I have been learning Retrofit and Koin since a few days as these topics were new to me, still I find certain things in the app pretty overwhelming and hard to grasp. @ujjwalagrawal17 can you suggest some good resources , documentations or anything which will help me . Thanks.
For Koin - https://www.matrixhive.com/koin-dependency-injection/ can help. For Retrofit - https://square.github.io/retrofit/ the documentation is good.