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 #6911 (new)

Opened 13 years ago

Last modified 8 years ago

ExperimenterWrapper and ExperimetnerGroupWrapper need own listChildren and listParents

Reported by: atarkowska Owned by:
Priority: minor Milestone: Unscheduled
Component: WebAdmin Version: n.a.
Keywords: n.a. Cc: web-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Currently in on Experimenter/Group? Wrapper objects we can't call any method which load parent/children because listParents/listChildren is not design to do it. Would be good to come up with some strategy which links are loaded by default, if any how to name and write wrapping method to list it. Example:

DatasetWrapper.listChildren() - > list of images
DatasetWrapper.listParents()  - > list projects

Because children/parents might not work in every context, we could use direct name of linked object then. This could also be related to what _getQueryString is loading, for example:

ExperimenterWrapper.listGroups()             - > list groups user is member of
ExperimetnerGroupWrapper.listExperimenters() - > list users assign to the group

def _getQueryString(self):
""" 
Returns string for building queries, loading Experimenters only. 
"""

return "select distinct obj from Experimenter as obj left outer join fetch obj.groupExperimenterMap " \
"as map left outer join fetch map.parent g"

Change History (8)

comment:1 Changed 13 years ago by atarkowska

  • Summary changed from ExperimenterWrapper/ExperimetnerGroupWrapper to ExperimenterWrapper and ExperimetnerGroupWrapper need own listChildren and listParents

comment:2 Changed 13 years ago by atarkowska

  • Milestone changed from OMERO-Beta4.3.3 to OME-5.0
  • Sprint 2011-10-13 (1) deleted

comment:3 Changed 12 years ago by atarkowska

  • Cc web-team@… added
  • Owner atarkowska deleted

comment:4 Changed 12 years ago by wmoore

  • Milestone changed from OMERO-Beta4.4 to OMERO-Beta4.4.1

comment:5 Changed 12 years ago by jmoore

Referencing ticket #9092 has changed sprint.

comment:6 Changed 8 years ago by jamoore

  • Milestone changed from 5.x to Unscheduled

comment:7 Changed 8 years ago by jamoore

Referencing ticket #9092 has changed sprint.

comment:8 Changed 8 years ago by jamoore

Referencing ticket #9092 has changed sprint.

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.70505 sec.)

We're Hiring!