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

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

listParents(single=True)

Reported by: wmoore Owned by: cneves
Priority: major Milestone: OMERO-Beta4.3
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc: atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-05-05 (11)

Description

listParents() should not return a single object by default.

Either should be (single=False) by default, and you can call
listParents(single=True)

or we need a getParent() method.

Single parent assumption affects lots of code.
Need thorough testing of any changes made here.

Change History (21)

comment:1 Changed 9 years ago by jburel

  • Sprint changed from 2011-01-13 (23) to 2011-01-27 (24)

Moved from sprint 2011-01-13 (23)

comment:2 Changed 9 years ago by jburel

  • Sprint changed from 2011-01-27 (4) to 2011-02-10 (5)

Moved from sprint 2011-01-27 (4)

comment:3 Changed 9 years ago by jmoore

Carlos, what's the remaining_time on this?

comment:4 Changed 9 years ago by jburel

  • Sprint changed from 2011-02-10 (5) to 2011-02-24 (6)

Moved from sprint 2011-02-10 (5)

comment:5 Changed 9 years ago by jburel

  • Sprint changed from 2011-02-24 (6) to 2011-03-10 (7)

Moved from sprint 2011-02-24 (6)

comment:6 Changed 9 years ago by jburel

  • Sprint changed from 2011-03-10 (7) to 2011-03-24 (8)

Moved from sprint 2011-03-10 (7)

comment:7 Changed 8 years ago by jburel

  • Sprint changed from 2011-03-24 (8) to 2011-04-07 (9)

Moved from sprint 2011-03-24 (8)

comment:8 Changed 8 years ago by cneves

  • Remaining Time set to 0.5

comment:9 Changed 8 years ago by cxallan

  • Sprint changed from 2011-04-07 (9) to 2011-04-21 (10)

Moved from sprint 2011-04-07 (9)

comment:10 Changed 8 years ago by jburel

  • Sprint changed from 2011-04-21 (10) to 2011-05-05 (11)

Moved from sprint 2011-04-21 (10)

comment:11 Changed 8 years ago by cneves

have split listParents(single) into getParents and getParent, pushed to python-gateway branch

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

(In [5b10de81556de55857b2ee679366e465ae26388f/ome.git] on branch develop) Splitting listParents into 2 new methods; getParents and getParent (see #3802)

This change allows the removal of the listParents(single=) ambiguity, getParents always returns a list of all parents, getParent returns a single parent object.

comment:13 Changed 8 years ago by Will Moore <will@…>

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from new to closed

(In [53db00cb71fb08abc88153fcf9add75d5336ede1/ome.git] on branch develop) Changing all instances of listParents into either getParents or getParent, as appropriate (close #3802)

comment:14 Changed 8 years ago by Will Moore <will@…>

(In [2ae92885feca1ec310f74959733cf4244a807134/ome.git] on branch develop) Merge branch 'python-gateway' into develop

  • python-gateway: (23 commits) Create imgaeFromNumpySeq() method in script_utils. Move to blitz later? See #4368 Changing all instances of listParents into either getParents or getParent, as appropriate (close #3802) Splitting listParents into 2 new methods; getParents and getParent (see #3802) Getting softclose on BlitzGateway?.seppuku working again (see #3478) gatewaytest of getPlanes() uses zctList argument. See 4979 Blitz pixelWrapper.getPlanes() takes zctList parameter. See 4979 Adding gatewaytest for pixelsWrapper.getPlane(). Closes 4979 Adding getPlane() short-cut to blitz gateway PixelsWrapper?. See 4979 Adding tests for blitz PixelsWrapper?.getPlanes(). See 4979 Adding getPlanes() to blitz gateway PixelsWrapper?. See 4979 Display of exposure times in web metadata panel. Closes #4820 gatewaytest for PixelsWrapper?. See #4820 ImageWrapper?.getPrimaryPixels() returns PixelsWrapper?. See #4820 Adding test for getObject() throws if >1 result. Closes 4908 Blitz getObject() throws exception if >1 result returned. See 4908 Fixing display of tags in web metadata panel. See #4590 Adding gatewaytest for deleteObjects(Annotation,[id]). See 4773 Removing deleteAnnotation() and simpleDelete() from blitz gateway. See 4773 Removing use of deleteProject() deleteDataset() deleteScreen() deletePlate() from webclient. See 4773 Removing deleteScreen() deletePlate() deleteProject() deleteDataset() from blitz gateway. See 4773 ...

comment:15 Changed 8 years ago by Carlos Neves <carlos@…>

(In [6d710d63926d6a30e615d40a4dee080d860d1a1d/ome.git] on branch dev_4_1_custom) Splitting listParents into 2 new methods; getParents and getParent (see #3802)

This change allows the removal of the listParents(single=) ambiguity, getParents always returns a list of all parents, getParent returns a single parent object.

comment:16 Changed 8 years ago by Carlos Neves <carlos@…>

(In [d1db7c051f477fff3b1873c25101f991d2c53ef7/ome.git] on branch dev_4_1_custom) Changing all instances of listParents into either getParents or getParent, as appropriate (close #3802)

comment:17 Changed 8 years ago by Will Moore <will@…>

(In [0c33379d3a4f694533dd52b85485f0a9cd06c3d2/ome.git] on branch develop) Renaming blitz object getParents() to listParents(). See #3802

comment:18 Changed 8 years ago by Will Moore <will@…>

(In [7ece05e43c761f53ea6577d7050e811c728a6435/ome.git] on branch develop) Renaming use of getParents() to listParents() in gatewaytest. See #3802

comment:19 Changed 8 years ago by Will Moore <will@…>

(In [f40d4f556b4ecf22c2c41f25361dd208444cccb8/ome.git] on branch develop) Renaming use of getParents() to listParents() in webemdb. See #3802

comment:20 Changed 8 years ago by Will Moore <will@…>

(In [3f478eacc84bb7308aa682e5e94d87c53ba2ffc0/ome.git] on branch develop) A couple of fixes to gatewaytest needed after renaming getParent(). See #3802

comment:21 Changed 8 years ago by Will Moore <will@…>

(In [97bfd61a773a9485f7939a78ca3f63b5d0f9d2e0/ome.git] on branch develop) More gatewaytest fixes for rename of getParents(). See #3802

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

We're Hiring!