kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Select all users - Incorrect value for the number of selected users

Open pcenov opened this issue 3 years ago • 3 comments

Observed behavior

Selecting and deselecting the 'Select all' button after selecting or deselecting a specific user results in incorrect number of users displayed as selected. This is valid for both Facility > Class > Enroll learners and Facility > Class > Assign coaches This results in minor confusion.

Steps to reproduce the issue

  1. Install the latest 0.16 develop build
  2. Go to Facility > Class > Enroll learners or Facility > Class > Assign coaches
  3. Select the 'Select all' checkbox and observe the number of the selected users
  4. Deselect some of the users and after that select again the 'Select all' checkbox - note that the number of selected users is no longer correct

Video

https://user-images.githubusercontent.com/79847249/185088853-011d8b9f-0f61-4709-911d-1e16f3ca7256.mp4

Usage Details

Windows 10 and Ubuntu 20 - Chrome, Firefox, Edge

pcenov avatar Aug 17 '22 09:08 pcenov

@radinamatic

pcenov avatar Aug 17 '22 09:08 pcenov

Hi @pcenov! Can I take up this issue 😃

camperjett avatar Aug 27 '22 09:08 camperjett

This issue is also extant on 0.15.x so should be fixed there.

@camperjett if you would like to take this issue on, you are welcome to. The relevant code is found in the facility plugin in the UserTable component: https://github.com/learningequality/kolibri/blob/release-v0.15.x/kolibri/plugins/facility/assets/src/views/UserTable.vue#L208

The issue seems to be caused by not ensuring that the selected users are unique by their id!

rtibbles avatar Aug 29 '22 22:08 rtibbles

@pcenov can i work on this issue ?

arishmaurya avatar Dec 23 '22 02:12 arishmaurya