-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi valued item location map #2088
base: master
Are you sure you want to change the base?
Conversation
…/IPED.git into MultiValuedItemLocMap
selected item does not have its own JSON feature. Merge branch 'MultiValuedItemLocMap' of https://github.com/sepinf-inc/IPED.git into MultiValuedItemLocMap
Hi @patrickdalla, I'm starting to test this, thanks for this fix!
How is the expected behavior for checkboxes? When one item is checked on table, all locations should be checked on map? And if one or just a subset of the locations related to the same table item are checked on map, what should be the expected item state: checked or not? |
"How is the expected behavior for checkboxes? When one item is checked on table, all locations should be checked on map? " "And if one or just a subset of the locations related to the same table item are checked on map, what should be the expected item state: checked or not?" As the check/uncheck is per item, all subitems on map will reflect the item state. |
Testing with one WhatsApp database, expanding single messages, 119 locations were plotted on the map. When disabling single message expansion, just 115 locations were plotted. I think the number should be the same, right? |
I didn't find the cause of this issue, but there is multithreaded code in GetResultsJSWorker class reading and writing to non thread safe variables, like |
You are right! In fact, no real advantage is gained with this multi threading, they run almost in sequence. I made some structure to test multi threading, leaving the final parameters and code to run as if no multi thread was used, as I could not note any performance gain. But this code increases complexity, I will remove it and simplify. |
really gain no performance, keeping code simple in single thread implementation.
…/IPED.git into MultiValuedItemLocMap
I found similar case. The whatsapp chat parsers extracted only 19 geolocations in metadata when extractMessages is false for one of the chats. But when extractMessages is true, it extracts 21 distinct instant messages georeferenced items. For this chat I could note that there are 2 pairs of IMs with same georeferences. Maybe is the whatsapp chat parser removes duplicates. Check if it is also the same issue for your case. In this case it would not be an error of this PR. Maybe it would not even be an issue of whatsapp parser, but a normal result. Wouldn't be lucene that removes these redundancies on same metadata? |
As far as I know, the parser does not remove duplicated locations.
Duplicated values in the same item are explicitly removed by |
Thanks @patrickdalla and @wladimirleite, that is the exact cause! I forgot the |
I checked this yesterday carefully and it doesn't happen, the cause is really what @wladimirleite pointed out. I think current behavior is fine. Sorry @patrickdalla for taking your time. |
Unfortunately behavior described above is not working properly, see video below: checkboxes.inconsistency.mp4 |
PS1: You can see the checked item on table but both locations unchecked on map at right side. |
…r to the value in output text field (if one already exists).
…ng getName from script, if still null.
…s not exists in resource files.
Implements support for items with multi valued locations metadata.
Highlight/selection are done based on item, i. e., when one item is highlighted all correspondent marks on map are highlighted, and one mark on map is highlighted all other marks of the same item are highlighted.