anitab-org / mentorship-android

Mentorship System is an application that matches women in tech to mentor each other, on career development, through 1:1 relations during a certain period of time. This is the Android application of this project.
https://github.com/anitab-org/mentorship-android/raw/apk/app-debug.apk
GNU General Public License v3.0
165 stars 379 forks source link

Filter Functionality Not Working Properly #1151

Open Yash-Raj-Singh opened 3 years ago

Yash-Raj-Singh commented 3 years ago

Describe the bug

In Member Page, the list having users do not have all the users to show in recycler view, due to which Filter Functionality is not working properly. (If you use logcat to check the size of user list before passing it in recycler view, it generally shows 20 or 40 but the database has way more users than that.) For example - There are users present in the database with Location 'India', but if you go to Member page and Filter out users with location 'India', you will see a blank page. Now, if you go to member page and scroll down the recycler view till the end and then apply the same filter you will see all the user with location 'India'.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Member Page'
  2. Click on 'Filter'
  3. Scroll down to 'Location Field'
  4. Type 'India'
  5. See error

Expected behavior

After applying filter, we should be able to see relevant data.

Screenshots

Without Scrolling Recycler View Till The End :

Without Loading List Applying Filter Filter Result

After Scrolling Recycler View Till The End :

After Loading List Applying Filter Filter Result Refreshing Filter Result

Smartphone (please complete the following information):

Additional context

Even after filtering out the result after scrolling member page till the end, if you refresh the filter result page, it again goes to blank.

isabelcosta commented 3 years ago

Thank you so much for such a detailed issue description 🙌🏾 @Yash-Raj-Singh

epicadk commented 3 years ago

This seems like a backend issue. Does the backend support filters? @anitab-org/mentorship-maintainers

isabelcosta commented 3 years ago

@epicadk as we discussed together in the mentorship session, we are trying to achieve that there in the backend. So in progress :D