hemanthkodandarama commented on code in PR #39075:
URL: https://github.com/apache/airflow/pull/39075#discussion_r1571040482


##########
airflow/www/views.py:
##########
@@ -4547,9 +4547,11 @@ def action_varexport(self, items):
         for var in items:
             try:
                 val = decoder.decode(var.val)
+                description = decoder.decode(var.description)
             except Exception:
                 val = var.val
-            var_dict[var.key] = val
+                description = var.description
+            var_dict[var.key] = {"val": val, "description":description}

Review Comment:
   @dirrao the value of description field is optional . below is sample export 
json file without description value.
   
   ```
   {
       "test": {
           "description": "",
           "val": "true"
       }
   }
   ```
   
   UI 
   
![image](https://github.com/apache/airflow/assets/48653107/0ffc1565-fa0e-484d-bde8-26ac03664a4a)
   



-- 
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