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

"Display values" in a foreign key #245

Open
radium226 opened this issue Mar 20, 2024 · 1 comment
Open

"Display values" in a foreign key #245

radium226 opened this issue Mar 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@radium226
Copy link

Hello!

First of all, thanks a lot for this piece of software. It works great and help me a lot to propagate the docs between DBT and Metabase!

I was wondering how difficult it would be to add the possibility to set the "Display values" value when using a foreign keys between two tables (you can see this parameter when clicking on the small gear on left of a field in the Table Metadata).

I'm willing to help implement this, but I think you should show me where to start :)

Thanks!

@gouline gouline added the enhancement New feature or request label Mar 20, 2024
@gouline
Copy link
Owner

gouline commented Mar 20, 2024

It's reasonably difficult.

Easy part is setting the target field name as another column meta field (similar to semantic_type), but then you have to look up its corresponding field ID and create a new kind of delayed update (similar to table_field_order) that calls POST /api/field/:id/dimension with the field ID as human_readable_field_id.

Not sure how doable that is for a first contribution to an unfamiliar codebase to be honest.

@gouline gouline changed the title Possibility to setup the "Display values" used in a foreign key "Display values" in a foreign key Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants