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

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

Bug: constraints field only present on error

Reported by: jamoore Owned by: wmoore
Priority: major Milestone: 5.0.0-beta1
Component: Web Version: n.a.
Keywords: fs Cc: fs@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: FS demo 4.2

Description

On a successful delete of 2 images, a DoAllRsp is returned which does not have a constraints field like GraphConstraintERR does.

See screenshot in https://github.com/openmicroscopy/openmicroscopy/pull/1138

Change History (5)

comment:1 Changed 11 years ago by jamoore

2013-05-13 19:33:38,886 WARNI [      omeroweb.webclient.webclient_utils] (proc.08456) _formatReport:46 Delete warning: GraphException: OriginalFile:709 improperly linked by 1 objectsGraphException: Original
File:709 improperly linked by 1 objects
2013-05-13 19:33:38,914 ERROR [                omeroweb.webclient.views] (proc.08456) activities:2217 Traceback (most recent call last):
  File "/opt/hudson/workspace/OMERO-merge-develop2/src/dist/lib/python/omeroweb/webclient/views.py", line 2180, in activities
    if 'Fileset' in rsp.constraints:
AttributeError: 'DoAllRsp' object has no attribute 'constraints'

comment:2 Changed 11 years ago by jamoore

This is almost certainly a result of having changed our delete strategy mid-flight. While fixing this, would it be possible to all add a "Delete all" button to make the two actions match?

comment:3 Changed 11 years ago by wmoore

I don't want to add a "Delete All" button since the potential for accidental data loss is too great. See JM's nitpick e-mail 8th May

"To avoid the deletion of data by accident, all the images composing the MIF will have to be selected in order to delete the MIF"

comment:4 Changed 11 years ago by wmoore

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

comment:5 Changed 11 years ago by Will Moore <will@…>

(In [ed52b03f00c7259641d04170f1a8f1f4c8c10180/ome.git] on branch develop) Check delete rsp.constraints only if ERR. See #10889

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

We're Hiring!