jgoedeke opened a new issue, #57498:
URL: https://github.com/apache/airflow/issues/57498

   ### Apache Airflow version
   
   3.1.1
   
   ### If "Other Airflow 2/3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   The HITLOperator UI form always shows DAG params. I found no way to hide DAG 
params for a HITLOperator task.
   ```python
   from airflow.providers.standard.operators.hitl import HITLOperator
   from airflow.sdk import dag
   
   dag_params = {
       'dag_param1': 'value1',
       'dag_param2': 'value2',
   }
   
   @dag(
       schedule=None,
       params=dag_params,
   )
   def validate_hitl_operator_params_taskflow():
       HITLOperator(
           task_id='task_without_params',
           subject='Please choose an option:',
           options=['Option A', 'Option B'],
       )
   
       HITLOperator(
           task_id='task_with_params',
           subject='Please choose an option:',
           options=['Option X', 'Option Y'],
           params={'task_param': 'value'},
       )
   
   validate_hitl_operator_params_taskflow()
   ```
   
   <img width="1172" height="554" alt="Image" 
src="https://github.com/user-attachments/assets/e4975bcb-d6ad-434a-bdc1-4b59b59a3f04";
 />
   
   <img width="1183" height="486" alt="Image" 
src="https://github.com/user-attachments/assets/d2a47967-d6a9-4a98-bb33-c3d38ae37b1e";
 />
   
   ### What you think should happen instead?
   
   The HITLOperator params should be independent from DAG params. The "Required 
Action" should only show explicitly specified params.
   
   ### How to reproduce
   
   Run above provided DAG and go to "Required Actions"
   
   ### Operating System
   
   docker
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to