abhilash1in opened a new pull request #10873:
URL: https://github.com/apache/airflow/pull/10873


   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   ## Summary:
   Add a description (string) field to store additional details about a 
[connection](https://airflow.apache.org/docs/stable/howto/connection/index.html).
   
   ## UI:
   ![Screen Shot 2020-09-10 at 4 58 10 
PM](https://user-images.githubusercontent.com/9111980/92827529-d13fad80-f386-11ea-9922-60068c0879df.png)
   ![Screen Shot 2020-09-10 at 4 59 02 
PM](https://user-images.githubusercontent.com/9111980/92827652-f59b8a00-f386-11ea-8789-51f0762b398e.png)
   
   ### CLI: 
   ```
   (airflow) abhilash1in@Abhilashs-MBP airflow % airflow connections add 
--conn-description "test description" --conn-type mysql --conn-host host 
--conn-login user --conn-password password test_conn
   
           Successfully added `conn_id`=test_conn : mysql://user:******@host:
   
   ```
   
   ```
   (airflow) abhilash1in@Abhilashs-MBP airflow % airflow connections get 
test_conn
   [2020-09-10 17:02:42,279] {base_hook.py:67} INFO - Using connection to: id: 
test_conn. Host: host, Port: None, Schema: None, Login: user, Password: 
XXXXXXXX, extra: None
   Id: 48
   Conn Id: test_conn
   Conn Type: mysql
   Description: test description
   Host: host
   Schema: null
   Login: user
   Password: password
   Port: null
   Is Encrypted: true
   Is Extra Encrypted: true
   Extra: {}
   URI: mysql://user:password@host
   ```
   related: #10840
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)**
 for more information.
   In case of fundamental code change, Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals))
 is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party 
License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in 
[UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.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.

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


Reply via email to