Skip to content

Group polymorphic references generically in name history - #366

Merged
lmrodriguezr merged 1 commit into
mainfrom
polymorphic-history
Nov 13, 2026
Merged

lmrodriguezr merged 1 commit into
mainfrom
polymorphic-history

Conversation

@vangberg

@vangberg vangberg commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

The public name history paired nomenclatural_type_type and nomenclatural_type_id by name. It now uses reflection to group every polymorphic belongs_to association's type and ID columns into one [type, id] pair under the association's name. Recording and rendering versions already worked this way.

The grouping also runs on updates to linked records (placements, publication links). Neither has a polymorphic association yet, so their output is unchanged.

@vangberg
vangberg added this pull request to stack #368 November 12, 2026 13:19
@vangberg vangberg self-assigned this Nov 12, 2026
@vangberg

Copy link
Copy Markdown
Contributor Author

Needed for #367

@lmrodriguezr
lmrodriguezr merged commit f686719 into main Nov 13, 2026
4 checks passed
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