-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Inaccurate info for a foreign key column referencing a non-pk column #3247
Comments
Note that @seancolsen @mathemancer or I should review the new text before this work gets merged. |
@Anish9901 @kgodey Can I work on this issue? |
Go ahead @FidalMathew |
I'd like to propose a path towards resolving this issue. The help text is currently:
I suggest changing that text to the following:
@Anish9901 does that sound okay to you? I'm making this suggestion here because I was reviewing #3257 but I don't like the approach in that PR. I don't think we need any changes in functionality to resolve the underlying problem described in this issue. I think we only need a minor adjustment to the language used in the UI. If we can reach an agreement on my proposal, then I will close #3257. |
I agree @seancolsen, I don't think we need a functionality change either. I've come up with a couple more suggestions for the help text that you might like:
|
I'll throw in a suggestion:
(I was aiming for short but precise.) |
I don't feel strongly about this. Happy to go with Kriti's suggestion because it's succinct. |
Ok we have an agreement. The UI text should be changed to the following
@FidalMathew @ejenk0 if either of you would like to submit a PR for that change, go ahead. |
Description
We've been assuming a foreign key column to be referencing only a primary key column(which is not always true, as a foreign key can also reference a non-pk column), there is an info alert in the data type section of a foreign key column that reflects the same.
context: tab2_refferer column refers a unique text column but the info in the data type section is inaccurately assumes it to be referring to a pk column.
Expected behavior
Show accurate info.
To Reproduce
Setup a column with a fk referencing a column which is not a pk, similar to #3232
The text was updated successfully, but these errors were encountered: