Task #8776 (closed)
Bug: Drag-drop error with multiple selections of the same image
| Reported by: | rleigh | Owned by: | wmoore |
|---|---|---|---|
| Priority: | major | Milestone: | OMERO-4.4.7 |
| Component: | Web | Version: | n.a. |
| Keywords: | testing,phase1 | Cc: | web-team@… |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | 2012-10-23 (1) |
Description
See attached image.
To reproduce:
- use copy/paste to create multiple copies of the same image in different datasets
- try to drag one of the images to the "Orphaned images" folder. While this is inconsistent, dragging one of these will fail, but leave all the copies in the different datasets selected.
- drag one of the copies to one of the datasets already containing one of the other copies. You'll get (nselected +1) error message popups appearing ("image is already there").
- repeat this a few times. You'll get ((nrepeats * nselected)+1) popups appearing.
Looks like it's keeping a "selection" for the items which weren't copied the first time + the visible selection, and keep appending to it.
Things to consider:
Is copying an identical file really an error? Why not just do nothing and continue without error--replacing the image with an identical copy is equivalent to doing nothing.
The management of the selected files when dragging to "Orphaned files" is buggy. Is it in fact possible to select the same files by alternative means?
The management of the selected files on failure when dragging to a folder is also buggy.
Regards,
Roger
Attachments (1)
Change History (15)
Changed 7 years ago by rleigh
comment:1 Changed 7 years ago by atarkowska
- Cc web-team@… added
- Owner changed from web-team@… to wmoore
comment:2 Changed 7 years ago by atarkowska
- Sprint set to 2012-05-22 (15)
comment:3 Changed 7 years ago by Aleksandra Tarkowska <A.Tarkowska@…>
comment:4 Changed 7 years ago by Aleksandra Tarkowska <A.Tarkowska@…>
(In [ad576660630cea200ea225adbcdbb465c0ae3d4d/ome.git] on branch develop) fixing small issue in jstree.check_move, see #8776
comment:5 Changed 7 years ago by jburel
- Sprint changed from 2012-05-22 (15) to 2012-06-05 (16)
Moved from sprint 2012-05-22 (15)
comment:6 Changed 7 years ago by atarkowska
- Keywords testing phase1 added
comment:7 Changed 7 years ago by wmoore
- Milestone changed from OMERO-Beta4.4 to OMERO-Beta4.4.1
- Priority changed from critical to major
- Sprint 2012-06-05 (16) deleted
Although this is 'critical', as discussed on yesterday's web meeting, it only arises if you try to move multiple objects in the tree and 1 or more is 'invalid' (can't move). Even then, the data integrity is preserved and you just need a tree refresh to correct the selection etc.
It's also quite tricky to fix, since we are relying on the 'rollback' functionality in jsTree, which applies to ALL the elements moved, not individual ones. There's also a selection bug which I can't understand.
Pushing since I don't think we can fix these issues just now.
comment:8 Changed 7 years ago by wmoore
- Sprint set to 2012-10-23 (1)
comment:9 Changed 7 years ago by wmoore
- Status changed from new to accepted
comment:10 Changed 7 years ago by wmoore
- Resolution set to fixed
- Status changed from accepted to closed
Just tried to reproduce this and didn't get the problems reported:
- Couldn't drag an image into orphaned
- Moving multiple images into a dataset that already contains 1 or more gives a notification, but allows the others to move (doesn't try to rollback, which caused the problems described above).
Closing...
comment:11 Changed 7 years ago by rleigh
- Resolution fixed deleted
- Status changed from closed to reopened
comment:12 Changed 7 years ago by rleigh
Works much better now. However, you do still get alert messages about duplicate images while e.g. copy/pasting duplicated files, which are repeated once per duplicate.
comment:13 Changed 7 years ago by wmoore
- Resolution set to fixed
- Status changed from reopened to closed
Don't alert errors: https://github.com/will-moore/openmicroscopy/commit/a83f0fb0ae24a99a6ff1e42b2d57f8178657bd83 in sprint2-web-bugs.
comment:14 Changed 7 years ago by Will Moore <will@…>
(In [345090c2fb52b97a37b06c567745d443c67280fa/ome.git] on branch develop) Don't show alert messages for failed drag/move in Tree. See #8776
(In [25297f4d153f5ca98867cb298c1d13ed2cc38518/ome.git] on branch develop) preventing dnd to orphans, see #8776