Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support setting multiple many to many relationships between two tables #14966

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Nov 5, 2024

Description

We currently support multiple many-to-many between the same tables, but the the frontend does not properly support it. This PR is updating the "define relationship" modal to support this config, moving the error message to a clearer field.
Also, adding an extra check to make sure that the same column is not used as both foreign keys on a join table, and fixing the initial type load on existing relationships.

Addresses

Screenshots

Current settings

image

Can add new relationships between people -> tasks

image

Cannot reuse the same through and foreign keys (whatever the order)

image image

Cannot set both foreign keys to the same column

image

Launchcontrol

Support configuring multiple many-to-many between the same tables

Copy link

linear bot commented Nov 5, 2024

Copy link

qa-wolf bot commented Nov 5, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added the firestorm Data/Infra/Revenue Team label Nov 5, 2024
@github-actions github-actions bot added the size/s label Nov 5, 2024
@adrinr adrinr merged commit 40d19a5 into master Nov 5, 2024
13 checks passed
@adrinr adrinr deleted the BUDI-8746/multiple-many-to-many-relationships-between-two-tables branch November 5, 2024 11:13
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/s
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants