Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #7181 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Group members - Leaders first

Reported by: wmoore Owned by: jburel
Priority: minor Milestone: OMERO-4.4
Component: Insight Version: n.a.
Keywords: n.a. Cc: jburel, saloynton, atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-02-14 (8)

Description

When displaying the list of group members in Web or Insight, it would be useful in some situations if the Leaders of that group were listed first, and if the list indicated which members are leaders.

Use case: Teacher has images that he wants to share with 50 students. Student must pick the Teacher from big list of group members (not even sure whether all 50+ will be shown in the list)?

If possible, would be nice to do this in the web first, then Insight for consistency. Discussion needed first?

Attachments (6)

Screen shot 2011-11-07 at 16.06.59.png (105.7 KB) - added by wmoore 12 years ago.
Can see all users, even for large groups.
Screen shot 2012-01-14 at 23.12.03.png (103.6 KB) - added by wmoore 12 years ago.
Leaders listed before Members
7181-insight.tiff (50.1 KB) - added by jburel 12 years ago.
Screen shot 2012-02-10 at 10.19.19.png (56.8 KB) - added by wmoore 12 years ago.
No owners
Screen shot 2012-02-10 at 10.19.35.png (105.7 KB) - added by wmoore 12 years ago.
Owners label
FirefoxScreenSnapz011.png (34.9 KB) - added by cxallan 12 years ago.
Final user interface as merged into develop

Download all attachments as: .zip

Change History (30)

comment:1 Changed 12 years ago by wmoore

  • Component changed from Client to Web
  • Milestone changed from OMERO-Beta4.4 to Usability Backlog

Checked that we can access all users, even for big groups (E.g. 50 users). See screen-shot.

Looked at custom_forms.py:

class ExperimenterQuerySetIterator(object):

to see whether we could indicate the Leaders of current group. However, given the ExperimenterWrapper obj, we don't have a 'isLeader()' method. Also, when I tried calling 'isAdmin()' on these objects, it reveals that the list of groups is not loaded for each ExperimenterWrapper.

Would need a fair bit of work if we really want to indicate Leaders. Putting this off till we have a definate need for this.

Changed 12 years ago by wmoore

Can see all users, even for large groups.

comment:2 Changed 12 years ago by atarkowska

I strongly recommend NOT touching any custom iterators or any classes overriding Django functionality in custom_form.py in Webadmin and Webclient. Adjustment of the list should be done via views, manipulating initial data:

users = list(conn.listColleagues())
users.sort(key=lambda x: x.getOmeName().lower())

empty_label = "*%s (%s)" % (conn.getUser().getFullName(), conn.getUser().omeName)

form_users = UsersForm(initial={'users': users, 'empty_label':empty_label, 'menu':menu}, data=request.REQUEST.copy())
            

Grouping should be done in the connection level. In webclient_webgateway.OmeroWebGateway? we put custom functions specific for the application.

The code below should be replaced by the one gives a list of users you want to display there and sorted in the required order

users = list(conn.listColleagues())
users.sort(key=lambda x: x.getOmeName().lower())

Changed 12 years ago by wmoore

Leaders listed before Members

comment:3 Changed 12 years ago by wmoore

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 12 years ago by jburel

  • Cc atarkowska added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Re-opening the ticket otherwise we will forget, not done in insight.

comment:5 Changed 12 years ago by jburel

  • Component changed from Web to Insight

comment:6 Changed 12 years ago by jburel

  • Owner changed from atarkowska to jburel
  • Status changed from reopened to accepted

comment:7 Changed 12 years ago by jburel

  • Milestone changed from Usability Backlog to OMERO-Beta4.4
  • Sprint set to 2012-02-14 (8)

comment:8 Changed 12 years ago by jburel

  • Owner jburel deleted
  • Status changed from accepted to new

comment:9 Changed 12 years ago by jburel

  • Owner set to jburel
  • Remaining Time set to 0.2

comment:10 Changed 12 years ago by jburel

  • Status changed from new to accepted

Changed 12 years ago by jburel

comment:11 Changed 12 years ago by jburel

To test:

  • Click on the "switch user" icon in tool bar
  • Leader should be displayed first the ordinary members. (See screenshot)

comment:12 Changed 12 years ago by jburel

  • Remaining Time changed from 0.2 to 0
  • Status changed from accepted to closed

comment:13 Changed 12 years ago by jburel <j.burel@…>

(In [89cac50a840f3c70ec9a1076b652514d8a7856de/ome.git] on branch develop) Split experimenters list in 2 parts (see #7181)

When displaying the experimenters in a group:

  • display the group's leaders
  • display the members.

comment:14 Changed 12 years ago by jburel <j.burel@…>

(In [7761fea23cd642518f57bcab60b6023c515cd88e/ome.git] on branch develop) Only display "Leaders" if the list not empty (see #7181)

comment:15 Changed 12 years ago by jburel <j.burel@…>

(In [14efc74abc82591dba7bf0ff76d96c7aead102c7/ome.git] on branch develop) Change from experimenter selection label (see #7181 and #8033)

Change label from Leaders to "Group's owners".

comment:16 Changed 12 years ago by wmoore

Use 'Owners' instead of 'Leaders'. Don't show Owners or Members labels if there are none (empty list).
https://github.com/will-moore/openmicroscopy/commit/c0d88dc4548eb5d3f170a664e80f1aa923b728b4

JM - Can you use "Owners" instead of "Group's Owners"?

Changed 12 years ago by wmoore

No owners

Changed 12 years ago by wmoore

Owners label

comment:18 Changed 12 years ago by jburel

Can we please get in synch, Scott wanted "Group's Owners" now it is "Owners". Easy to do, just need a final decision.

comment:19 Changed 12 years ago by saloynton

  • We had discussed the additional scenario of having no group owner, we spoke that the label 'members' is shown. With this alteration, the label 'owners' can be used, I should have highlighted this in my original ticket.

comment:20 Changed 12 years ago by jmoore

Sorry, I'm coming late to this, but I'd almost prefer the owners to be last, since they will typically have less data than the regular members.

comment:21 Changed 12 years ago by wmoore

I think in a typical lab you're probably right - The owner (PI) is likely to have less data than other members. But they are more important! And there are likely to be fewer of them. E.g Best to have one or two owners at the top of a longer list that may be too long to display, than to have the owners not visible at all becuase they are off the bottom of the members list?

Also, the only reason we started down this work was to cover the 'Educational use of OMERO' where only the owner has ALL the data. Too much hassle to make this configurable I think.

comment:22 Changed 12 years ago by saloynton

I would echo that too Josh the owners are more important, and that was where the requirement from the original scenario stemmed from, applying this to display having PI's as an owner. We did see them as having the priority over the group members as all group members hold this interest in group owner's.

comment:23 Changed 12 years ago by Will Moore <will@…>

(In [c4c257f5c169060e0d0fd2015dd3191d6eeb16e7/ome.git] on branch develop) Adding groupSummary() method to BlitzGateway?. See #7181

comment:24 Changed 12 years ago by Will Moore <will@…>

  • Resolution set to fixed

(In [f6b5dcd89ce9e03c7f0c7cdb2abc5e4da5d717ee/ome.git] on branch develop) Users drop-down list 'leaders' and 'members'. Closes #7181

Changed 12 years ago by cxallan

Final user interface as merged into develop

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.76842 sec.)

We're Hiring!