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

   ### Apache Airflow version
   
   2.3.3 (latest released)
   
   ### What happened
   
   ParamsDict's printable presentation show the class object itself like 
`<airflow.models.param.ParamsDict object at 0x7fd0eba9bb80>` on the page of 
Task Instance Detail because it does not have `__repr__` method in its class. 
   
   <img width="791" alt="image" 
src="https://user-images.githubusercontent.com/16971553/180902761-88b9dd9f-7102-4e49-b8b8-0282b31dda56.png";>
   
   It used to be `dict` object and what keys and values Params include are 
shown on UI before replacing Params with the advanced Params by #17100. 
   
   
   
   ### What you think should happen instead
   
   It was originally shown below when it was `dict` object. 
   
   
![image](https://user-images.githubusercontent.com/16971553/180904396-7b527877-5bc6-48d2-938f-7d338dfd79a7.png)
   
   
   I think it can be fixed by adding `__repr__` method to the class like below.
   
   ```python
   class ParamsDict(dict):
       ...
       def __repr__(self):
           return f"{self.dump()}"
   ```
   
   ### How to reproduce
   
   I guess it all happens on Airflow using 2.2.0+
   
   ### Operating System
   
   Linux, but it's not depending on OS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to