Skip to content

rename slot, relationship - #59

Merged
RobertJCarroll merged 2 commits into
mainfrom
relationship-name-collision
Jul 27, 2026
Merged

rename slot, relationship#59
RobertJCarroll merged 2 commits into
mainfrom
relationship-name-collision

Conversation

@torstees

@torstees torstees commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

When trying to load the entire SQL Alchemy model to extract the DDL for schema generation, the slot, relationship, is causing a namespace collision inside the FamilyRelationship model with the SQLA's property with the same name, overriding the ORM functionality with a class member. This results in errors when you try to actually follow the relationships associated with that class.

This simply renames the slot, relationship, to relationship_type. The new name can be (almost) anything other than 'relationship'.

Closes #58

@torstees
torstees requested a review from RobertJCarroll July 9, 2026 16:02
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://include-dcc.github.io/common-access-model/pr-preview/pr-59/

Built to branch gh-pages at 2026-07-27 17:36 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Change name to 'relation' to align with pedigree spec (and avoids any confusion with LinkML term relationship_types).
@RobertJCarroll

Copy link
Copy Markdown
Collaborator

I changed the naming a little- if this is acceptable we can merge it in. This is a breaking change- not sure if there's a special way to flag that.

@RobertJCarroll
RobertJCarroll merged commit 410c3b5 into main Jul 27, 2026
6 checks passed
@RobertJCarroll
RobertJCarroll deleted the relationship-name-collision branch July 27, 2026 18:33
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.

FamilyRelationship.relation is causing SQLA issues

2 participants