Skip to content

PersonRelationshipFilter (gramps52 port) - #988

Merged
GaryGriffin merged 2 commits into
gramps-project:maintenance/gramps52from
dsblank:person-relationship-filter-gramps52
Jul 26, 2026
Merged

PersonRelationshipFilter (gramps52 port)#988
GaryGriffin merged 2 commits into
gramps-project:maintenance/gramps52from
dsblank:person-relationship-filter-gramps52

Conversation

@dsblank

@dsblank dsblank commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

Port of the PersonRelationshipFilter gramplet (#987) to the maintenance/gramps52 branch, targeting gramps_target_version="5.2".

A new gramplet, Relationship Filter, that drops into the Person view's Gramplet bar as a sidebar-style filter. Unlike the built-in Person filter (which only matches on the active person's own attributes), this one searches by the names of relatives:

  • the person's own name
  • father's / mother's name
  • spouse's name
  • up to two named siblings
  • up to two named children
  • a "probably alive on date" filter

Each name field is split into given-name and surname boxes searched independently (substring or regex), and results combine into a single GenericFilter applied to the Person view.

Motivation

The stock Person sidebar filter can't answer "find people whose mother is named X" or "find the children of someone named Y" — you have to know the target person's own name or ID. This gramplet lets you search on that relationship directly instead of navigating the tree by hand.

Test plan

  • python3 -m pytest PersonRelationshipFilter/tests/ -v — 19 passed

🤖 Generated with Claude Code

New gramplet that filters the Person view by the names of relatives
(father, mother, spouse, siblings, children) rather than just the
active person's own attributes. Ported from the gramps61 addon
(gramps-project#987) for the 5.2 target.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dsblank

dsblank commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

@GaryGriffin this should also work on 5.1, if you alter the gpr.py file.

…wiki page

help_url pointed at Addon:AdvancedPersonFilter, a different addon name
left over from this addon's origin, instead of Addon:PersonRelationshipFilter.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dsblank

dsblank commented Jul 26, 2026

Copy link
Copy Markdown
Member Author

@GaryGriffin I think this is ready to merge.

@GaryGriffin
GaryGriffin merged commit af5b719 into gramps-project:maintenance/gramps52 Jul 26, 2026
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.

2 participants