Skip to content
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

Finer control of abbreviate place names #3835

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tronsmit
Copy link
Contributor

@tronsmit tronsmit commented Apr 7, 2021

Motivation: Including highest level place name when abbreviating from back is not always desirable. This requests which highest levels to omit while always trying to show SHOW_PEDIGREE_PLACES number of levels

Implementation:

  • add function backParts to Places
  • keep lastParts as it is used for census
  • expand scope of SHOW_PEDIGREE_PLACES_SUFFIX so that 1=keep top level, 2=only keep to 2nd highest level, etc.

Note: options text in tree preferences probably needs work

@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #3835 (5614bae) into main (dff8130) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main    #3835      +/-   ##
============================================
- Coverage     31.43%   31.42%   -0.01%     
- Complexity    11257    11258       +1     
============================================
  Files          1130     1130              
  Lines         39722    39725       +3     
============================================
  Hits          12485    12485              
- Misses        27237    27240       +3     
Impacted Files Coverage Δ
app/Place.php 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.0009%) to 20.939% when pulling 9a85fa0 on tronsmit:pedigree-places into fb29270 on fisharebest:main.

Finer control of abbreviate place names

Motivation: Including highest level place name when abbrevaiting from
back is not always desirable. This change will allow you to request the
highest level to keep while always trying to show SHOW_PEDIGREE_PLACES
number of levels

Implementation:

- add function backParts to Places
- keep lastParts as it is used by census handlers
- expand scope of SHOW_PEDIGREE_PLACES_SUFFIX so that 1=keep top level,
2=only keep to 2nd highest level, etc.

Note: help text probably needs work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants