julianh2o / Podbase

Image database aimed at scientific applications
MIT License
2 stars 0 forks source link

Priority 1: Copy/Paste bug #108

Closed danhartline closed 11 years ago

danhartline commented 11 years ago

When I copied the metadata from this image:

https://podbase.net/entry/8#/Public/Acartia1/CW080113_Acartia1_10x_BF.jpg

i.e.: Species: Acartia fossae Collection location: Kaneohe Bay, Oahu, HI Photo by: Caroline Wilson

into this image:

https://podbase.net/entry/8#/Public/Acartia1/CW080113_Acartia1_10x_BF2.jpg

it filled the fields with a previous image I had copied (and pasted successfully) in another folder:

Species: Oithona sp. Collection location: Photo by: Caroline Wilson

I tried this repeatedly

But when I did the same paste (without recopying) on the remaining 2 images in this folder, it worked perfectly.. How crazy can you get? :-)

I was in Data mode, btw, in cases that is relevant -- I may have done the original copy (in the other folder) in Analysis mode (just to complicate things)

danhartline commented 11 years ago

Other problems seem to occur.

using:

https://podbase.net/entry/16#/ShrimpMyelin/TEM/Saron/SM1/DH13-01_A2/FM111130-1_SM_DH13-01_A2_001_2k.jpg

with metadata:

Record name Species: Saron Plane of section: Longitudinal

Clicking "Copy" then moving to image 002 and trying to paste, the first time I clicked "Paste" nothing happened. When I clicked it again, then it asked if I wanted to overwrite, and the paste worked in 3 seconds. Monica reports that sometimes it takes 5 minutes for the aste to wrok. (!).

Whan I went back and added "test1" in the Comments field of Image 001, then copied it and tried to paste into Image 003, it pasted the OLD contents (i.e. missing the "test1") instead of the new ones, same as described in the main window.

julianh2o commented 11 years ago

In working on this, I've discovered that one of the big performance bottlenecks on the site is the indexing process. I may need to rewrite the code to use Lucene directly rather than the convenient module that I've been working with. For my own reference: http://www.lucenetutorial.com/lucene-in-5-minutes.html

julianh2o commented 11 years ago

I think I've improved the behavior of copy/paste. Please test this thoroughly as I know that copy/paste is going to be one of the more useful features. I think that there still might be a bit of a delay and I'll be working on that, but let me know if there are any non-performance related issues that you're still having with this.