PersonRelationshipFilter (gramps52 port) - #988
Merged
GaryGriffin merged 2 commits intoJul 26, 2026
Merged
Conversation
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>
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>
2 tasks
Member
Author
|
@GaryGriffin I think this is ready to merge. |
GaryGriffin
added a commit
that referenced
this pull request
Jul 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port of the PersonRelationshipFilter gramplet (#987) to the
maintenance/gramps52branch, targetinggramps_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:
Each name field is split into given-name and surname boxes searched independently (substring or regex), and results combine into a single
GenericFilterapplied 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