Should we define the tap default settings in the plugin definition yaml? #1081
Replies: 3 comments 2 replies
-
I had two initial ideas:
|
Beta Was this translation helpful? Give feedback.
-
We can't change the behavior of If we want to freeze the default or if we want to set a Meltano specific default like Long-term, if we want to display the plugin's own default values, and if we want these to stay up-to-date, we'll need to automate the |
Beta Was this translation helpful? Give feedback.
-
My main thought is that saying the default is "Empty" even though it's not empty is probably wrong unless we tell people that the tap may have defaults of its own that are not reflected here. I think that could be put in the section under the description. Like "Note that empty string means that we are not passing anything in What is actually wrong is the prompt says that we will be passing a port of "empty string" even though we won't be (This is kind of confusing to talk about but I think if we get it right it becomes intuitive). The setting @pnadolny13 this paragraph sounds really good in my head right now for a long term fix but I might be over thinking it. |
Beta Was this translation helpful? Give feedback.
-
This has come up in many places, most recently in #1080 so I wanted to start a discussion that we can keep as a reference for our decision if it comes up again.
Theres a
value
attribute that you can assign to a setting that acts as a default value. Theres also adefault
attribute in the tap config definition (e.g. target-postgres port).The way that the plugin definition attribute works right now is that it populates the config.json with the default
value
if the setting is not configured by the user in their project. This could potentially be troublesome if we set thevalue
based on the current default but the tap changes their implementation and the default in the tap is different from the meltano metadata, we're now influencing the tap to run in a non-default way.Theres two reasons why we'd want to set the
value
attribute:History:
value
whenever we saw a default value in the tap@tayloramurphy @aaronsteers @visch How do you think we should handle this moving forward?
Beta Was this translation helpful? Give feedback.
All reactions