← Back to team overview

mahara-contributors team mailing list archive

[Bug 1875958] Re: 'My groups' sidebar can get very long if you are in lots of groups

 

Gerrit: https://reviews.mahara.org/#/c/9521/ Patch set 3
	Bug 1875958: Allow groups list sideblock to have max height / scroll

All test cases PASSED - please refer to the attached execution
spreadsheet for expected and actual results.

Test Scenario 1: Groups list sidebar scroll successfully implemented for new database.
--------------------------------------------------------------------------------------
Environment: Windows10 and latest Edge & Chrome browsers.
Theme: vary person's theme through testing to use all 5 (Primary school, Default, Modern, Ocean and Raw).
	- change at 'Account menu' > 'Settings' > 'Preferences' --> select 'Theme' (provided you have the config.php setting '$cfg->sitethemeprefs = true;' set.

Preconditions:
With patch applied and a clean database:
a) Create accounts: 'Admin menu' >  'People' > 'Add people by csv'
	*** Force password change --> No
	*** Email people about their account --> No
	select file '20 user_users_1-20 mine.csv' (in directory Mahara/SeUp_Intro).

b) Populate the group categories: 'Admin menu' >  'Groups' > 'Group categories'
	Enable group categories --> Yes then 'Submit'
	Enter then 'Add' each of the following values in 'Enter new group category':
		Category 1
		Category 2
		Category 3
		Category 4
		A really long category name well it wasn’t but it is much longer now being a total of 222 characters now – & it also includes punctuation and a mācron and other special characters too! And is now pushed out to > 200 of em.

c) Create the groups: 'Admin menu' >  'Groups' > 'Add groups by CSV'
	select file 'My30_groups.csv' (in directory Mahara/SeUp_Intro).

d) Populate some groups with members: 'Admin menu' >  'Groups' > 'Update group members by CSV'
	select file 'My30_group_members.csv' (in directory Mahara/SeUp_Intro).

e) Ensure that the target browser's viewport View is set to 100%.

Steps:
1.1 Log in with the targeted person and verify that the scroll bar:
    1.1.1 appears and functions correctly when the person's groups list is 400 or more pixels high.
    1.1.2 does not appear when the person's groups list is less than 400px400 high.
    1.1.3 is added and functions correctly when the list is extended from less than 400px to more than 400px.
    1.1.4 is removed when the list is reduced to less than 400px after being more than 400px.

1.2 Verify that the scroll bar appears and functions correctly when a display maximum is set in the 'Account menu' > 'Settings' > 'Preferences' --> 'Maximum number of groups to display':
    1.2.1 appears and functions correctly when the set maximum groups list is 400 or more pixels high.
    1.2.2 does not appear when the set maximum groups list is less than 400 high.

1.3 Verify that the scroll bar appears and functions correctly when a group label display filter is set in the 'Account menu' > 'Settings' > 'Preferences' --> 'Display only groups labelled with':
    1.3.1 appears and functions correctly when the filtered groups list is 400 or more pixels high.
    1.3.2 does not appear when the filtered groups list is less than 400px400 high.

1.4 Verify that the scroll bar appears and functions correctly when both:
   - a display maximum is set in the 'Account menu' > 'Settings' > 'Preferences' --> 'Maximum number of groups to display', and 
   - a group label display filter is set in the 'Account menu' > 'Settings' > 'Preferences' --> 'Display only groups labelled with':
    1.4.1 appears and functions correctly when the resultant groups list is 400 or more pixels high.
    1.4.2 does not appear when the resultant groups list is less than 400px high.

Test Scenario 2: Groups list sidebar scroll successfully implemented for an upgraded 19_10 database.
----------------------------------------------------------------------------------------------
Environment: Ubuntu and latest Firefox browser.
Theme: vary person's theme through testing to use all 5 (Primary school, Default, Modern, Ocean and Raw).

Preconditions:
a) Using 20.04_STABLE, populate the database as per Test scenario 1 preconditions a) through e).
   Note: ensure that the group labels are also manually set up (see bug test execution spreadsheet).
b) Apply this patch.

Steps:
Repeat steps 1.1 to 1.4 above.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1875958

Title:
  'My groups' sidebar can get very long if you are in lots of groups

Status in Mahara:
  In Progress

Bug description:
  When you are a member of many groups the list in the sidebar can get
  very long

  There is an account preference to restrict the list to 'Maximum number
  of groups to display'

  And now there is an account preference to restrict it to certain group
  labels

  But both these options require user making choices / setting up labels

  Another option to make the 'My groups' side bar a little more
  manageable is via css

  This option still lets you scroll to see all your groups but doesn't
  make the page overly long.

  Note: (25 May - after Robert questioned about how many groups should
  display before the scroll bar is displayed): apparently the 'My
  groups' sidebar should be 400px high maximum (or a scroll bar will be
  displayed). When browser View set at 100% this equates to
  approximately 14 lines(Chrome, Firefox & Edge), this number will vary
  depending upon the browser View setting +100-.  The number of groups
  shown before scrolling is also variable due to how many groups the
  person is admin for (2 lines) versus not admin for (1 line).  The
  length of the group name will also impact how many lines are taken per
  group.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1875958/+subscriptions


References