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

More column settings #145

Merged
merged 4 commits into from
Sep 13, 2022
Merged

Conversation

willbryant
Copy link
Contributor

Add support for the following properties:

  • metabase.has_field_values
  • metabase.coercion_strategy
  • metabase.number_style (becomes settings -> number_style)

I have no idea why they have made a nested settings field in the column properties, but the behavior is that if we provide a settings entry, it will overwrite all the settings that appear in there in their responses (which are undocumented). So I've broken with the pattern a bit and am copying in the whole settings we were given, to avoid removing any other formatting changes made in the UI and make it easy to add more settings in the future.
@gouline
Copy link
Owner

gouline commented Sep 13, 2022

Do they all have null defaults? Some Metabase API fields have non-null strings as defaults

@willbryant
Copy link
Contributor Author

No, they don't. Have I done that wrong? I'm only setting them if they are explicitly set on the DBT side.

@gouline
Copy link
Owner

gouline commented Sep 13, 2022

Just checking, looks good

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