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 #4825 (closed)

Opened 8 years ago

Closed 8 years ago

BUG: sortByAttr 'details.creationEvent.time'

Reported by: wmoore Owned by: atarkowska
Priority: minor Milestone: OMERO-Beta4.3
Component: Web Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

Ola: I looked at this for a bit and think that the problem is that the getAttribute() method for 'details.creationEvent.time' fails because the data is not loaded.

Calling comment.getDate() loads the creation event but getting attribute directly doesn't seem to?

Not sure if something has changed to cause this problem or what's the best strategy to fix.

One possibility is:

self.text_annotations.sort(key=lambda x: x.getDate())

Change History (2)

comment:1 Changed 8 years ago by atarkowska

according to the discussion first we need to look at #4844

comment:2 Changed 8 years ago by wmoore

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

This was fixed by loading creationEvent for listAnnotations(). See #4844.

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

We're Hiring!