You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by xd...@apache.org on 2020/11/07 22:05:58 UTC
[airflow] branch master updated: Proper title for XCom List View
page (#12169)
This is an automated email from the ASF dual-hosted git repository.
xddeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 8d5ad69 Proper title for XCom List View page (#12169)
8d5ad69 is described below
commit 8d5ad6969ff68deea3aca3c98b4a982597f330a0
Author: Xiaodong DENG <xd...@gmail.com>
AuthorDate: Sat Nov 7 23:04:52 2020 +0100
Proper title for XCom List View page (#12169)
---
airflow/www/views.py | 2 ++
tests/www/test_views.py | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index e88a3a2..82b4dd3 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2689,6 +2689,8 @@ class XComModelView(AirflowModelView):
route_base = '/xcom'
+ list_title = 'List XComs'
+
datamodel = AirflowModelView.CustomSQLAInterface(XCom)
class_permission_name = permissions.RESOURCE_XCOM
diff --git a/tests/www/test_views.py b/tests/www/test_views.py
index 5887f27..2fa6045 100644
--- a/tests/www/test_views.py
+++ b/tests/www/test_views.py
@@ -684,6 +684,10 @@ class TestAirflowBaseViews(TestBase):
resp = self.client.get(url, follow_redirects=True)
self.check_content_in_response('XCom', resp)
+ def test_xcom_list_view_title(self):
+ resp = self.client.get('xcom/list', follow_redirects=True)
+ self.check_content_in_response('List XComs', resp)
+
def test_rendered(self):
url = 'rendered?task_id=runme_0&dag_id=example_bash_operator&execution_date={}'.format(
self.percent_encode(self.EXAMPLE_DAG_DEFAULT_DATE)