Skip to content

PersonRelationshipFilter (gramps51 port)#989

Open
dsblank wants to merge 1 commit into
gramps-project:maintenance/gramps51from
dsblank:person-relationship-filter-gramps51
Open

PersonRelationshipFilter (gramps51 port)#989
dsblank wants to merge 1 commit into
gramps-project:maintenance/gramps51from
dsblank:person-relationship-filter-gramps51

Conversation

@dsblank

@dsblank dsblank commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds the PersonRelationshipFilter gramplet, ported to the Gramps 5.1 API: a Person sidebar filter matching on father/mother/spouse/sibling/child names (substring or regex) plus a "probably alive" date filter.
  • Guards Filter.__filter_clicked against re-entrant build_tree() calls (a suspected cause of an intermittent, non-reproducible segfault reported by a user running the 5.1 build).
  • Fixes help_url to point at this addon's own wiki page (Addon:PersonRelationshipFilter) instead of a leftover reference to a different addon name.

Companion ports: #987 (6.1), #988 (5.2).

Test plan

  • pytest PersonRelationshipFilter/tests/ passes
  • Load example.gramps in Gramps 5.1, add the gramplet, search Father/Mother/Spouse/Sibling/Child fields, confirm results and no crash across repeated searches

Gramplet providing a Person sidebar filter on relationships (father,
mother, spouse, siblings, children) with regex/substring name matching
and a "probably alive" date filter. Ports the addon (originally by Nick
Hall and Paul Womack/BugBear) to the 5.1 API, guards
Filter.__filter_clicked against re-entrant build_tree() calls, and
points help_url at this addon's own wiki page.

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

dsblank commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

@GaryGriffin I have no idea why this addon might have an issue with Macs. But I did make a change here.

@GaryGriffin

Copy link
Copy Markdown
Member

Uploaded change but it still intermittently crashes on 5.1.6 .

I thought to file a bug with a crash report, but Mantis only goes back to 5.2.0, not 5.1.6 .

@GaryGriffin

Copy link
Copy Markdown
Member

@dsblank Do you want me to hold this until the Mac crash is resolved? I suspect it is a core issue with a system library, which will not be fixed (would require a new bundle). Or do you want me to publish with the known caveat it is unstable on Mac on 5.1 and the fix is to upgrade to at least 5.2?

Can you add the wiki help page as it is blank.

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