feluelle commented on a change in pull request #5530: [AIRFLOW-1740] Fix xcom creation and update via UI URL: https://github.com/apache/airflow/pull/5530#discussion_r300434373
########## File path: airflow/www/views.py ########## @@ -2685,6 +2685,9 @@ class XComView(wwwutils.SuperUserMixin, AirflowModelView): filter_converter = wwwutils.UtcFilterConverter() form_overrides = dict(execution_date=DateTimeField) + def on_model_change(self, form, model, is_created): + XCom.set(**form.data) Review comment: I see. At first I tried to set `model.value = model.value.encode('utf-8')` described [here](https://github.com/flask-admin/flask-admin/issues/1437#issuecomment-392118807) but that raised `_pickle.UnpicklingError: invalid load key, 'v'.` :/ ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services