Changes

Jump to: navigation, search

GEPS 041: New Selector

990 bytes added, 11:58, 20 February 2022
m
Clever search for each selector
# Runtime and performance
# Selection expected by the user, marked and tagged objects
# refining a selection
====[[Gramps_4.2_Wiki_Manual_-_Filters#Filter_vs._Search|Filter vs. Search]]====
# Few fast filter rules, by default
# Consistency, mixup of features and widgets
# Hierarchically grouping records (e.g., Person, Place) in the Selector cripples sorting capabilities. Sub-sorting within grouping by "Last Changed" is of little value compared for the entire list. Add option to use Flat lists?
{{man note|Note, there was a [[#Interactive_Search|Gtk SearchEntry bug (latency and collapsed seizure)]] limiting a good search match: max_length(3).|Fixed since gramps 4.2.0, see bug report {{bug|1450}}.}}
[[File:Gramps_connect_query.png|Search query and filter on gramps_connect]]
Ability to also use one search field matching on multiple columns (''names'', ''ID'', ''dates'', etc ...)
[[File:Gramps_connect_search.png|675px|Search on gramps_connect]]
===Interface for handling and selecting custom filters on selectors===
See * [[UI_style|User Interface Style]]* [https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/nautilus/nautilus-next/search-filters-wires.png mockupsMockups] and [https://csorianognome.wordpress.com/2016/02/08/nautilus-3-20-and-looking-forward/ new features] since gtk+ 3.20.
===Additional proposals===
*{{bug|8762}}: Last Used places in the Select Place window
*{{bug|8743}}: Search for place needs more options
*{{bug|7342}}: <s>Show "Main Participants" with events </s>
*{{bug|6558}}: Optimize the use of citations
*{{bug|6332}}: Move home person to bookmark menu
*{{bug|5024}}: By default, to display [Last Recent Used] and [bookmarked] objects on selectors
*{{bug|3655}}: "last modified" timestamp changes everytime a tree is accessed
*{{bug|12026}}: Add Existing Person is missing Find feature
*[https://gramps.discourse.group/t/quickselect-combo-boxes/202 Discourse Topic]: [https://gramps.discourse.group/c/ideas/9 Ideas]; QuickSelect combo-boxes
=== Others ===
*{{bug|9880}}: <s>Time loading for person selector in census forms</s>*{{bug|9738}}: <s>Select person dialog opens always expanded</s>*{{bug|9700}}: <s>Select Place search & Source/Citation hierarchy should NOT automatically open</s>
*{{bug|9315}}: <s>[Regression]: filter set by default on selector is ignored on load (_init_)</s>
*{{bug|9314}}: <s>Two selectors on Places report can generate a confusion</s>
For tests, need to focus on ''Selector'' features}}
[https://github.com/romjerome/gramps_cryptic_rebase/archive/gep-041-new-selectorrefs/heads/Selectors.zip Download a copy], unzip the archive and run: $ cd gramps_cryptic_rebase-gep-041-new-selectorSelectors $ python3 Gramps.py-d "gui.selector"
create a '''new family tree''', and import a '''copy of your data'''.
 
{{man note|Resource path|You may have to play with resource path.}}
 
$ ResourcePath.ERROR: Unable to determine resource path
$ export GRAMPS_RESOURCES=/usr/local/lib/python3.6/dist-packages/gramps-5.2.0-py3.6.egg/share
 
===Warnings===
 
Tested some years ago with remaining indirect and unfixed issues (title, model, editors) because the focus was on possible modifications on Selectors. Should take it as a draft.
==Performances==
|H05 || GEP041 || Intel Pentium 4 HT || 2.8 GHz || 512 MB || HDD || Ubuntu 14.04 based|| [[User:Romjerome]]
|-
|H06 || 45.20.5 0-alpha (5099b42) || .. Intel Pentium 4 HT || 2.. 8 GHz || .GB 512 MB || HDD || Ubuntu 14.. 04 based|| ..[[User:Romjerome]]
|-
|H07 || 4.2.5 3 || .. || .. GHz || .GB || HDD SSD || .. || ..
|-
|H08 || GEP041 4.2.5 || .. || .. GHz || .GB || HDD SSD || .. || ..
|}
{| {{prettytable}}
|-
!Config !! data !! T01 (no search, build model)!! T01_a (raw find and search)!! T01_b (filter by user data)!! T01_c (filter by gendersex)!! T01_d (filter, skip list)!! T01_e (no search, has_focus)!! T01_f (alternative focus)!! comments|-|H01||id0||bgcolor="#a0ffa0"|2.5s||bgcolor=""|-||bgcolor=""|-||bgcolor=""|-||bgcolor=""|-||bgcolor="#a0ffa0"|2.5s||bgcolor=""|-||expands only surname of person selected
|-
|H01H02||id0||bgcolor="#a0ffa0ffa0a0"|2.5s18s||bgcolor=""|s-||bgcolor=""|s-||bgcolor=""|s-||bgcolor=""|s-||bgcolor="#a0ffa0ffa0a0"|2.5s18s||bgcolor=""|s-||expands only surname of person selectedall surnames
|-
|H02H03||id0||bgcolor="#ffa0a0e0ffe0"|18s5s||bgcolor=""|s-||bgcolor=""|s-||bgcolor=""|s-||bgcolor=""|s-||bgcolor="#ffa0a0e0ffe0"|18s5s||bgcolor=""|s-||expands all surnames
|-
|H03H04||id0id1||bgcolor="#e0ffe0"|5s4s<t<12s||bgcolor="#e0ffe0"|s7s<t<15s||bgcolor="#a0ffa0"|s>3s||bgcolor="#a0ffa0"|s<3s||bgcolor="#e0ffe0"|s6s||bgcolor="#e0ffe0a0ffa0"|5s4s||bgcolor="#e0ffe0"|s7s||expands all surnamesSometimes, BaseSelector.__init__can take 2/3 of time
|-
|H04H05||id1||bgcolor="#ffa0a0a0ffa0"|12s (4s after init)||bgcolor="#ffa0a0a0ffa0"|15s~5s||bgcolor="#a0ffa0"|>~3s||bgcolor="#a0ffa0"|<~3s||bgcolor="#e0ffe0"|6s~5s||bgcolor="#a0ffa0"|4s||bgcolor="#e0ffe0"|7s~6s||BaseSelector.__init__can take 2/if filter does right, then few seconds for matching, else ~+3 of timeseconds for finding
|-
|H05H06||id1||bgcolor="#a0ffa0"|4s||bgcolor="#a0ffa0"|5s~7s||bgcolor="#a0ffa0"|3s~4s||bgcolor="#a0ffa0"|~3s||bgcolor="#e0ffe0"|~5s6s||bgcolor="#a0ffa0"|4s5s||bgcolor="#e0ffe0"|~6s7s||if filter does right, then few seconds for matching, else Do not have problem. Need ~+3 seconds for finding. Time close to GEP041 (~+1s).
|}
|H04||id1||bgcolor="#a0ffa0"|<1s||bgcolor="a0ffa0"|<1s||bgcolor="#a0ffa0"|<1s||bgcolor="#a0ffa0"|1s||bgcolor="a0ffa0"|<1s||bgcolor="a0ffa0"|<1s||bgcolor="a0ffa0"|<1s||bgcolor="a0ffa0"|<1s||''very fast'': +/- 3 seconds for matching, searching, finding.
|-
|H05||id1||bgcolor="#a0ffa0"|<3s||bgcolor="#a0ffa0"|<3s||bgcolor="#a0ffa0"|<3s||bgcolor="#a0ffa0"|<4s||bgcolor="#a0ffa0"|<3s||bgcolor="#a0ffa0"|<3s||bgcolor="#a0ffa0"|<3s ||bgcolor="#a0ffa0"|<3s||''fast'': filter rules provide a user selection (last modifiededited, last used, bookmarked, related, active), else, +/- 3 seconds for matching, searching, finding.
|}
|-
!Config !! data !! T01 (no search)!! T01_a (raw find and search)!! T01_b (filter by user data)!! T01_c (filter by gender)!! T01_d (filter)!! T01_e (no search, has_focus)!! T01_f (alternative focus)!! comments
|-
|H06||id2||bgcolor="#ffa0a0"|1m||bgcolor="#a0ffa0"|1s||bgcolor="#e0ffe0"|10s||bgcolor="#ffa0a0"|1m||bgcolor="#a0ffa0"|1s||bgcolor="#e0ffe0"|10s||bgcolor="#ffa0a0"|1m ||comments
|-
|H07||id2||bgcolor="#ffa0a0"|1m||bgcolor="#a0ffa0"|1s||bgcolor="#e0ffe0"|10s||bgcolor="#ffa0a0"|1m||bgcolor="#a0ffa0"|1s||bgcolor="#e0ffe0"|10s||bgcolor="#ffa0a0"|1m ||comments
|-
!Config !! data !! T02 !! T03 !! T04 !! T05 !! T06 !! T07 !! T08 !! T09 !! comments
|-
|H06||id2||bgcolor="#ffa0a0"|-||bgcolor="#a0ffa0"|-||bgcolor="#e0ffe0"|-||bgcolor="#ffa0a0"|-||bgcolor="#a0ffa0"|-||bgcolor="#e0ffe0"|-||bgcolor="#ffa0a0"|-||bgcolor="#a0ffa0"|-||comments
|-
|H07||id2||bgcolor="#ffa0a0"|-||bgcolor="#a0ffa0"|-||bgcolor="#e0ffe0"|-||bgcolor="#ffa0a0"|-||bgcolor="#a0ffa0"|-||bgcolor="#e0ffe0"|-||bgcolor="#ffa0a0"|-||bgcolor="#a0ffa0"|-||comments

Navigation menu