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

Opened 8 years ago

Last modified 8 years ago

Unexpected behavior of querieng MapAnnotations

Reported by: atarkowska Owned by: jamoore
Priority: major Milestone: Unscheduled
Component: API Version: OMERO-5.2.0
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

When loading IObject, like Annotation I would expect that all fields mapping objects are are unloaded (maybe except details).

I was interested why MapAnnotation?.mapValue which is basically NamedValue? is different

m = query.find('MapAnnotation', 773072)
print type(m), m.mapValue <- loaded

or

sql = """
    select a
    from MapAnnotation a 
    where a.ns = :ns and a.details.owner.id = :id
"""
p = omero.sys.ParametersI()
p.addId(expId)
for ma in query.findAllByQuery(sql, p):
    print type(ma), ma.mapValue  <- loaded

More as I would expect to join NamedValues? as other objects then https://gist.github.com/aleksandra-tarkowska/ace091135c97ce0027eb9e0211d58ad4 cause duplicates.

Change History (1)

comment:1 Changed 8 years ago by atarkowska

  • Owner set to jamoore
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.63422 sec.)

We're Hiring!