You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking one Click command from another using either invoke or forward, get_parameter_source does not appear to work as it does if the command were called directly.
I would expect ctx.get_parameter_source to be ParameterSource.DEFAULT for the calls made using invoke and forward or for the differing behavior to be explicitly mentioned in the get_parameter_source documentation. I ran into this issue when wrapping a dbt command, so I believe I'm not the only one that expects not to have to check a parent's get_parameter_source (dbt source).
Thank you for your help.
Environment:
Python version: Python 3.9.17
Click version: 8.1.7
The text was updated successfully, but these errors were encountered:
bretwalker
changed the title
get_parameter_source does not work in with invoke or forward
get_parameter_source does not work with invoke or forward
Jul 15, 2024
When invoking one Click command from another using either
invoke
orforward
,get_parameter_source
does not appear to work as it does if the command were called directly.Sample code:
Results:
I would expect
ctx.get_parameter_source
to beParameterSource.DEFAULT
for the calls made usinginvoke
andforward
or for the differing behavior to be explicitly mentioned in theget_parameter_source
documentation. I ran into this issue when wrapping adbt
command, so I believe I'm not the only one that expects not to have to check a parent'sget_parameter_source
(dbt
source).Thank you for your help.
Environment:
The text was updated successfully, but these errors were encountered: