Skip to content

GitHub Issue 1117: sample type and dataclass foreign keys#7804

Open
XingY wants to merge 8 commits into
release26.7-SNAPSHOTfrom
fb_issue1117
Open

GitHub Issue 1117: sample type and dataclass foreign keys#7804
XingY wants to merge 8 commits into
release26.7-SNAPSHOTfrom
fb_issue1117

Conversation

@XingY

@XingY XingY commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Rationale

DO NOT MERGE, TARGET 26.7
ForeignKeys defined on DomainKind are not enforced in StorageProvisionerImpl._create and it's up to each caller to explicitly copy domainKind FK to domain, when creating the domain. Such change is risky as FK conditions are not always met, such as when importing assay xar. This PR instead scope the fix to just sample types and dataclasses, during domain creation and folder import actions.

Related Pull Requests

Changes

@XingY XingY requested a review from labkey-adam July 1, 2026 17:46
@XingY XingY changed the base branch from develop to release26.7-SNAPSHOT July 1, 2026 18:45
try
{
DomainKind<?> kind = domain.getDomainKind();
if (kind instanceof SampleTypeDomainKind || kind instanceof DataClassDomainKind)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment about why only these domain kinds get FKs would be helpful.

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