anitab-org/mentorship-android

Filter Functionality Not Working Properly

Yash-Raj-Singh opened this issue ยท 3 comments

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):

  • Device: [Samsung M21]
  • OS: [Android 11]

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.

Thank you so much for such a detailed issue description ๐Ÿ™Œ๐Ÿพ @Yash-Raj-Singh

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

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