-
Notifications
You must be signed in to change notification settings - Fork 588
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
[Not urgent] Add Pagination in Uploads API. #2996
Comments
@ujjwalagrawal17 I would like to work on this issue. KIndly assign this to me. |
@ANURADHAJHA99 feel free to start working on it. We will use this in the Android app after it's ready. |
@ujjwalagrawal17 KIndly help me if I am wrong. But I visited the website https://outreachdashboard.wmflabs.org/courses/WMFr/EDITATHONS_2017/uploads and the uploads section already had the pagination. Can you kindly explain how should I start with the issue? Thank you very much. |
I guess the support in web version is added but in https://outreachdashboard.wmflabs.org/courses/WMFr/EDITATHONS_2017/uploads.json API it's not added. We need to add the required parameters to make it work. |
We are consuming the API from Android App and in some courses we are getting very slow response. |
@ujjwalagrawal17 Thank you very much. however, can you give me an idea of how should I start with the issue, what steps should I start taking, what files do I need to change? It will be very helpful. |
@ragesoss might be able to help you in that. I am not familiar with the website codebase. |
@ragesoss Can you please guide me through the following issue? Also, Thank you very much @ujjwalagrawal17 for helping. |
The uploads endpoint is The most similar place where you can find an example of pagination already in use is |
@ragesoss Can you please navigate me to the CampaignsController code to understand the context? I am having some difficulty in understanding the codebase. |
CampaignsController is in If you're unfamiliar with Ruby on Rails, I suggest starting by exploring the Rails documentation a bit to see how models, views, and controllers interact. |
@ragesoss we have to find the |
Yes, I think so. |
Rails provides all request parameters via This controller uses the |
Am I supposed to make another view for the uploads, just like |
For courses controller, it uses a json jbuilder view template instead of an html haml template. This |
Hi, @ragesoss. Was this issue successfully solved?? if not I would love to get right on itas my first contribution. |
@tafodinho I had various problems while solving the following issue. You can refer to the pull requests that I made, to understand the errors. Thank you for taking the following issue. I am sorry I could not work due to the lack of knowledge and time. |
okay @ANURADHAJHA99 let me take a look right now |
hi @tafodinho are you still working on this? |
Yes, it's still open. |
@ragesoss okay I'm starting to work on it |
I'm still working on it. Just getting to know the codebase and setting up the development environment. Reached till populating the database. |
@ragesoss |
@ujjwalagrawal17 @ragesoss I think 10 is fine for android because android has less screen space (shorter screen size). |
Yes 10 is fine. If you can add another variable to make it configurable, it will be great. |
Sure, I can add another variable. |
I added another variable and updated the PR. Can you please check if it's working fine as required. |
The build problem was unrelated (and now fixed on master)... it looks like this doesn't break any tests that weren't already broken. It's probably ready to go once it has a spec to exercise the pagination functionality. |
Closing this, since the phone app isn't under activity development. |
in Some courses like https://outreachdashboard.wmflabs.org/courses/WMFr/EDITATHONS_2017/uploads.json ,the uploads API is taking a lot of time to give response [this course has around 500 images]. We can implement pagination in the API to give results by using parameter page_number.
The text was updated successfully, but these errors were encountered: