Skip to content

fix: resolve GEDCOM import errors for royal92.ged#1488

Open
osacorp wants to merge 1 commit intoliberu-genealogy:mainfrom
osacorp:main
Open

fix: resolve GEDCOM import errors for royal92.ged#1488
osacorp wants to merge 1 commit intoliberu-genealogy:mainfrom
osacorp:main

Conversation

@osacorp
Copy link
Copy Markdown
Contributor

@osacorp osacorp commented Mar 28, 2026

  • BatchData: rewrite as standalone class (vendor class is final, cannot extend)

    • Injects tenant team_id into all upserted records
    • Chunks inserts with error logging per chunk
  • composer.json: add cweagans/composer-patches with patch entries for liberu-genealogy/laravel-gedcom vendor fixes

  • patches/fix-parent-data-uid-empty-string.patch: Use ?: instead of ?? so empty-string UIDs get replaced with UUID

  • patches/fix-even-variable-collision.patch: Rename inner \ -> \ to avoid variable shadowing

  • patches/fix-family-data-gid-lookup.patch: Look up husband/wife by GEDCOM gid instead of uid; fix null dereference

  • patches/fix-fam-even-array-class-error.patch: Guard against non-object \ to prevent 'Cannot use ::class on array'

- BatchData: rewrite as standalone class (vendor class is final, cannot extend)
  - Injects tenant team_id into all upserted records
  - Chunks inserts with error logging per chunk

- composer.json: add cweagans/composer-patches with patch entries for
  liberu-genealogy/laravel-gedcom vendor fixes

- patches/fix-parent-data-uid-empty-string.patch:
  Use ?: instead of ?? so empty-string UIDs get replaced with UUID

- patches/fix-even-variable-collision.patch:
  Rename inner \ -> \ to avoid variable shadowing

- patches/fix-family-data-gid-lookup.patch:
  Look up husband/wife by GEDCOM gid instead of uid; fix null dereference

- patches/fix-fam-even-array-class-error.patch:
  Guard against non-object \ to prevent 'Cannot use ::class on array'
@osacorp
Copy link
Copy Markdown
Contributor Author

osacorp commented Mar 28, 2026

okay

@liberu-group
Copy link
Copy Markdown

Interesting approach and I apricate the fix but patches are welcome upstream on liberu-genealogy/laravel-gedcom potentially dynamic approach to team or no team. I'm back Friday. All is well, Curtis. @osacorp

@liberu-group
Copy link
Copy Markdown

@osacorp you could remove the final definition on upstream if required, happy with that

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